created otter file

This commit is contained in:
Soliprem 2024-09-27 09:27:58 +02:00
parent 27c045bc9d
commit 3275ab221a
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.lsp;
in {
config = mkIf (cfg.enable && cfg.otter.enable) {
vim = {
startPlugins = ["otter"];
pluginRC.trouble = entryAnywhere ''
-- Enable Otter
require("otter").setup {}
'';
};
};
}

View file

@ -0,0 +1,9 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.vim.lsp = {
otter = {
enable = mkEnableOption "trouble lsp for markup languages";
};
};
}