diff --git a/lua/configs/cmp.lua b/lua/configs/cmp.lua index 5bd7096..cf7cf1d 100644 --- a/lua/configs/cmp.lua +++ b/lua/configs/cmp.lua @@ -75,6 +75,7 @@ function M.config() scrolloff = 1, }, }, + preselect = cmp.PreselectMode.None, completion = { keyword_length = 1, }, diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index f0ce6cf..0c70979 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -137,6 +137,10 @@ function M.config() lspconfig.tsserver.setup({ on_attach = on_attach, }) + + lspconfig.rust_analyzer.setup({ + on_attach = on_attach, + }) end return M