mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 17:28:01 +00:00
[neovim] Update plugins
This commit is contained in:
parent
a4cdf15790
commit
e29afbd9aa
@ -119,7 +119,12 @@ keymap(
|
|||||||
"<cmd>Lspsaga diagnostic_jump_prev<cr>",
|
"<cmd>Lspsaga diagnostic_jump_prev<cr>",
|
||||||
vim.tbl_extend("force", opts, { desc = "Navigate to the previous diagnostic in the buffer" })
|
vim.tbl_extend("force", opts, { desc = "Navigate to the previous diagnostic in the buffer" })
|
||||||
)
|
)
|
||||||
keymap("n", "<leader>lr", "<cmd>Lspsaga rename<cr>", vim.tbl_extend("force", opts, { desc = "Open a dialog to rename a code element" }))
|
keymap(
|
||||||
|
"n",
|
||||||
|
"<leader>lr",
|
||||||
|
"<cmd>Lspsaga rename<cr>",
|
||||||
|
vim.tbl_extend("force", opts, { desc = "Open a dialog to rename a code element" })
|
||||||
|
)
|
||||||
keymap(
|
keymap(
|
||||||
"n",
|
"n",
|
||||||
"<leader>lp",
|
"<leader>lp",
|
||||||
@ -195,11 +200,7 @@ keymap(
|
|||||||
"x",
|
"x",
|
||||||
"<leader>/",
|
"<leader>/",
|
||||||
"<esc><cmd>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<cr>",
|
"<esc><cmd>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<cr>",
|
||||||
vim.tbl_extend(
|
vim.tbl_extend("force", opts, { desc = "Comment/Uncomment code lines on visual block mode" })
|
||||||
"force",
|
|
||||||
opts,
|
|
||||||
{ desc = "Comment/Uncomment code lines on visual block mode" }
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
-- Gitdiff
|
-- Gitdiff
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
-- Setup nvim-cmp.
|
|
||||||
require("nvim-autopairs").setup({
|
require("nvim-autopairs").setup({
|
||||||
check_ts = true,
|
check_ts = true,
|
||||||
disable_filetype = { "TelescopePrompt", "neo-tree" },
|
disable_filetype = { "TelescopePrompt", "neo-tree" },
|
||||||
|
@ -1 +1,9 @@
|
|||||||
require("Comment").setup({})
|
require("ts_context_commentstring").setup({
|
||||||
|
enable_autocmd = false,
|
||||||
|
})
|
||||||
|
|
||||||
|
require("Comment").setup({
|
||||||
|
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.g.skip_ts_context_commentstring_module = true
|
||||||
|
@ -22,8 +22,4 @@ require("nvim-treesitter.configs").setup({
|
|||||||
enable = true,
|
enable = true,
|
||||||
disable = { "python", "css" },
|
disable = { "python", "css" },
|
||||||
},
|
},
|
||||||
context_commentstring = {
|
|
||||||
enable = true,
|
|
||||||
enable_autocmd = false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user