diff --git a/config/default.nix b/config/default.nix index 7e3f9fcc..de07a38f 100644 --- a/config/default.nix +++ b/config/default.nix @@ -67,6 +67,7 @@ ./utils/nvim-surround.nix ./utils/persistence.nix ./utils/plenary.nix + ./utils/project-nvim.nix ./utils/tmux-navigator.nix ./utils/todo-comments.nix ./utils/toggleterm.nix diff --git a/config/telescope/telescope.nix b/config/telescope/telescope.nix index 41afa87d..baa88bc1 100644 --- a/config/telescope/telescope.nix +++ b/config/telescope/telescope.nix @@ -2,6 +2,12 @@ plugins.telescope = { enable = true; extensions = { + fzf-native = { + enable = true; + }; + project-nvim = { + enable = true; + }; undo = { enable = true; mappings = { @@ -17,17 +23,12 @@ }; }; }; - fzf-native.enable = true; }; keymaps = { "" = { action = "find_files, {}"; desc = "Find project files"; }; - "ff" = { - action = "find_files, {}"; - desc = "Find project files"; - }; "/" = { action = "live_grep"; desc = "Grep (root dir)"; @@ -36,6 +37,14 @@ action = "command_history, {}"; desc = "Command History"; }; + "b" = { + action = "buffers, {}"; + desc = "+buffer"; + }; + "ff" = { + action = "find_files, {}"; + desc = "Find project files"; + }; "fr" = { action = "oldfiles, {}"; desc = "Recent"; @@ -44,10 +53,6 @@ action = "buffers, {}"; desc = "Buffers"; }; - "b" = { - action = "buffers, {}"; - desc = "+buffer"; - }; "" = { action = "git_files, {}"; desc = "Search git files"; @@ -115,6 +120,16 @@ }; }; keymaps = [ + + { + mode = "n"; + key = "fp"; + action = "Telescope projects"; + options = { + desc = "Projects"; + }; + } + { mode = "n"; key = "sd"; diff --git a/config/utils/project-nvim.nix b/config/utils/project-nvim.nix new file mode 100644 index 00000000..d4c01deb --- /dev/null +++ b/config/utils/project-nvim.nix @@ -0,0 +1,5 @@ +{ + plugins.project-nvim = { + enable = true; + }; +}