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 {
{
"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)" },
},
},
}

View File

@ -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`
},
},