fix: remove autoselect for cmp

This commit is contained in:
Fabio Lenherr 2023-02-28 19:54:57 +01:00
parent 1cc0ee462f
commit 7fb7a08108
4 changed files with 12 additions and 11 deletions

View file

@ -14,9 +14,10 @@ return {
local cmp = require("cmp")
local luasnip = require("luasnip")
return {
completion = {
completeopt = "menu,menuone,noinsert",
},
preselect = cmp.PreselectMode.None,
-- completion = {
-- completeopt = "menu,menuone,noinsert",
-- },
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)

View file

@ -27,7 +27,7 @@ return {
severity_sort = true,
},
-- Automatically format on save
autoformat = true,
autoformat = false,
-- options for vim.lsp.buf.format
-- `bufnr` and `filter` is handled by the LazyVim formatter,
-- but can be also overridden when specified