diff --git a/modules/home/all/neovim/default.nix b/modules/home/all/neovim/default.nix index 1d2b937..e655361 100644 --- a/modules/home/all/neovim/default.nix +++ b/modules/home/all/neovim/default.nix @@ -17,6 +17,7 @@ in # Theme colorschemes.rose-pine.enable = true; + # colorschemes.onedark.enable = true; # Settings opts = { @@ -38,7 +39,10 @@ in web-devicons.enable = true; lualine.enable = true; bufferline.enable = true; - treesitter.enable = true; + treesitter = { + enable = true; + }; + haskell-scope-highlighting.enable = true; which-key = { enable = true; }; @@ -60,10 +64,18 @@ in options.desc = "file finder"; action = "find_files"; }; + "fr" = { + options.desc = "recent files"; + action = "oldfiles"; + }; "fg" = { options.desc = "find via grep"; action = "live_grep"; }; + "T" = { + options.desc = "switch colorscheme"; + action = "colorscheme"; + }; }; extensions = { file-browser.enable = true; @@ -84,6 +96,7 @@ in "gt" = "type_definition"; "gi" = "implementation"; "K" = "hover"; + "A" = "code_action"; }; diagnostic = { "k" = "goto_prev"; diff --git a/modules/home/all/neovim/nvim-tree.nix b/modules/home/all/neovim/nvim-tree.nix index a4ccb36..ed14a12 100644 --- a/modules/home/all/neovim/nvim-tree.nix +++ b/modules/home/all/neovim/nvim-tree.nix @@ -2,8 +2,12 @@ plugins.nvim-tree.enable = true; keymaps = [ { - action = "NvimTreeToggle"; - key = "ft"; + action = "NvimTreeFindFileToggle"; + key = "tt"; + } + { + action = "NvimTreeFindFile"; + key = "tf"; } ]; }