chore(nvim): tidy
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
M = {
|
|
||||||
-- ensure_installed = require("plugins.lsp.servers")
|
|
||||||
ensure_installed = {},
|
|
||||||
}
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
M = {
|
|
||||||
ui = {
|
|
||||||
icons = {
|
|
||||||
package_installed = "✓",
|
|
||||||
package_pending = "➜",
|
|
||||||
package_uninstalled = "✗",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -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
|
|
||||||
require('leap.user').set_repeat_keys('<enter>', '<backspace>')
|
|
||||||
end
|
end
|
||||||
|
require("leap.user").set_repeat_keys("<enter>", "<backspace>")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"alexghergh/nvim-tmux-navigation",
|
"alexghergh/nvim-tmux-navigation",
|
||||||
|
|||||||
Reference in New Issue
Block a user