diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 53a5f2f..9f9061e 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -55,7 +55,7 @@ opt.clipboard = "unnamedplus" -- editing text opt.undofile = true opt.textwidth = 80 -opt.completeopt = { "menuone", "preview", "noselect" } +opt.completeopt = { "menuone", "preview" } -- tabs and indenting opt.tabstop = 4 @@ -115,14 +115,15 @@ keymap_set("n", ".", "edit .") -- buffer autocomplete --------------------------------------------------------- -local bufautocomplete_augroup = api.nvim_create_augroup("Buffer autocompletion", {}), -api.nvim_create_autocmd("InsertCharPre", { - group = bufautocomplete_augroup, - pattern = "*", - callback = function () - if fn.pumvisible() == 0 and v.char:find("%w") then - api.nvim_input("") - end - end, - desc = "Buffer autocomplete on InsertCharPre", -}) +-- @note disable autocompletion for now +-- local bufautocomplete_augroup = api.nvim_create_augroup("Buffer autocompletion", {}), +-- api.nvim_create_autocmd("InsertCharPre", { +-- group = bufautocomplete_augroup, +-- pattern = "*", +-- callback = function () +-- if fn.pumvisible() == 0 and v.char:find("%w") then +-- api.nvim_input("") +-- end +-- end, +-- desc = "Buffer autocomplete on InsertCharPre", +-- })