plugins/nvim-lsp: fix lua_ls workspace library attribute type

This commit is contained in:
Tanish2002 2023-07-15 06:46:38 +05:30 committed by Gaétan Lepage
parent 82a7d666f5
commit eb77b8588b

View file

@ -257,7 +257,12 @@ with lib; let
}; };
workspace = { workspace = {
library = mkOption { library = mkOption {
type = types.nullOr (types.either types.str helpers.rawType); type = with types;
nullOr
(
listOf
(either str helpers.rawType)
);
description = '' description = ''
An array of abosolute or workspace-relative paths that will be added to the workspace 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. 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 Files included here will have some features disabled such as renaming fields to
prevent accidentally renaming your library files. 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 { checkThirdParty = mkOption {
type = types.nullOr types.bool; type = types.nullOr types.bool;