fix telescope and add todo-comments

This commit is contained in:
Roel de Cort 2024-05-30 21:58:48 +02:00
parent e9ded6316c
commit cd1bc6acc3
4 changed files with 49 additions and 36 deletions

View file

@ -23,6 +23,7 @@ _: {
./plugins/editor/undotree.nix ./plugins/editor/undotree.nix
./plugins/editor/illuminate.nix ./plugins/editor/illuminate.nix
./plugins/editor/indent-blankline.nix ./plugins/editor/indent-blankline.nix
./plugins/editor/todo-comments.nix
# UI plugins # UI plugins
./plugins/ui/bufferline.nix ./plugins/ui/bufferline.nix

View file

@ -0,0 +1,12 @@
_: {
plugins.todo-comments = {
enable = true;
colors = {
error = ["DiagnosticError" "ErrorMsg" "#ED8796"];
warning = ["DiagnosticWarn" "WarningMsg" "#EED49F"];
info = ["DiagnosticInfo" "#EED49F"];
default = ["Identifier" "#F5A97F"];
test = ["Identifier" "#8AADF4"];
};
};
}

View file

@ -21,7 +21,7 @@
}; };
keymaps = { keymaps = {
"<leader><space>" = { "<leader><space>" = {
action = "find_files, {}"; action = "find_files";
options = { options = {
desc = "Find project files"; desc = "Find project files";
}; };
@ -33,139 +33,139 @@
}; };
}; };
"<leader>:" = { "<leader>:" = {
action = "command_history, {}"; action = "command_history";
options = { options = {
desc = "Command History"; desc = "Command History";
}; };
}; };
"<leader>b" = { "<leader>b" = {
action = "buffers, {}"; action = "buffers";
options = { options = {
desc = "+buffer"; desc = "+buffer";
}; };
}; };
"<leader>ff" = { "<leader>ff" = {
action = "find_files, {}"; action = "find_files";
options = { options = {
desc = "Find project files"; desc = "Find project files";
}; };
}; };
"<leader>fr" = { "<leader>fr" = {
action = "live_grep, {}"; action = "live_grep";
options = { options = {
desc = "Find text"; desc = "Find text";
}; };
}; };
"<leader>fR" = { "<leader>fR" = {
action = "resume, {}"; action = "resume";
options = { options = {
desc = "Resume"; desc = "Resume";
}; };
}; };
"<leader>fg" = { "<leader>fg" = {
action = "oldfiles, {}"; action = "oldfiles";
options = { options = {
desc = "Recent"; desc = "Recent";
}; };
}; };
"<leader>fb" = { "<leader>fb" = {
action = "buffers, {}"; action = "buffers";
options = { options = {
desc = "Buffers"; desc = "Buffers";
}; };
}; };
"<C-p>" = { "<C-p>" = {
action = "git_files, {}"; action = "git_files";
options = { options = {
desc = "Search git files"; desc = "Search git files";
}; };
}; };
"<leader>gc" = { "<leader>gc" = {
action = "git_commits, {}"; action = "git_commits";
options = { options = {
desc = "Commits"; desc = "Commits";
}; };
}; };
"<leader>gs" = { "<leader>gs" = {
action = "git_status, {}"; action = "git_status";
options = { options = {
desc = "Status"; desc = "Status";
}; };
}; };
"<leader>sa" = { "<leader>sa" = {
action = "autocommands, {}"; action = "autocommands";
options = { options = {
desc = "Auto Commands"; desc = "Auto Commands";
}; };
}; };
"<leader>sb" = { "<leader>sb" = {
action = "current_buffer_fuzzy_find, {}"; action = "current_buffer_fuzzy_find";
options = { options = {
desc = "Buffer"; desc = "Buffer";
}; };
}; };
"<leader>sc" = { "<leader>sc" = {
action = "command_history, {}"; action = "command_history";
options = { options = {
desc = "Command History"; desc = "Command History";
}; };
}; };
"<leader>sC" = { "<leader>sC" = {
action = "commands, {}"; action = "commands";
options = { options = {
desc = "Commands"; desc = "Commands";
}; };
}; };
"<leader>sD" = { "<leader>sD" = {
action = "diagnostics, {}"; action = "diagnostics";
options = { options = {
desc = "Workspace diagnostics"; desc = "Workspace diagnostics";
}; };
}; };
"<leader>sh" = { "<leader>sh" = {
action = "help_tags, {}"; action = "help_tags";
options = { options = {
desc = "Help pages"; desc = "Help pages";
}; };
}; };
"<leader>sH" = { "<leader>sH" = {
action = "highlights, {}"; action = "highlights";
options = { options = {
desc = "Search Highlight Groups"; desc = "Search Highlight Groups";
}; };
}; };
"<leader>sk" = { "<leader>sk" = {
action = "keymaps, {}"; action = "keymaps";
options = { options = {
desc = "Keymaps"; desc = "Keymaps";
}; };
}; };
"<leader>sM" = { "<leader>sM" = {
action = "man_pages, {}"; action = "man_pages";
options = { options = {
desc = "Man pages"; desc = "Man pages";
}; };
}; };
"<leader>sm" = { "<leader>sm" = {
action = "marks, {}"; action = "marks";
options = { options = {
desc = "Jump to Mark"; desc = "Jump to Mark";
}; };
}; };
"<leader>so" = { "<leader>so" = {
action = "vim_options, {}"; action = "vim_options";
options = { options = {
desc = "Options"; desc = "Options";
}; };
}; };
"<leader>sR" = { "<leader>sR" = {
action = "resume, {}"; action = "resume";
options = { options = {
desc = "Resume"; desc = "Resume";
}; };
}; };
"<leader>uC" = { "<leader>uC" = {
action = "colorscheme, {}"; action = "colorscheme";
options = { options = {
desc = "Colorscheme preview"; desc = "Colorscheme preview";
}; };

24
flake.lock generated
View file

@ -218,11 +218,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1716457508, "lastModified": 1717052710,
"narHash": "sha256-ZxzffLuWRyuMrkVVq7wastNUqeO0HJL9xqfY1QsYaqo=", "narHash": "sha256-LRhOxzXmOza5SymhOgnEzA8EAQp+94kkeUYWKKpLJ/U=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "850cb322046ef1a268449cf1ceda5fd24d930b05", "rev": "29c69d9a466e41d46fd3a7a9d0591ef9c113c2ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -239,11 +239,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1716511055, "lastModified": 1716993688,
"narHash": "sha256-5Fe/DGgvMhPEMl9VdVxv3zvwRcwNDmW5eRJ0gk72w7U=", "narHash": "sha256-vo5k2wQekfeoq/2aleQkBN41dQiQHNTniZeVONWiWLs=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "0bea8222f6e83247dd13b055d83e64bce02ee532", "rev": "c0d5b8c54d6828516c97f6be9f2d00c63a363df4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -254,11 +254,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1716509168, "lastModified": 1716948383,
"narHash": "sha256-4zSIhSRRIoEBwjbPm3YiGtbd8HDWzFxJjw5DYSDy1n8=", "narHash": "sha256-SzDKxseEcHR5KzPXLwsemyTR/kaM9whxeiJohbL04rs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bfb7a882678e518398ce9a31a881538679f6f092", "rev": "ad57eef4ef0659193044870c731987a6df5cf56b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -311,11 +311,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1716925245, "lastModified": 1717097562,
"narHash": "sha256-MO32KGgZUiWWsDYu93H47iOGWNlXO9BVOMrZzauZKCc=", "narHash": "sha256-4thrq0yjTmGEXH/EjteE/UoYjKZzuxWfULZEIRpfP08=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "56d39f54fe11776ba83903ec077bffc7a7d0e638", "rev": "25338942a7ee8d641c8d56ba3726a1cb114580ea",
"type": "github" "type": "github"
}, },
"original": { "original": {