Merge branch 'nvim-rust-tools' of git.shimun.net:shimun/configuration.nix into nvim-rust-tools

This commit is contained in:
u2515h
2024-01-16 18:54:09 +01:00
3 changed files with 144 additions and 161 deletions

View File

@@ -130,16 +130,21 @@ lspconfig.typst_lsp.setup {
cmd = {(deps["typst-lsp_path"] .. "/bin/typst-lsp")},
settings = {
exportPdf = "onType", -- Choose onType, onSave or never.
serverPath = (deps["typst-lsp_path"] .. "/bin/typst-lsp") -- Normally, there is no need to uncomment it.
serverPath = (deps["typst-lsp_path"] .. "/bin/typst-lsp"), -- Normally, there is no need to uncomment it.
}
}
lspconfig.nil_ls.setup {
cmd = {(deps.nil_path .. "/bin/nil")},
-- https://github.com/oxalica/nil/blob/main/docs/configuration.md
settings = {command = {formatting = "nixpkgs-fmt"}},
flake = {autoArchive = true, autoEvalInputs = true}
settings = {
command = {
formatting = "nixpkgs-fmt", },
},
flake = {
autoArchive = true,
autoEvalInputs = true,
},
}
require("lsp-inlayhints").setup()
require("rust.lua")
require("completion")