update
This commit is contained in:
parent
71beb0fb78
commit
8bde5cc4d3
2 changed files with 16 additions and 14 deletions
|
|
@ -39,18 +39,4 @@ map('n', 'K', function()
|
|||
if lsp_has(0, 'hoverProvider') then vim.lsp.buf.hover() end
|
||||
end, { desc = 'Hover (LSP)', silent = true })
|
||||
|
||||
-- Netrw file explorer keymaps
|
||||
-- Open netrw in new tab at current file's directory
|
||||
map('n', '<leader>te', function()
|
||||
local current_file_dir = vim.fn.expand('%:p:h')
|
||||
vim.cmd('tabnew')
|
||||
vim.cmd('Explore ' .. vim.fn.fnameescape(current_file_dir))
|
||||
end, { desc = 'Tab explore (current file dir)', silent = true })
|
||||
|
||||
-- Open netrw in new tab at project root (cwd)
|
||||
map('n', '<leader>tE', function()
|
||||
vim.cmd('tabnew')
|
||||
vim.cmd('Explore ' .. vim.fn.fnameescape(vim.fn.getcwd()))
|
||||
end, { desc = 'Tab explore (project root)', silent = true })
|
||||
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue