diff --git a/flake.lock b/flake.lock index 52c0a90..8a5d3e7 100644 --- a/flake.lock +++ b/flake.lock @@ -315,7 +315,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-4s8+JKzXZzf25pCk5H0Kc67AbCuBuaTsTezlqiJzFrs=", + "narHash": "sha256-kRVJE3Cq+6Uaw7lnjHbwZ16gqiFm+MG7X/YMFXJKK7I=", "path": "./nixvim", "type": "path" }, diff --git a/nixvim/config/default.nix b/nixvim/config/default.nix index dc566b1..27cca82 100644 --- a/nixvim/config/default.nix +++ b/nixvim/config/default.nix @@ -8,6 +8,7 @@ # appearence ./bufferline.nix ./lualine.nix + ./telescope.nix # language support & lsp ./lsp.nix diff --git a/nixvim/config/options.nix b/nixvim/config/options.nix index 5b3a8bc..0e772cb 100644 --- a/nixvim/config/options.nix +++ b/nixvim/config/options.nix @@ -2,4 +2,6 @@ opts = { number = true; }; + + globals.mapleader = " "; } diff --git a/nixvim/config/telescope.nix b/nixvim/config/telescope.nix new file mode 100644 index 0000000..980a6ca --- /dev/null +++ b/nixvim/config/telescope.nix @@ -0,0 +1,43 @@ +{ + plugins.telescope = { + enable = true; + keymaps = { + "" = { + action = "find_files"; + options = { + desc = "Find files in current directory"; + }; + }; + "f" = { + action = "find_files"; + options = { + desc = "Find files in current directory"; + }; + }; + "/" = { + action = "live_grep"; + options = { + desc = "Grep (root dir)"; + }; + }; + "b" = { + action = "buffers"; + options = { + desc = "Buffer list"; + }; + }; + "fr" = { + action = "oldfiles"; + options = { + desc = "Recent files"; + }; + }; + "sD" = { + action = "diagnostics"; + options = { + desc = "Workspace diagnostics"; + }; + }; + }; + }; +}