lspconfig update

This commit is contained in:
iris committed 2026-02-16 16:46:54 -05:00
1 parent e33f1fcb40
commit ab69e54910
2 files changed
+23 -28

No files matched your search

+6 -4
View File
@@ -1,8 +1,10 @@
return {
{
"mrcjkb/rustaceanvim",
ft = { "rust" },
},
-- {
-- "mrcjkb/rustaceanvim",
-- ft = { "rust" },
-- version = '^7',
-- lazy = false,
-- },
{
"windwp/nvim-autopairs",
config = function() require "nvim-autopairs".setup {} end
+17 -24
View File
@@ -1,11 +1,9 @@
local config = function()
local c = require("lspconfig")
vim.g.markdown_fenced_languages = {
"ts=typescript"
}
c.lua_ls.setup {
vim.lsp.config("lua_ls", {
settings = {
Lua = {
diagnostics = {
@@ -20,22 +18,17 @@ local config = function()
},
},
},
}
c.denols.setup {
root_dir = c.util.root_pattern("deno.json", "deno.jsonc"),
}
c.ts_ls.setup {
root_dir = c.util.root_pattern("package.json", "tsconfig.json", "jsconfig.json"),
single_file_support = false,
}
c.csharp_ls.setup {}
})
vim.lsp.enable("denols")
vim.lsp.enable("csharp_ls")
vim.lsp.enable("rust_analyzer")
c.angularls.setup {}
c.clangd.setup {}
c.asm_lsp.setup {}
c.pylsp.setup {}
c.kotlin_language_server.setup {}
c.texlab.setup {
vim.lsp.enable("angularls")
vim.lsp.enable("clangd")
vim.lsp.enable("asm_lsp")
vim.lsp.enable("pylsp")
vim.lsp.enable("kotlin_language_server")
vim.lsp.config("texlab", {
settings = {
texlab = {
build = {
@@ -44,17 +37,17 @@ local config = function()
}
}
}
}
c.wgsl_analyzer.setup {}
c.hls.setup {}
c.slint_lsp.setup {}
c.tinymist.setup {
})
vim.lsp.enable("wgsl_analyzer")
vim.lsp.enable("hls")
vim.lsp.enable("slint_lsp")
vim.lsp.config("tinymist", {
root_dir = "-",
settings = {
exportPdf = "onSave",
formatterMode = "typstyle",
}
}
})
require('mason').setup()
require('mason-lspconfig').setup()