added a buncha new LSPs.

This commit is contained in:
Gabe Venberg 2026-03-16 12:37:55 +01:00
parent f75102b78e
commit cbf028159f
8 changed files with 120 additions and 12 deletions

View file

@ -3,5 +3,8 @@ return {
"clangd",
for_cat = "C",
lsp = {},
after=function()
require("clangd_extensions").setup({})
end,
},
}

12
lua/lsp/config.lua Normal file
View file

@ -0,0 +1,12 @@
return {
{
"taplo",
for_cat = "config",
lsp = {},
},
{
"yamlls",
for_cat = "config",
lsp = {},
},
}

View file

@ -85,27 +85,37 @@ require('lze').load {
"conform.nvim",
for_cat = "lsp",
on_require = { "conform" },
cmd = { "ConformInfo" },
keys = { { "<leader>lf", function() require("conform").format({async=true}) end, mode = { "" }, desc = "Format buffer" }, },
cmd = { "ConformInfo" },
keys = {
{ "<leader>lf", function() require("conform").format({ async = true }) end, mode = { "" }, desc = "Format buffer" },
},
after = function()
require("conform").setup({
default_format_opts = {
lsp_format = "fallback",
},
formatters_by_ft = {
nix = { "alejandra" }
}
})
-- need to figure out how to properly seperate this.
if nixInfo("settings", "cat", "config") then
require("conform").formatters_by_ft.json = { "jq" }
end
if nixInfo("settings", "cat", "nix") then
require("conform").formatters_by_ft.nix = { "alejandra" }
end
end,
},
{ import = "lsp.lua" },
{ import = "lsp.python" },
{ import = "lsp.C" },
{ import = "lsp.typst" },
{ import = "lsp.bash" },
{ import = "lsp.zk" },
{ import = "lsp.rust" },
{ import = "lsp.config" },
{ import = "lsp.go" },
{ import = "lsp.jsonnet" },
{ import = "lsp.lua" },
{ import = "lsp.nix" },
{ import = "lsp.nushell" },
{ import = "lsp.python" },
{ import = "lsp.rust" },
{ import = "lsp.typst" },
{ import = "lsp.zig" },
{ import = "lsp.zk" },
}

7
lua/lsp/jsonnet.lua Normal file
View file

@ -0,0 +1,7 @@
return {
{
"jsonnet_ls",
for_cat = "jsonnet",
lsp = {},
},
}

9
lua/lsp/nix.lua Normal file
View file

@ -0,0 +1,9 @@
return {
{
"nixd",
for_cat = "nix",
lsp = {},
after = function()
end,
},
}

7
lua/lsp/nushell.lua Normal file
View file

@ -0,0 +1,7 @@
return {
{
"nushell",
for_cat = "nushell",
lsp = {},
},
}

7
lua/lsp/zig.lua Normal file
View file

@ -0,0 +1,7 @@
return {
{
"zls",
for_cat = "zig",
lsp = {},
},
}