Minor nvim updates

This commit is contained in:
Solomon Laing 2024-07-02 16:20:17 +09:30
parent c914fe595e
commit 38f33925db
2 changed files with 29 additions and 27 deletions

View File

@ -1,11 +1,13 @@
return { return {
{ {
"folke/trouble.nvim", "folke/trouble.nvim",
cmd = { "TroubleToggle", "Trouble" }, cmd = { "Trouble" },
opts = { use_diagnostic_signs = true }, opts = { use_diagnostic_signs = true },
keys = { keys = {
{ "<leader>lt", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" }, { "<leader>lt", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = "Document Diagnostics (Trouble)" },
{ "<leader>lT", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace 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)" },
},
},
} }

View File

@ -106,17 +106,17 @@ return {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
opts = {}, opts = {},
}, },
{ -- {
"windwp/nvim-autopairs", -- "windwp/nvim-autopairs",
event = "VeryLazy", -- event = "VeryLazy",
opts = { -- opts = {
disable_filetype = { "TelescopePrompt", "spectre_panel" }, -- disable_filetype = { "TelescopePrompt", "spectre_panel" },
ignored_next_char = "[%w%.*]", -- don't place autopairs when cursor sits infront of any character. -- ignored_next_char = "[%w%.*]", -- don't place autopairs when cursor sits infront of any character.
}, -- },
config = function(_, opts) -- config = function(_, opts)
require("nvim-autopairs").setup(opts) -- require("nvim-autopairs").setup(opts)
end, -- end,
}, -- },
{ {
"preservim/vim-markdown", "preservim/vim-markdown",
}, },
@ -125,7 +125,7 @@ return {
event = "BufEnter", event = "BufEnter",
config = function() config = function()
require("numb").setup({ 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 show_cursorline = true, -- enable 'cursorline' for window wdile peeking
}) })
end, end,
@ -173,12 +173,12 @@ return {
keys = { "gz" }, keys = { "gz" },
opts = { opts = {
mappings = { mappings = {
add = "gza", -- Add surrounding in Normal and Visual modes add = "gza", -- Add surrounding in Normal and Visual modes
delete = "gzd", -- Delete surrounding delete = "gzd", -- Delete surrounding
find = "gzf", -- Find surrounding (to the right) find = "gzf", -- Find surrounding (to the right)
find_left = "gzF", -- Find surrounding (to the left) find_left = "gzF", -- Find surrounding (to the left)
highlight = "gzh", -- Highlight surrounding highlight = "gzh", -- Highlight surrounding
replace = "gzr", -- Replace surrounding replace = "gzr", -- Replace surrounding
update_n_lines = "gzn", -- Update `n_lines` update_n_lines = "gzn", -- Update `n_lines`
}, },
}, },