chore(nvim): tidy

This commit is contained in:
2025-10-04 12:50:47 +08:00
parent e696472c5b
commit f07598688f
4 changed files with 11 additions and 30 deletions

View File

@@ -64,8 +64,8 @@ local extra_config = {
}, },
}, },
qmlls = { qmlls = {
cmd = {"qmlls", "-E"} cmd = { "qmlls", "-E" },
} },
} }
local capabilities = require("cmp_nvim_lsp").default_capabilities() local capabilities = require("cmp_nvim_lsp").default_capabilities()

View File

@@ -1,6 +0,0 @@
M = {
-- ensure_installed = require("plugins.lsp.servers")
ensure_installed = {},
}
return M

View File

@@ -1,11 +0,0 @@
M = {
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
}
return M

View File

@@ -113,7 +113,7 @@ local plugins = {
"MysticalDevil/inlay-hints.nvim", "MysticalDevil/inlay-hints.nvim",
event = "LspAttach", event = "LspAttach",
dependencies = { "neovim/nvim-lspconfig" }, dependencies = { "neovim/nvim-lspconfig" },
opts = {} opts = {},
}, },
{ {
"hedyhli/outline.nvim", "hedyhli/outline.nvim",
@@ -149,7 +149,7 @@ local plugins = {
{ {
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
event = "VeryLazy", event = "VeryLazy",
opts = {} opts = {},
}, },
{ {
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
@@ -205,18 +205,16 @@ local plugins = {
"ggandor/leap.nvim", "ggandor/leap.nvim",
dependencies = { "tpope/vim-repeat" }, dependencies = { "tpope/vim-repeat" },
config = function() config = function()
require("leap").set_default_mappings() vim.keymap.set({ "n", "x", "o" }, "s", "<Plug>(leap)")
vim.keymap.set("n", "S", "<Plug>(leap-from-window)")
-- Exclude whitespace and the middle of alphabetic words from preview: -- Exclude whitespace and the middle of alphabetic words from preview:
-- foobar[baaz] = quux -- foobar[baaz] = quux
-- ^----^^^--^^-^-^--^ -- ^----^^^--^^-^-^--^
require('leap').opts.preview_filter = function(ch0, ch1, ch2) require("leap").opts.preview_filter = function(ch0, ch1, ch2)
return not ( return not (ch1:match("%s") or ch0:match("%a") and ch1:match("%a") and ch2:match("%a"))
ch1:match('%s') or
ch0:match('%a') and ch1:match('%a') and ch2:match('%a')
)
end end
require('leap.user').set_repeat_keys('<enter>', '<backspace>') require("leap.user").set_repeat_keys("<enter>", "<backspace>")
end end,
}, },
{ {
"alexghergh/nvim-tmux-navigation", "alexghergh/nvim-tmux-navigation",