Skip to content

Commit

Permalink
Merge pull request #72 from TechDufus/neovim/keymaps
Browse files Browse the repository at this point in the history
Close neotree when launching telescope find_files().
  • Loading branch information
TechDufus authored Dec 27, 2023
2 parents 877f960 + 2dea4bf commit 07a7e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/neovim/files/lua/techdufus/core/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ keymap(term_mode, "<C-k>", "<C-\\><C-N><C-w>k", term_opts)
keymap(term_mode, "<C-l>", "<C-\\><C-N><C-w>l", term_opts)

-- Telescope --
keymap(normal_mode, "<leader>pf", "<cmd>lua require'telescope.builtin'.find_files({ hidden = true })<cr>", opts)
keymap(normal_mode, "<leader>pf", "<cmd>:Neotree close<cr><cmd>lua require'telescope.builtin'.find_files({ hidden = true })<cr>", opts)
keymap(normal_mode, "<leader>ps", "<cmd>lua require('telescope.builtin').live_grep({ hidden = true })<cr>", opts)

-- Telescope find files in nvim config directory
Expand Down

0 comments on commit 07a7e9d

Please sign in to comment.