From c8b0039285759c669f1a867c6c411e567b27844b Mon Sep 17 00:00:00 2001 From: Soliprem Date: Fri, 27 Sep 2024 20:21:17 +0200 Subject: [PATCH] otter-nvim: renamed from otter to otter-nvim --- configuration.nix | 2 +- modules/plugins/lsp/otter/config.nix | 8 ++++---- modules/plugins/lsp/otter/otter.nix | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index 6fd10c0..b21b26a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -19,7 +19,7 @@ isMaximal: { lspsaga.enable = false; trouble.enable = true; lspSignature.enable = true; - otter.enable = isMaximal; + otter-nvim.enable = isMaximal; lsplines.enable = isMaximal; nvim-docs-view.enable = isMaximal; }; diff --git a/modules/plugins/lsp/otter/config.nix b/modules/plugins/lsp/otter/config.nix index 8c4d0b7..ee942e1 100644 --- a/modules/plugins/lsp/otter/config.nix +++ b/modules/plugins/lsp/otter/config.nix @@ -10,10 +10,10 @@ cfg = config.vim.lsp; self = import ./otter.nix {inherit lib;}; - mappingDefinitions = self.options.vim.lsp.otter.mappings; - mappings = addDescriptionsToMappings cfg.otter.mappings mappingDefinitions; + mappingDefinitions = self.options.vim.lsp.otter-nvim.mappings; + mappings = addDescriptionsToMappings cfg.otter-nvim.mappings mappingDefinitions; in { - config = mkIf (cfg.enable && cfg.otter.enable) { + config = mkIf (cfg.enable && cfg.otter-nvim.enable) { assertions = [ { assertion = !config.vim.utility.ccc.enable; @@ -29,7 +29,7 @@ in { (mkSetBinding mappings.toggle "lua require'otter'.activate()") ]; - pluginRC.otter = entryAnywhere '' + pluginRC.otter-nvim = entryAnywhere '' -- Enable otter diagnostics viewer require("otter").setup() ''; diff --git a/modules/plugins/lsp/otter/otter.nix b/modules/plugins/lsp/otter/otter.nix index 109e64c..7d47322 100644 --- a/modules/plugins/lsp/otter/otter.nix +++ b/modules/plugins/lsp/otter/otter.nix @@ -3,10 +3,10 @@ inherit (lib.nvim.binds) mkMappingOption; in { options.vim.lsp = { - otter = { + otter-nvim = { enable = mkEnableOption "Otter LSP Injector"; mappings = { - toggle = mkMappingOption "Activate LSP on Cursor Position [otter]" "lo"; + toggle = mkMappingOption "Activate LSP on Cursor Position [otter-nvim]" "lo"; }; }; };