mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-09 14:11:11 +01:00
update nvim config
This commit is contained in:
parent
2464ff00cb
commit
310b10015e
3 changed files with 30 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue