mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-27 07:26:46 +00:00
otter-nvim: renamed from otter to otter-nvim
This commit is contained in:
parent
c5c026a185
commit
c8b0039285
3 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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()
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue