diff --git a/modules/plugins/lsp/otter/config.nix b/modules/plugins/lsp/otter/config.nix new file mode 100644 index 0000000..8857d32 --- /dev/null +++ b/modules/plugins/lsp/otter/config.nix @@ -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 {} + ''; + }; + }; +} diff --git a/modules/plugins/lsp/otter/default.nix b/modules/plugins/lsp/otter/default.nix new file mode 100644 index 0000000..1432d8c --- /dev/null +++ b/modules/plugins/lsp/otter/default.nix @@ -0,0 +1,9 @@ +{lib, ...}: let + inherit (lib.options) mkEnableOption; +in { + options.vim.lsp = { + otter = { + enable = mkEnableOption "trouble lsp for markup languages"; + }; + }; +}