feat(typst-lsp): added
This commit is contained in:
23
init.lua
23
init.lua
@@ -125,5 +125,28 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||
function() vim.lsp.buf.format {async = true} end, opts)
|
||||
end
|
||||
})
|
||||
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||
-- deps.typst-lsp_path
|
||||
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.
|
||||
}
|
||||
}
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
||||
require("lsp-inlayhints").setup()
|
||||
require("completion")
|
||||
|
Reference in New Issue
Block a user