From eb77b8588b36f5c195ed18c950493851effc0f0a Mon Sep 17 00:00:00 2001 From: Tanish2002 Date: Sat, 15 Jul 2023 06:46:38 +0530 Subject: [PATCH] plugins/nvim-lsp: fix lua_ls workspace library attribute type --- plugins/lsp/language-servers/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/lsp/language-servers/default.nix b/plugins/lsp/language-servers/default.nix index cf8f063e..a4ab50eb 100644 --- a/plugins/lsp/language-servers/default.nix +++ b/plugins/lsp/language-servers/default.nix @@ -257,7 +257,12 @@ with lib; let }; workspace = { library = mkOption { - type = types.nullOr (types.either types.str helpers.rawType); + type = with types; + nullOr + ( + listOf + (either str helpers.rawType) + ); description = '' An array of abosolute or workspace-relative paths that will be added to the workspace diagnosis - meaning you will get completion and context from these library files. @@ -265,7 +270,7 @@ with lib; let Files included here will have some features disabled such as renaming fields to prevent accidentally renaming your library files. ''; - default = helpers.mkRaw "vim.api.nvim_get_runtime_file('', true)"; + default = [(helpers.mkRaw "vim.api.nvim_get_runtime_file('', true)")]; }; checkThirdParty = mkOption { type = types.nullOr types.bool;