1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 11:24: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" },

View file

@ -110,9 +110,10 @@ return {
["@markup.italic"] = { fg = colors.green },
-- PHP specific
["@keyword.import.php"] = { link = "@keyword" },
["@class_name.php"] = { link = "@text" },
["@extend_name.php"] = { link = "@text" },
["@implements_name.php"] = { link = "@text" },
["@implement_name.php"] = { link = "@text" },
["@namespace_name.php"] = { link = "@text" },
["@namespace_alias.php"] = { link = "@text" },
}

View file

@ -52,7 +52,7 @@ set.splitbelow = true
-- See `:help 'list'`
-- and `:help 'listchars'`
set.list = false
set.listchars = { tab = '» ', trail = '·', nbsp = '' }
set.listchars = { tab = ' »', space = '·', nbsp = '' }
set.fillchars = {
foldopen = icons.fold.open,

View file

@ -61,9 +61,9 @@ return {
})
end
if client.supports_method('textDocument/hover') then
--utils.signature_help_on_hover(bufnr)
end
-- if client.supports_method('textDocument/hover') then
-- utils.signature_help_on_hover(bufnr)
-- end
if (opts.document_hightlight or server_opt.document_highlight or false) and client.supports_method('textDocument/documentHighlight') then
utils.document_highlight(bufnr)