mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/lsp/lua-ls: remove useless if/else for default package
This commit is contained in:
parent
df3aa86713
commit
adf7bb1301
1 changed files with 1 additions and 7 deletions
|
@ -282,13 +282,7 @@ let
|
||||||
{
|
{
|
||||||
name = "lua-ls";
|
name = "lua-ls";
|
||||||
description = "lua-ls for Lua";
|
description = "lua-ls for Lua";
|
||||||
# Use the old name of the lua LS if the user is on a stable branch of nixpkgs
|
package = pkgs.lua-language-server;
|
||||||
# Rename occurred here: https://github.com/NixOS/nixpkgs/pull/215057
|
|
||||||
package =
|
|
||||||
if (hasAttr "lua-language-server" pkgs) then
|
|
||||||
pkgs.lua-language-server
|
|
||||||
else
|
|
||||||
pkgs.sumneko-lua-language-server;
|
|
||||||
serverName = "lua_ls";
|
serverName = "lua_ls";
|
||||||
|
|
||||||
# All available settings are documented here:
|
# All available settings are documented here:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue