update lspconfig

This commit is contained in:
chayleaf 2024-11-28 05:13:52 +07:00
parent 248516f83d
commit d97ef9fa5d
Signed by: chayleaf
GPG key ID: 78171AD46227E68E

View file

@ -255,7 +255,7 @@ in*/
config = ( config = (
let lsp = name: builtins.seq let lsp = name: builtins.seq
# ensure an lsp exists (otherwise lspconfig will still create an empty config for some reason) # ensure an lsp exists (otherwise lspconfig will still create an empty config for some reason)
(REQ "lspconfig.server_configurations.${name}") (REQ "lspconfig.configs.${name}")
# metatables, son! they harden in response to physical trauma # metatables, son! they harden in response to physical trauma
(REQ' (PROP (require "lspconfig") name)); (REQ' (PROP (require "lspconfig") name));
in [ in [
@ -364,7 +364,7 @@ in*/
} // args); } // args);
in on_attach_rust: [ in on_attach_rust: [
# (vim.lsp.set_log_level "debug") # (vim.lsp.set_log_level "debug")
# see https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md # see https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md
(lib.mapAttrsToList setupLsp { (lib.mapAttrsToList setupLsp {
bashls = { }; bashls = { };
clangd = { }; clangd = { };
@ -386,7 +386,7 @@ in*/
svelte = { }; svelte = { };
html = { }; html = { };
cssls = { }; cssls = { };
tsserver = { }; ts_ls = { };
jsonls = { }; jsonls = { };
nil_ls = { nil_ls = {
settings.nil = { settings.nil = {