This commit is contained in:
newbie 2023-12-18 23:34:23 +08:00
parent eed785a3e6
commit a1c9ef545c

View File

@ -133,7 +133,7 @@ return {
} }
require("symbols-outline").setup(opts) require("symbols-outline").setup(opts)
G.map({ G.map({
{ "n", "<cs-o>", "<cmd>SymbolsOutline<cr>", { noremap = true } }, { "n", "<leader>o", "<cmd>SymbolsOutline<cr>", { noremap = true } },
{ "v", "<cs-o>", "<cmd>SymbolsOutline<cr>", { noremap = true } }, { "v", "<cs-o>", "<cmd>SymbolsOutline<cr>", { noremap = true } },
}) })
end end
@ -231,8 +231,7 @@ return {
entries = { name = 'wildmenu', separator = '|' } entries = { name = 'wildmenu', separator = '|' }
}, },
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'path' }, { name = 'buffer' },
{ name = 'cmdline' },
}), }),
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<CR>'] = cmp.mapping.confirm({ select = true }), ['<CR>'] = cmp.mapping.confirm({ select = true }),