feat: update neotree for moving files
This commit is contained in:
parent
9ade6862af
commit
e0c7a3e034
2 changed files with 12 additions and 0 deletions
|
@ -12,6 +12,7 @@ return {
|
|||
local nt = require("neo-tree")
|
||||
|
||||
nt.setup({
|
||||
enable_normal_mode_for_inputs = true,
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
show_hidden_count = false,
|
||||
|
@ -26,6 +27,16 @@ return {
|
|||
".DS_Store"
|
||||
}
|
||||
},
|
||||
},
|
||||
window = {
|
||||
mappings = {
|
||||
["m"] = {
|
||||
"move",
|
||||
config = {
|
||||
show_path = "relative"
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
|
|
@ -9,6 +9,7 @@ return {
|
|||
vim.keymap.set('n', '<Leader>pp', builtin.git_files, { desc = "Search git_files" })
|
||||
vim.keymap.set('n', '<Leader>pf', builtin.find_files, { desc = "Search all files " })
|
||||
vim.keymap.set('n', '<Leader>fh', builtin.help_tags, { desc = "View help tags" })
|
||||
vim.keymap.set('n', '<Leader>gc', builtin.git_branches, { desc = "Checkout git branches" })
|
||||
vim.keymap.set('n', '<Leader>ps', function()
|
||||
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
||||
end, { desc = "Grep entire project for string" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue