mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
wip
This commit is contained in:
parent
12b6749545
commit
528964b3e7
9 changed files with 73 additions and 12 deletions
|
|
@ -21,7 +21,6 @@ return {
|
|||
},
|
||||
config = function()
|
||||
-- Custom Telescope command to grep from Git root
|
||||
vim.api.nvim_set_keymap('n', '<leader>lg', "<cmd>lua require('telescope.builtin').live_grep({ cwd = git_root() })<CR>", { noremap = true, silent = true })
|
||||
require("which-key").add({
|
||||
{ "<leader>/", function()
|
||||
require('telescope.builtin').live_grep({ cwd = git_root() })
|
||||
|
|
@ -38,7 +37,7 @@ return {
|
|||
{ "<leader>gi", ":Telescope lsp_implementations<CR>", desc = "Go to Implementations" },
|
||||
{ "<leader>gt", ":Telescope lsp_type_definitions<CR>", desc = "Go to Type Definition" },
|
||||
{ "<leader>cv", ":Telescope treesitter<CR>", desc = "List function names & variables" },
|
||||
{ "<leader>ca", ":Telescope diagnostics<CR>", desc = "Code diagnostics" },
|
||||
{ "<leader>cd", ":Telescope diagnostics<CR>", desc = "Code diagnostics" },
|
||||
|
||||
-- Git
|
||||
{ "<leader>Gt", ":Telescope git_branches<CR>", desc = "Git Branches" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue