mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 11:46:25 +00:00
Various refactors on nvim config
This commit is contained in:
@@ -3,7 +3,7 @@ local nnoremap = Remap.nnoremap
|
||||
local builtin = require("telescope.builtin")
|
||||
|
||||
nnoremap("<leader>pg", function()
|
||||
builtin.grep_string({ search = vim.fn.input("Grep For > ")})
|
||||
builtin.live_grep()
|
||||
end)
|
||||
nnoremap("<C-p>", function()
|
||||
if not pcall(builtin.git_files) then
|
||||
@@ -26,10 +26,13 @@ end)
|
||||
nnoremap("<leader>vh", function()
|
||||
builtin.help_tags()
|
||||
end)
|
||||
nnoremap("<leader>gw", function()
|
||||
|
||||
nnoremap("<leader>wc", function()
|
||||
require('telescope').extensions.git_worktree.create_git_worktree()
|
||||
end)
|
||||
nnoremap("<leader>ws", function()
|
||||
require('telescope').extensions.git_worktree.git_worktrees()
|
||||
end)
|
||||
nnoremap("<leader>gc", function()
|
||||
builtin.git_branches()
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user