mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
plugins/nvim-lsp: sumneko_lua was renamed to lua_ls (both nix package and nvim-lsp server name) (#169)
This commit is contained in:
parent
fc62ff7d4a
commit
ef05078fac
1 changed files with 16 additions and 5 deletions
|
@ -6,6 +6,10 @@
|
||||||
} @ args:
|
} @ args:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ./helpers.nix args;
|
helpers = import ./helpers.nix args;
|
||||||
|
|
||||||
|
optionWarnings = import ../../lib/option-warnings.nix args;
|
||||||
|
basePluginPath = ["plugins" "lsp" "servers"];
|
||||||
|
|
||||||
servers = [
|
servers = [
|
||||||
{
|
{
|
||||||
name = "astro";
|
name = "astro";
|
||||||
|
@ -212,10 +216,10 @@ with lib; let
|
||||||
settings = cfg: {rust-analyzer = cfg;};
|
settings = cfg: {rust-analyzer = cfg;};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "sumneko-lua";
|
name = "lua-ls";
|
||||||
description = "Enable sumneko_lua, for lua";
|
description = "Enable lua LS, for lua";
|
||||||
package = pkgs.sumneko-lua-language-server;
|
package = pkgs.lua-language-server;
|
||||||
serverName = "sumneko_lua";
|
serverName = "lua_ls";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "tailwindcss";
|
name = "tailwindcss";
|
||||||
|
@ -248,5 +252,12 @@ with lib; let
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
imports = lib.lists.map (helpers.mkLsp) servers;
|
imports =
|
||||||
|
lib.lists.map (helpers.mkLsp) servers
|
||||||
|
++ [
|
||||||
|
(optionWarnings.mkRenamedOption {
|
||||||
|
option = basePluginPath ++ ["sumneko-lua"];
|
||||||
|
newOption = basePluginPath ++ ["lua-ls"];
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue