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"; }; }; };