neovim-flake/modules/plugins/lsp/otter/config.nix

22 lines
352 B
Nix
Raw Normal View History

2024-09-27 09:27:58 +02:00
{
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 {}
'';
};
};
}