add rust analyzer

This commit is contained in:
Michael Peters 2024-03-13 15:48:31 -07:00
parent d1f79cc0fa
commit 852d8c0dee
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,7 @@ function M.config()
scrolloff = 1,
},
},
preselect = cmp.PreselectMode.None,
completion = {
keyword_length = 1,
},

View File

@ -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