update nvim config

This commit is contained in:
Quentin Boyer 2021-06-29 13:41:53 +02:00
parent 2464ff00cb
commit 310b10015e
3 changed files with 30 additions and 2 deletions

View file

@ -13,8 +13,12 @@ require'lspconfig'.rust_analyzer.setup{
on_attach=lsp_status.on_attach,
settings = {
["rust-analyzer"] = {
procMacro = {
enable = true
},
cargo = {
allFeatures = true
allFeatures = true,
loadOutDirsFromCheck = true
},
updates = {
channel = "nightly"
@ -49,6 +53,26 @@ require'lspconfig'.rnix.setup{
capabilities = capabilities
}
require'lspconfig'.dartls.setup{
on_attach = lsp_status.on_attach,
capabilities = capabilities,
cmd = {"dart", vim.fn.expand("$DART_SDK") .. "/snapshots/analysis_server.dart.snapshot", "--lsp"}
}
require'lspconfig'.vuels.setup{
on_attach = lsp_status.on_attach,
capabilities = capabilities,
config = {
vetur = {
defaultFormatter = {
js = "prettier",
ts = "prettier",
html = "prettier"
}
}
}
}
--[[ local system_name
if vim.fn.has("mac") == 1 then
system_name = "macOS"