From 390cb418ead7e915169c559fe751b0e0d5043179 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 13 Sep 2024 16:29:52 -0400 Subject: [PATCH] nvim: get rid of Trouble --- .gitmodules | 9 ---- src/dot_config/nvim/lua/coding.lua | 47 +------------------ .../site/pack/3pp/opt/external_trouble.nvim | 1 - 3 files changed, 1 insertion(+), 56 deletions(-) delete mode 160000 src/dot_local/share/nvim/site/pack/3pp/opt/external_trouble.nvim diff --git a/.gitmodules b/.gitmodules index 66e5d41..cbd74ce 100644 --- a/.gitmodules +++ b/.gitmodules @@ -53,12 +53,6 @@ path = src/dot_local/share/nvim/site/pack/3pp/opt/external_nvim-treesitter-textobjects url = https://github.com/nvim-treesitter/nvim-treesitter-textobjects -# error/warning/info box -# coding.lua -[submodule "src/dot_local/share/nvim/site/pack/3pp/start/external_trouble.nvim"] - path = src/dot_local/share/nvim/site/pack/3pp/opt/external_trouble.nvim - url = https://github.com/folke/trouble.nvim - # aesthetic changes # init.lua [submodule "src/dot_local/share/nvim/site/pack/3pp/start/external_dressing.nvim"] @@ -134,9 +128,6 @@ [submodule "submodule.src/dot_local/share/nvim/site/pack/3pp/start/external_nvim-treesitter-textobjects.path"] path = src/dot_local/share/nvim/site/pack/3pp/opt/external_nvim-treesitter-textobjects url = https://github.com/nvim-treesitter/nvim-treesitter-textobjects -[submodule "submodule.src/dot_local/share/nvim/site/pack/3pp/start/external_trouble.nvim.path"] - path = src/dot_local/share/nvim/site/pack/3pp/opt/external_trouble.nvim - url = https://github.com/folke/trouble.nvim [submodule "submodule.src/dot_local/share/nvim/site/pack/3pp/start/external_dressing.nvim.path"] path = src/dot_local/share/nvim/site/pack/3pp/opt/external_dressing.nvim url = https://github.com/stevearc/dressing.nvim.git diff --git a/src/dot_config/nvim/lua/coding.lua b/src/dot_config/nvim/lua/coding.lua index 45ef571..395ae66 100644 --- a/src/dot_config/nvim/lua/coding.lua +++ b/src/dot_config/nvim/lua/coding.lua @@ -100,52 +100,7 @@ require("nvim-treesitter.configs").setup { ------ -- diagnostics box ------ -vim.cmd.packadd("trouble.nvim") -require('trouble').setup({ - auto_preview = false, - -- default config available at https://github.com/folke/trouble.nvim - icons = { - indent = { - middle = " ", - last = " ", - top = " ", - ws = "│ ", - }, - folder_closed = "- ", - folder_open = "@ ", - kinds = { - Array = "a ", - Boolean = "b ", - Class = "C ", - Constant = "π ", - Constructor = "Π ", - Enum = "Σ ", - EnumMember = "Σ ", - Event = "ε ", - Field = "f ", - File = "F ", - Function = "λ ", - Interface = "I ", - Key = "β ", - Method = "λ ", - Module = "M ", - Namespace = "N ", - Null = "0 ", - Number = "1 ", - Object = "O ", - Operator = "% ", - Package = "P ", - Property = "β ", - String = "s ", - Struct = "S ", - TypeParameter = "T ", - Variable = "α ", - }, - }, -}) -keymap("dxx", "Trouble diagnostics toggle") -keymap("gR", "Trouble lsp_references toggle") - +keymap('dx', vim.diagnostic.open_float, { noremap=true, silent=true }) -------------------------------- diff --git a/src/dot_local/share/nvim/site/pack/3pp/opt/external_trouble.nvim b/src/dot_local/share/nvim/site/pack/3pp/opt/external_trouble.nvim deleted file mode 160000 index 6efc446..0000000 --- a/src/dot_local/share/nvim/site/pack/3pp/opt/external_trouble.nvim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6efc446226679fda0547c0fd6a7892fd5f5b15d8