mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 13:45:59 +01:00
22 lines
352 B
Nix
22 lines
352 B
Nix
|
{
|
||
|
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 {}
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|