This commit is contained in:
newbie 2023-11-28 07:46:34 +08:00
parent 32fda72951
commit d79e249e04

View File

@ -52,7 +52,7 @@ return {
{ 'n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>' }, { 'n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>' },
{ 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>' }, { 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>' },
{ 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>' }, { 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>' },
{ 'n', '<c-I>', '<cmd>lua vim.lsp.buf.format()<CR>' }, { 'n', '<C-I>', '<cmd>lua vim.lsp.buf.format()<CR>' },
}) })
end end
@ -87,12 +87,12 @@ return {
keymaps = { -- These keymaps can be a string or a table for multiple keys keymaps = { -- These keymaps can be a string or a table for multiple keys
close = { "<Esc>", "q" }, close = { "<Esc>", "q" },
goto_location = "<Cr>", goto_location = "<Cr>",
focus_location = "o", focus_location = "h",
hover_symbol = "<C-space>", hover_symbol = "<C-space>",
toggle_preview = "K", toggle_preview = "K",
rename_symbol = "r", rename_symbol = "r",
code_actions = "a", code_actions = "a",
fold = "h", fold = "o",
unfold = "l", unfold = "l",
fold_all = "W", fold_all = "W",
unfold_all = "E", unfold_all = "E",
@ -133,7 +133,7 @@ return {
} }
require("symbols-outline").setup(opts) require("symbols-outline").setup(opts)
G.map({ G.map({
{ "n", "<c-O>", ":SymbolsOutline<cr>" }, { "n", "<C-O>", "<cmd>SymbolsOutline<cr>" },
}) })
end end
}, },