From 38f33925dbef4532b8fbde4ab7ac1588e8f08888 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Tue, 2 Jul 2024 16:20:17 +0930 Subject: [PATCH] Minor nvim updates --- .config/nvim/lua/lazyvim/plugins/trouble.lua | 20 ++++++----- .config/nvim/lua/lazyvim/plugins/utility.lua | 36 ++++++++++---------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/.config/nvim/lua/lazyvim/plugins/trouble.lua b/.config/nvim/lua/lazyvim/plugins/trouble.lua index c152530..b13cc12 100644 --- a/.config/nvim/lua/lazyvim/plugins/trouble.lua +++ b/.config/nvim/lua/lazyvim/plugins/trouble.lua @@ -1,11 +1,13 @@ return { - { - "folke/trouble.nvim", - cmd = { "TroubleToggle", "Trouble" }, - opts = { use_diagnostic_signs = true }, - keys = { - { "lt", "TroubleToggle document_diagnostics", desc = "Document Diagnostics (Trouble)" }, - { "lT", "TroubleToggle workspace_diagnostics", desc = "Workspace Diagnostics (Trouble)" }, - }, - }, + { + "folke/trouble.nvim", + cmd = { "Trouble" }, + opts = { use_diagnostic_signs = true }, + keys = { + { "lt", "Trouble diagnostics toggle filter.buf=0", desc = "Document Diagnostics (Trouble)" }, + { "lT", "Trouble diagnostics toggle", desc = "Workspace Diagnostics (Trouble)" }, + { "lL", "Trouble lsp toggle focus=false", desc = "LSP Definitions / references / ... (Trouble)" }, + { "lQ", "Trouble qflist toggle", desc = "Quickfix List (Trouble)" }, + }, + }, } diff --git a/.config/nvim/lua/lazyvim/plugins/utility.lua b/.config/nvim/lua/lazyvim/plugins/utility.lua index 6cb05bf..4bde1cc 100644 --- a/.config/nvim/lua/lazyvim/plugins/utility.lua +++ b/.config/nvim/lua/lazyvim/plugins/utility.lua @@ -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` }, },