From f07598688f857655a3d28faf5bf86a6f1b9dd76f Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Sat, 4 Oct 2025 12:50:47 +0800 Subject: [PATCH] chore(nvim): tidy --- .../neovim/nvim/lua/plugins/lsp/lspconfig.lua | 4 ++-- .../nvim/lua/plugins/lsp/mason-lspconfig.lua | 6 ------ .../neovim/nvim/lua/plugins/lsp/mason.lua | 11 ---------- .../neovim/nvim/lua/plugins/plugins-setup.lua | 20 +++++++++---------- 4 files changed, 11 insertions(+), 30 deletions(-) delete mode 100644 modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason-lspconfig.lua delete mode 100644 modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason.lua diff --git a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua b/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua index cc9b78e..854e622 100644 --- a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua +++ b/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua @@ -64,8 +64,8 @@ local extra_config = { }, }, qmlls = { - cmd = {"qmlls", "-E"} - } + cmd = { "qmlls", "-E" }, + }, } local capabilities = require("cmp_nvim_lsp").default_capabilities() diff --git a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason-lspconfig.lua b/modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason-lspconfig.lua deleted file mode 100644 index 9dd591a..0000000 --- a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason-lspconfig.lua +++ /dev/null @@ -1,6 +0,0 @@ -M = { - -- ensure_installed = require("plugins.lsp.servers") - ensure_installed = {}, -} - -return M diff --git a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason.lua b/modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason.lua deleted file mode 100644 index 48edead..0000000 --- a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/mason.lua +++ /dev/null @@ -1,11 +0,0 @@ -M = { - ui = { - icons = { - package_installed = "✓", - package_pending = "➜", - package_uninstalled = "✗", - }, - }, -} - -return M diff --git a/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua b/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua index 932bd5d..d73db0c 100644 --- a/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua +++ b/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua @@ -113,7 +113,7 @@ local plugins = { "MysticalDevil/inlay-hints.nvim", event = "LspAttach", dependencies = { "neovim/nvim-lspconfig" }, - opts = {} + opts = {}, }, { "hedyhli/outline.nvim", @@ -149,7 +149,7 @@ local plugins = { { "numToStr/Comment.nvim", event = "VeryLazy", - opts = {} + opts = {}, }, { "windwp/nvim-autopairs", @@ -205,18 +205,16 @@ local plugins = { "ggandor/leap.nvim", dependencies = { "tpope/vim-repeat" }, config = function() - require("leap").set_default_mappings() + vim.keymap.set({ "n", "x", "o" }, "s", "(leap)") + vim.keymap.set("n", "S", "(leap-from-window)") -- Exclude whitespace and the middle of alphabetic words from preview: -- foobar[baaz] = quux -- ^----^^^--^^-^-^--^ - require('leap').opts.preview_filter = function(ch0, ch1, ch2) - return not ( - ch1:match('%s') or - ch0:match('%a') and ch1:match('%a') and ch2:match('%a') - ) + require("leap").opts.preview_filter = function(ch0, ch1, ch2) + return not (ch1:match("%s") or ch0:match("%a") and ch1:match("%a") and ch2:match("%a")) end - require('leap.user').set_repeat_keys('', '') - end + require("leap.user").set_repeat_keys("", "") + end, }, { "alexghergh/nvim-tmux-navigation", @@ -280,4 +278,4 @@ local plugins = { }, } -require("lazy").setup(plugins, {}) +require("lazy").setup(plugins, {}) \ No newline at end of file