1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: update

This commit is contained in:
Henrik Hautakoski 2024-08-25 16:03:19 +02:00
parent 3f00eddbfe
commit 884f1970a7
7 changed files with 36 additions and 34 deletions

View file

@ -8,24 +8,21 @@ return function()
local selectPrev = utils.selectPrev({ behavior = cmp.SelectBehavior.Insert })
local selectNext = utils.selectNext({ behavior = cmp.SelectBehavior.Insert })
local windowstyle = {
border = vim.g.float_border or "none",
winhighlight = "Normal:Pmenu,FloatBorder:FloatBorder,CursorLine:PmenuSel,Search:None",
}
return {
preselect = false,
completion = {
completeopt = "menuone,longest,noinsert,preview",
completeopt = "menu,menuone,longest,popup",
},
view = {
entries = { name = "custom", selection_order = "near_cursor" },
},
window = {
documentation = windowstyle,
completion = vim.tbl_deep_extend("force", windowstyle, {
documentation = {
border = { "", "", "", "", "", "", "", " " },
},
completion = {
scrolloff = 4,
}),
},
},
mapping = {
["<Up>"] = selectPrev,
@ -51,6 +48,7 @@ return function()
}),
},
sources = {
{ name = 'nvim_lsp_signature_help' },
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },