refactor: removing needless module complexity
This commit is contained in:
26
modules/home/programs/nixvim/todo.nix
Normal file
26
modules/home/programs/nixvim/todo.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
highlight.Todo = {
|
||||
fg = "Blue";
|
||||
bg = "Yellow";
|
||||
};
|
||||
|
||||
match.TODO = "TODO";
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<C-t>";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require('telescope.builtin').live_grep({
|
||||
default_text="TODO",
|
||||
initial_mode="normal"
|
||||
})
|
||||
end
|
||||
'';
|
||||
options.silent = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user