fix nvim
This commit is contained in:
parent
832502b1d5
commit
d1b587536e
@ -1,6 +1,10 @@
|
||||
local border_opts = {
|
||||
border = "single",
|
||||
border = "rounded",
|
||||
winhighlight = "Normal:Normal,FloatBorder:FloatBorder,CursorLine:Visual,Search:None",
|
||||
max_width = 50,
|
||||
min_width = 50,
|
||||
max_height = math.floor(vim.o.lines * 0.4),
|
||||
min_height = 3,
|
||||
}
|
||||
|
||||
local function has_words_before()
|
||||
@ -12,9 +16,12 @@ local function setup_cmp()
|
||||
local cmp = require("cmp")
|
||||
|
||||
cmp.setup({
|
||||
preselect = cmp.PreselectMode.None,
|
||||
completion = {
|
||||
completeopt = 'menu,menuone,noinsert,noselect',
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require('luasnip').lsp_expand(args.body)
|
||||
vim.snippet.expand(args.body)
|
||||
end,
|
||||
},
|
||||
@ -123,5 +130,8 @@ return {
|
||||
{
|
||||
'neovim/nvim-lspconfig',
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
vim.diagnostic.config({ virtual_text = true })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user