Compare commits

..

8 commits

Author SHA1 Message Date
4b56685efc
Lazy: update setup code to match online Lazy docs
Some checks are pending
Send submodule updates to parent repo / update (main) (push) Waiting to run
Send submodule updates to parent repo / update (tiling) (push) Waiting to run
2025-05-10 10:58:14 +02:00
8c6bb614bf zig: add plugin to overwrite removals in nvim 0.11
Some checks failed
Send submodule updates to parent repo / update (main) (push) Has been cancelled
Send submodule updates to parent repo / update (tiling) (push) Has been cancelled
2025-04-20 11:03:50 +02:00
a124b15366 fixed 0.11 deprecations
Some checks failed
Send submodule updates to parent repo / update (main) (push) Has been cancelled
Send submodule updates to parent repo / update (tiling) (push) Has been cancelled
2025-04-18 15:45:26 +02:00
123281b16c lspconfig: setup zig 2025-04-18 15:45:17 +02:00
57b069c17b lsp: remove unused servers 2025-04-18 15:38:27 +02:00
e7adf3910e lspconfig: fix regression from afdc916
Some checks failed
Send submodule updates to parent repo / update (main) (push) Has been cancelled
Send submodule updates to parent repo / update (tiling) (push) Has been cancelled
2025-02-12 16:36:08 +01:00
3ef6aa1974 misc: remove whitespace damage 2025-02-12 16:33:32 +01:00
8c2ab48ed5 lapconfig: fix half-baked rename
Some checks failed
Send submodule updates to parent repo / update (main) (push) Has been cancelled
Send submodule updates to parent repo / update (tiling) (push) Has been cancelled
2025-02-01 22:01:10 +01:00
2 changed files with 15 additions and 6 deletions

View file

@ -1,6 +1,6 @@
return {
{
"mason-org/mason.nvim",
"williamboman/mason.nvim",
config = function()
require("mason").setup()
@ -13,8 +13,7 @@ return {
local mason_lspconfig = require("mason-lspconfig")
mason_lspconfig.setup({
ensure_installed = { "clangd", "lua_ls", "matlab_ls", "mesonlsp", "texlab", "ts_ls", "volar", "zls" },
automatic_enable = true
ensure_installed = { "clangd", "lua_ls", "matlab_ls", "mesonlsp", "texlab", "ts_ls", "volar", "zls" }
})
end

View file

@ -3,22 +3,32 @@ return {
config = function()
local lspconfig = require("lspconfig")
local mason_registry = require("mason-registry")
local volar_path = mason_registry.get_package("vue-language-server"):get_install_path() .. "/node_modules/@vue/language-server"
vim.lsp.config("clangd", {
lspconfig.clangd.setup({
cmd = { "clangd", "-header-insertion=never" },
})
lspconfig.lua_ls.setup({})
lspconfig.matlab_ls.setup({})
lspconfig.mesonlsp.setup({})
lspconfig.sqlls.setup({})
lspconfig.svlangserver.setup({})
lspconfig.texlab.setup({})
vim.lsp.config("ts_ls", {
lspconfig.ts_ls.setup({
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = vim.fn.expand("$MASON") .. "/packages/vue-language-server/node_modules/@vue/language-server",
location = volar_path,
languages = { "vue" },
},
},
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
})
lspconfig.volar.setup({})
lspconfig.zig.setup({})
end
}