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"; {
key = "<leader>fm";
action = "<cmd>lua vim.lsp.buf.format()<cr>"; action = "<cmd>lua vim.lsp.buf.format()<cr>";
options.desc = "LSP Format"; options.desc = "LSP Format";
}]; }
{
key = "<leader>w";
action = "<cmd>set wrap!<cr>";
options.desc = "Toggle Word Wrapping";
}
];
} }

View File

@ -1,5 +1,6 @@
{ { pkgs, ... }: {
programs.nixvim= { home.packages = with pkgs; [ ctags ];
programs.nixvim = {
plugins = { plugins = {
lualine.enable = true; lualine.enable = true;
noice.enable = true; noice.enable = true;
@ -9,16 +10,14 @@
}; };
bufferline.enable = true; bufferline.enable = true;
trouble.enable = true; trouble.enable = true;
which-key.enable=true; which-key.enable = true;
headlines.enable=true; headlines.enable = true;
tagbar.enable =true; tagbar.enable = true;
}; };
keymaps = [ keymaps = [{
{
key = "<leader>t"; key = "<leader>t";
action = "<cmd>TroubleToggle<cr>"; action = "<cmd>TroubleToggle<cr>";
options.desc = "Trouble"; options.desc = "Trouble";
} }];
];
}; };
} }