otter-nvim: renamed from otter to otter-nvim

This commit is contained in:
Soliprem 2024-09-27 20:21:17 +02:00
parent c5c026a185
commit c8b0039285
3 changed files with 7 additions and 7 deletions

View file

@ -19,7 +19,7 @@ isMaximal: {
lspsaga.enable = false; lspsaga.enable = false;
trouble.enable = true; trouble.enable = true;
lspSignature.enable = true; lspSignature.enable = true;
otter.enable = isMaximal; otter-nvim.enable = isMaximal;
lsplines.enable = isMaximal; lsplines.enable = isMaximal;
nvim-docs-view.enable = isMaximal; nvim-docs-view.enable = isMaximal;
}; };

View file

@ -10,10 +10,10 @@
cfg = config.vim.lsp; cfg = config.vim.lsp;
self = import ./otter.nix {inherit lib;}; self = import ./otter.nix {inherit lib;};
mappingDefinitions = self.options.vim.lsp.otter.mappings; mappingDefinitions = self.options.vim.lsp.otter-nvim.mappings;
mappings = addDescriptionsToMappings cfg.otter.mappings mappingDefinitions; mappings = addDescriptionsToMappings cfg.otter-nvim.mappings mappingDefinitions;
in { in {
config = mkIf (cfg.enable && cfg.otter.enable) { config = mkIf (cfg.enable && cfg.otter-nvim.enable) {
assertions = [ assertions = [
{ {
assertion = !config.vim.utility.ccc.enable; assertion = !config.vim.utility.ccc.enable;
@ -29,7 +29,7 @@ in {
(mkSetBinding mappings.toggle "<cmd>lua require'otter'.activate()<CR>") (mkSetBinding mappings.toggle "<cmd>lua require'otter'.activate()<CR>")
]; ];
pluginRC.otter = entryAnywhere '' pluginRC.otter-nvim = entryAnywhere ''
-- Enable otter diagnostics viewer -- Enable otter diagnostics viewer
require("otter").setup() require("otter").setup()
''; '';

View file

@ -3,10 +3,10 @@
inherit (lib.nvim.binds) mkMappingOption; inherit (lib.nvim.binds) mkMappingOption;
in { in {
options.vim.lsp = { options.vim.lsp = {
otter = { otter-nvim = {
enable = mkEnableOption "Otter LSP Injector"; enable = mkEnableOption "Otter LSP Injector";
mappings = { mappings = {
toggle = mkMappingOption "Activate LSP on Cursor Position [otter]" "<leader>lo"; toggle = mkMappingOption "Activate LSP on Cursor Position [otter-nvim]" "<leader>lo";
}; };
}; };
}; };