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