1
0
mirror of https://gitlab.com/baco/dotconf.git synced 2024-06-14 04:06:37 +00:00

Merge branch 'nvim-cmp-settings-update'

This commit is contained in:
Dionisio E Alonso 2022-05-11 10:46:58 -03:00
commit b44db36d40

View File

@ -37,7 +37,7 @@ EOF
" lspkind-nvim
lua cmp_format = require("lspkind").cmp_format {
\ with_text = false,
\ mode = "symbol",
\ preset = "codicons",
\ menu = {nvim_lsp = "[LSP]", buffer = "[Buffer]", path = "[Path]"}
\ }
@ -53,7 +53,13 @@ local on_attach = function(client, bufnr)
virtual_text = false
}
)
require("cmp").setup {
local cmp = require("cmp")
cmp.setup {
mapping = {
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },
["<C-p>"] = cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Insert },
},
formatting = {format = cmp_format},
sources = {
{name = "nvim_lsp"},