mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 06:58: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>",
|
||||
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(
|
||||
"n",
|
||||
"<leader>lp",
|
||||
@ -195,11 +200,7 @@ keymap(
|
||||
"x",
|
||||
"<leader>/",
|
||||
"<esc><cmd>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<cr>",
|
||||
vim.tbl_extend(
|
||||
"force",
|
||||
opts,
|
||||
{ desc = "Comment/Uncomment code lines on visual block mode" }
|
||||
)
|
||||
vim.tbl_extend("force", opts, { desc = "Comment/Uncomment code lines on visual block mode" })
|
||||
)
|
||||
|
||||
-- Gitdiff
|
||||
|
@ -1,4 +1,3 @@
|
||||
-- Setup nvim-cmp.
|
||||
require("nvim-autopairs").setup({
|
||||
check_ts = true,
|
||||
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,
|
||||
disable = { "python", "css" },
|
||||
},
|
||||
context_commentstring = {
|
||||
enable = true,
|
||||
enable_autocmd = false,
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user