mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 01:05:58 +01: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