mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-13 00:45:32 +00:00
nvim-lint: fix bogus setupOpts
This commit is contained in:
parent
0e00c41a42
commit
eebaa4e430
2 changed files with 18 additions and 19 deletions
|
|
@ -13,7 +13,7 @@ in {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = ["nvim-lint"];
|
startPlugins = ["nvim-lint"];
|
||||||
pluginRC.nvim-lint = entryAnywhere ''
|
pluginRC.nvim-lint = entryAnywhere ''
|
||||||
require("lint").setup(${toLuaObject cfg.setupOpts})
|
require("lint").linters_by_ft = ${toLuaObject cfg.linters_by_ft}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.types) attrsOf listOf str;
|
inherit (lib.types) attrsOf listOf str;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
|
||||||
in {
|
in {
|
||||||
options.vim.diagnostics.nvim-lint = {
|
options.vim.diagnostics.nvim-lint = {
|
||||||
enable = mkEnableOption "asynchronous linter plugin for Neovim [nvim-lint]";
|
# TODO:remove internal
|
||||||
setupOpts = mkPluginSetupOption "nvim-lint" {
|
enable = mkEnableOption "asynchronous linter plugin for Neovim [nvim-lint]" // {internal = true;};
|
||||||
linters_by_ft = mkOption {
|
linters_by_ft = mkOption {
|
||||||
|
internal = true; # TODO: remove
|
||||||
type = attrsOf (listOf str);
|
type = attrsOf (listOf str);
|
||||||
default = {};
|
default = {};
|
||||||
example = {
|
example = {
|
||||||
|
|
@ -23,5 +23,4 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue