Skip to content

Commit a6bd921

Browse files
prepare for python dev
1 parent a003630 commit a6bd921

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lua/core/mappings.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,15 @@ map("n", "<leader>lx", "<cmd>Lazy clean<CR>")
266266
map("n", "<leader>ls", "<cmd>Lazy sync<CR>")
267267
map("n", "<leader>pp", "<cmd>Lazy profile<CR>")
268268

269+
-- Lspsaga
270+
map("n", "<leader>ca", "<cmd>Lspsaga code_action<CR>")
271+
map("n", "<leader>lf", "<cmd>Lspsaga finder<CR>")
272+
map("n", "<leader>lpd", "<cmd>Lspsaga peek_definition<CR>")
273+
map("n", "<leader>lptd", "<cmd>Lspsaga peek_type_definition<CR>")
274+
map({ "n", "t" }, "<A-d>", "<cmd>Lspsaga term_toggle<CR>")
275+
269276
-- LSP
270277
-- map("n", "<leader>ca", vim.lsp.buf.code_action)
271-
map("n", "<leader>ca", "<cmd>Lspsaga code_action<CR>")
272278
map("n", "<leader>lr", function()
273279
require("core.utils").open()
274280
end)

lua/core/settings.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ o.mousemoveevent = true
2525
-- Theme
2626
o.termguicolors = true
2727

28+
-- Search
29+
o.grepprg = "rg --vimgrep --no-heading --hidden --smart-case --ignore-file ~/.config/fzf-ignore"
30+
o.grepformat = "%f:%l:%c:%m"
31+
vim.g.python3_host_prog = vim.fn.expand("~/.virtualenvs/neovim/bin/python3")
32+
2833
-- Command line
2934
o.shortmess:append("I")
3035
o.cmdheight = 1

0 commit comments

Comments
 (0)