mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-17 17:24:21 +02:00
plugins/nvim-lsp: add a fallback for the lua LS package (#210)
This commit is contained in:
parent
7f23304c3d
commit
101b721f6f
1 changed files with 6 additions and 1 deletions
|
@ -172,7 +172,12 @@ with lib; let
|
||||||
{
|
{
|
||||||
name = "lua-ls";
|
name = "lua-ls";
|
||||||
description = "Enable lua LS, for lua";
|
description = "Enable lua LS, for lua";
|
||||||
package = pkgs.lua-language-server;
|
# Use the old name of the lua LS if the user is on a stable branch of nixpkgs
|
||||||
|
# Rename occured 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