mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-23 21:09:48 +01:00
feat: vim-illuminate
This commit is contained in:
parent
294b712c15
commit
c20456e3a1
8 changed files with 59 additions and 0 deletions
|
@ -180,6 +180,7 @@ inputs: let
|
||||||
noice.enable = true;
|
noice.enable = true;
|
||||||
colorizer.enable = true;
|
colorizer.enable = true;
|
||||||
modes-nvim.enable = true;
|
modes-nvim.enable = true;
|
||||||
|
illuminate.enable = true;
|
||||||
smartcolumn = {
|
smartcolumn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
columnAt.languages = {
|
columnAt.languages = {
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1372,6 +1372,7 @@
|
||||||
"toggleterm-nvim": "toggleterm-nvim",
|
"toggleterm-nvim": "toggleterm-nvim",
|
||||||
"tokyonight": "tokyonight",
|
"tokyonight": "tokyonight",
|
||||||
"trouble": "trouble",
|
"trouble": "trouble",
|
||||||
|
"vim-illuminate": "vim-illuminate",
|
||||||
"vim-markdown": "vim-markdown",
|
"vim-markdown": "vim-markdown",
|
||||||
"vim-repeat": "vim-repeat",
|
"vim-repeat": "vim-repeat",
|
||||||
"vim-startify": "vim-startify",
|
"vim-startify": "vim-startify",
|
||||||
|
@ -1668,6 +1669,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vim-illuminate": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1679187974,
|
||||||
|
"narHash": "sha256-8dL3cBjQ2iY4D4gTxKVVmOGhxcSSRuDBvmEwwFIbWsQ=",
|
||||||
|
"owner": "RRethy",
|
||||||
|
"repo": "vim-illuminate",
|
||||||
|
"rev": "a2907275a6899c570d16e95b9db5fd921c167502",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "RRethy",
|
||||||
|
"repo": "vim-illuminate",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"vim-markdown": {
|
"vim-markdown": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -457,6 +457,11 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vim-illuminate = {
|
||||||
|
url = "github:RRethy/vim-illuminate";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Assistant
|
# Assistant
|
||||||
copilot-lua = {
|
copilot-lua = {
|
||||||
url = "github:zbirenbaum/copilot.lua";
|
url = "github:zbirenbaum/copilot.lua";
|
||||||
|
|
|
@ -82,6 +82,7 @@ with lib; let
|
||||||
"elixir-ls"
|
"elixir-ls"
|
||||||
"elixir-tools"
|
"elixir-tools"
|
||||||
"nvim-colorizer-lua"
|
"nvim-colorizer-lua"
|
||||||
|
"vim-illuminate"
|
||||||
];
|
];
|
||||||
# You can either use the name of the plugin or a package.
|
# You can either use the name of the plugin or a package.
|
||||||
pluginsType = with types;
|
pluginsType = with types;
|
||||||
|
|
|
@ -5,5 +5,6 @@ _: {
|
||||||
./notifications
|
./notifications
|
||||||
./smartcolumn
|
./smartcolumn
|
||||||
./colorizer
|
./colorizer
|
||||||
|
./illuminate
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
17
modules/ui/illuminate/config.nix
Normal file
17
modules/ui/illuminate/config.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
with builtins; let
|
||||||
|
cfg = config.vim.ui.illuminate;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim.startPlugins = ["vim-illuminate"];
|
||||||
|
|
||||||
|
vim.luaConfigRC.vim-illuminate =
|
||||||
|
nvim.dag.entryAnywhere ''
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/ui/illuminate/default.nix
Normal file
6
modules/ui/illuminate/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./config.nix
|
||||||
|
./illuminate.nix
|
||||||
|
];
|
||||||
|
}
|
11
modules/ui/illuminate/illuminate.nix
Normal file
11
modules/ui/illuminate/illuminate.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
with builtins; {
|
||||||
|
options.vim.ui.illuminate = {
|
||||||
|
enable = mkEnableOption "vim-illuminate: automatically highlight other uses of the word under the cursor";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue