From 9142814f8f97f9752cb921cec69f15c5fd52c899 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:05:04 +0200 Subject: [PATCH] Update --- docs/TODO.md | 6 ----- home/programs/nvim/keymaps.nix | 17 ++++++++---- home/programs/nvim/plugins/ui.nix | 43 +++++++++++++++---------------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/TODO.md b/docs/TODO.md index cf49d7c..d340d8f 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -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, ...) diff --git a/home/programs/nvim/keymaps.nix b/home/programs/nvim/keymaps.nix index b293180..a55ba7e 100644 --- a/home/programs/nvim/keymaps.nix +++ b/home/programs/nvim/keymaps.nix @@ -1,7 +1,14 @@ { - programs.nixvim.keymaps = [{ - key = "fm"; - action = "lua vim.lsp.buf.format()"; - options.desc = "LSP Format"; - }]; + programs.nixvim.keymaps = [ + { + key = "fm"; + action = "lua vim.lsp.buf.format()"; + options.desc = "LSP Format"; + } + { + key = "w"; + action = "set wrap!"; + options.desc = "Toggle Word Wrapping"; + } + ]; } diff --git a/home/programs/nvim/plugins/ui.nix b/home/programs/nvim/plugins/ui.nix index 4f3ba6d..31153c3 100644 --- a/home/programs/nvim/plugins/ui.nix +++ b/home/programs/nvim/plugins/ui.nix @@ -1,24 +1,23 @@ -{ - programs.nixvim= { - plugins = { - lualine.enable = true; - noice.enable = true; - gitsigns = { - enable = true; - settings.current_line_blame = false; - }; - bufferline.enable = true; - trouble.enable = true; - which-key.enable=true; - headlines.enable=true; - tagbar.enable =true; - }; - keymaps = [ - { - key = "t"; - action = "TroubleToggle"; - options.desc = "Trouble"; - } - ]; +{ pkgs, ... }: { + home.packages = with pkgs; [ ctags ]; + programs.nixvim = { + plugins = { + lualine.enable = true; + noice.enable = true; + gitsigns = { + enable = true; + settings.current_line_blame = false; + }; + bufferline.enable = true; + trouble.enable = true; + which-key.enable = true; + headlines.enable = true; + tagbar.enable = true; }; + keymaps = [{ + key = "t"; + action = "TroubleToggle"; + options.desc = "Trouble"; + }]; + }; }