refactor(nvim): simplify lazy loading configuration
This commit is contained in:
1 parent
d0d2067980
commit
e34d8595a9
2 files changed
+12
-6
No files matched your search
@@ -594,13 +594,15 @@ return {
|
|||||||
["<C-a>a"] = { function() vim.lsp.buf.code_action() end, desc = "LSP Code Action" },
|
["<C-a>a"] = { function() vim.lsp.buf.code_action() end, desc = "LSP Code Action" },
|
||||||
["<C-a>c"] = { _G.Claude_toggle, desc = "Claude Toggle" },
|
["<C-a>c"] = { _G.Claude_toggle, desc = "Claude Toggle" },
|
||||||
["<C-a>h"] = { function() vim.lsp.buf.hover() end, desc = "LSP Hover" },
|
["<C-a>h"] = { function() vim.lsp.buf.hover() end, desc = "LSP Hover" },
|
||||||
["<C-a>d"] = {
|
|
||||||
function() require("snacks").picker.lsp_definitions() end,
|
|
||||||
desc = "Find LSP definitions",
|
|
||||||
},
|
|
||||||
["<C-a>r"] = {
|
["<C-a>r"] = {
|
||||||
function() require("snacks").picker.lsp_references() end,
|
function() return ":IncRename " .. vim.fn.expand "<cword>" end,
|
||||||
desc = "Find LSP references",
|
expr = true,
|
||||||
|
desc = "Rename current symbol",
|
||||||
|
cond = "textDocument/rename",
|
||||||
|
},
|
||||||
|
["<C-a>d"] = {
|
||||||
|
function() require("snacks").picker.diagnostics() end,
|
||||||
|
desc = "Find LSP diagnostics",
|
||||||
},
|
},
|
||||||
["<C-a>s"] = {
|
["<C-a>s"] = {
|
||||||
function() require("snacks").picker.lsp_symbols() end,
|
function() require("snacks").picker.lsp_symbols() end,
|
||||||
|
|||||||
@@ -99,3 +99,7 @@ if ok_overseer then
|
|||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require("inc_rename").setup {
|
||||||
|
input_buffer_type = "snacks",
|
||||||
|
}
|
||||||
Reference in new issue
Block a user