mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-27 07:26:46 +00:00
created otter file
This commit is contained in:
parent
27c045bc9d
commit
3275ab221a
2 changed files with 30 additions and 0 deletions
21
modules/plugins/lsp/otter/config.nix
Normal file
21
modules/plugins/lsp/otter/config.nix
Normal 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 {}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
9
modules/plugins/lsp/otter/default.nix
Normal file
9
modules/plugins/lsp/otter/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.vim.lsp = {
|
||||
otter = {
|
||||
enable = mkEnableOption "trouble lsp for markup languages";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue