Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
Lee Tang
2022-10-27 11:51:46 +08:00
parent a98af94a5b
commit 36c2fc4c5c
4 changed files with 37 additions and 24 deletions

View File

@@ -41,15 +41,13 @@ local servers = {
pylsp = {},
rust_analyzer = {
server = {
settings = {
['rust-analyzer'] = {
cargo = {
loadOutDirsFromCheck = true,
},
procMacro = {
enable = true,
},
settings = {
['rust-analyzer'] = {
cargo = {
loadOutDirsFromCheck = true,
},
procMacro = {
enable = true,
},
},
},
@@ -61,6 +59,11 @@ local servers = {
end,
},
}),
beancount = {
init_options = {
journal_file = "",
}
}
}
local settings = {

View File

@@ -24,7 +24,7 @@ cmp.setup({
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.complete(),
--["<C-e>"] = cmp.mapping.close(),
-- ['<C-e>'] = function(fallback)
-- fallback()
@@ -34,12 +34,10 @@ cmp.setup({
select = true,
}),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
-- ['<C-n>'] = cmp.mapping.select_next_item(),
-- ['<C-p>'] = cmp.mapping.select_prev_item(),
--},
}),
--mapping = {
----['<C-n>'] = cmp.mapping.select_next_item(),
----['<C-p>'] = cmp.mapping.select_prev_item(),
sources = {
{ name = 'nvim_lsp' },
{ name = 'buffer' },