This commit is contained in:
Hadi 2024-07-09 12:05:04 +02:00
parent 33a9386356
commit 9142814f8f
3 changed files with 33 additions and 33 deletions

View File

@ -21,14 +21,8 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
- [ ] Nixvim - [ ] Nixvim
- [ ] Keymaps: - [ ] Keymaps:
- Toggle todos
- Format tables
- Trouble - Trouble
- Telescope find file from filename, find file from content
- Neo Tree, Oil
- Dashboard
- Tagbar - Tagbar
- Line wrapping
- [ ] Backup system for some folders ($home/dev, $home/pictures, ...) - [ ] Backup system for some folders ($home/dev, $home/pictures, ...)
- [ ] Exclude file pattern (nodes modules, ...) - [ ] Exclude file pattern (nodes modules, ...)

View File

@ -1,7 +1,14 @@
{ {
programs.nixvim.keymaps = [{ programs.nixvim.keymaps = [
key = "<space>fm"; {
action = "<cmd>lua vim.lsp.buf.format()<cr>"; key = "<leader>fm";
options.desc = "LSP Format"; action = "<cmd>lua vim.lsp.buf.format()<cr>";
}]; options.desc = "LSP Format";
}
{
key = "<leader>w";
action = "<cmd>set wrap!<cr>";
options.desc = "Toggle Word Wrapping";
}
];
} }

View File

@ -1,24 +1,23 @@
{ { pkgs, ... }: {
programs.nixvim= { home.packages = with pkgs; [ ctags ];
plugins = { programs.nixvim = {
lualine.enable = true; plugins = {
noice.enable = true; lualine.enable = true;
gitsigns = { noice.enable = true;
enable = true; gitsigns = {
settings.current_line_blame = false; enable = true;
}; settings.current_line_blame = false;
bufferline.enable = true; };
trouble.enable = true; bufferline.enable = true;
which-key.enable=true; trouble.enable = true;
headlines.enable=true; which-key.enable = true;
tagbar.enable =true; headlines.enable = true;
}; tagbar.enable = true;
keymaps = [
{
key = "<leader>t";
action = "<cmd>TroubleToggle<cr>";
options.desc = "Trouble";
}
];
}; };
keymaps = [{
key = "<leader>t";
action = "<cmd>TroubleToggle<cr>";
options.desc = "Trouble";
}];
};
} }