mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 17:24:32 +02:00
plugins/nvim-lsp: fix lua_ls workspace library attribute type
This commit is contained in:
parent
82a7d666f5
commit
eb77b8588b
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue