-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fastaction: move to vim.ui, remove mappings, enable register_ui_selec…
…t by default
- Loading branch information
Showing
10 changed files
with
35 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
modules/plugins/lsp/code-actions/fastaction-nvim/config.nix
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
modules/plugins/lsp/code-actions/fastaction-nvim/fastaction-nvim.nix
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,5 @@ | |
./lspkind | ||
./lsplines | ||
./nvim-docs-view | ||
|
||
# Code Actions | ||
./code-actions | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ | |
./illuminate | ||
./breadcrumbs | ||
./borders | ||
./fastaction | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
config, | ||
lib, | ||
... | ||
}: let | ||
inherit (lib.modules) mkIf mkDefault; | ||
inherit (lib.nvim.dag) entryAnywhere; | ||
inherit (lib.nvim.lua) toLuaObject; | ||
|
||
cfg = config.vim.ui.fastaction; | ||
in { | ||
config = mkIf cfg.enable { | ||
vim = { | ||
ui.fastaction.setupOpts.register_ui_select = mkDefault true; | ||
|
||
startPlugins = ["fastaction-nvim"]; | ||
pluginRC.fastaction-nvim = entryAnywhere "require('fastaction').setup(${toLuaObject cfg.setupOpts})"; | ||
}; | ||
}; | ||
} |
2 changes: 1 addition & 1 deletion
2
.../code-actions/fastaction-nvim/default.nix → modules/plugins/ui/fastaction/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
imports = [ | ||
./config.nix | ||
./fastaction-nvim.nix | ||
./config.nix | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{lib, ...}: let | ||
inherit (lib.options) mkEnableOption; | ||
inherit (lib.nvim.types) mkPluginSetupOption; | ||
in { | ||
options.vim.ui.fastaction = { | ||
enable = mkEnableOption "overriding vim.ui.select with fastaction.nvim"; | ||
setupOpts = mkPluginSetupOption "fastaction" {}; | ||
}; | ||
} |