Minor nvim updates
This commit is contained in:
parent
c914fe595e
commit
38f33925db
@ -1,11 +1,13 @@
|
||||
return {
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
cmd = { "TroubleToggle", "Trouble" },
|
||||
opts = { use_diagnostic_signs = true },
|
||||
keys = {
|
||||
{ "<leader>lt", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" },
|
||||
{ "<leader>lT", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
cmd = { "Trouble" },
|
||||
opts = { use_diagnostic_signs = true },
|
||||
keys = {
|
||||
{ "<leader>lt", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = "Document Diagnostics (Trouble)" },
|
||||
{ "<leader>lT", "<cmd>Trouble diagnostics toggle<cr>", desc = "Workspace Diagnostics (Trouble)" },
|
||||
{ "<leader>lL", "<cmd>Trouble lsp toggle focus=false<cr>", desc = "LSP Definitions / references / ... (Trouble)" },
|
||||
{ "<leader>lQ", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix List (Trouble)" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -106,17 +106,17 @@ return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
opts = {},
|
||||
},
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
disable_filetype = { "TelescopePrompt", "spectre_panel" },
|
||||
ignored_next_char = "[%w%.*]", -- don't place autopairs when cursor sits infront of any character.
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("nvim-autopairs").setup(opts)
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "windwp/nvim-autopairs",
|
||||
-- event = "VeryLazy",
|
||||
-- opts = {
|
||||
-- disable_filetype = { "TelescopePrompt", "spectre_panel" },
|
||||
-- ignored_next_char = "[%w%.*]", -- don't place autopairs when cursor sits infront of any character.
|
||||
-- },
|
||||
-- config = function(_, opts)
|
||||
-- require("nvim-autopairs").setup(opts)
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
"preservim/vim-markdown",
|
||||
},
|
||||
@ -125,7 +125,7 @@ return {
|
||||
event = "BufEnter",
|
||||
config = function()
|
||||
require("numb").setup({
|
||||
show_numbers = true, -- enable 'number' for the window while peeking
|
||||
show_numbers = true, -- enable 'number' for the window while peeking
|
||||
show_cursorline = true, -- enable 'cursorline' for window wdile peeking
|
||||
})
|
||||
end,
|
||||
@ -173,12 +173,12 @@ return {
|
||||
keys = { "gz" },
|
||||
opts = {
|
||||
mappings = {
|
||||
add = "gza", -- Add surrounding in Normal and Visual modes
|
||||
delete = "gzd", -- Delete surrounding
|
||||
find = "gzf", -- Find surrounding (to the right)
|
||||
find_left = "gzF", -- Find surrounding (to the left)
|
||||
highlight = "gzh", -- Highlight surrounding
|
||||
replace = "gzr", -- Replace surrounding
|
||||
add = "gza", -- Add surrounding in Normal and Visual modes
|
||||
delete = "gzd", -- Delete surrounding
|
||||
find = "gzf", -- Find surrounding (to the right)
|
||||
find_left = "gzF", -- Find surrounding (to the left)
|
||||
highlight = "gzh", -- Highlight surrounding
|
||||
replace = "gzr", -- Replace surrounding
|
||||
update_n_lines = "gzn", -- Update `n_lines`
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user