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
- [ ] Keymaps:
- Toggle todos
- Format tables
- Trouble
- Telescope find file from filename, find file from content
- Neo Tree, Oil
- Dashboard
- Tagbar
- Line wrapping
- [ ] Backup system for some folders ($home/dev, $home/pictures, ...)
- [ ] Exclude file pattern (nodes modules, ...)

View File

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