default js/ts and python setup
This commit is contained in:
parent
f764b7bacd
commit
af466b6df8
12 changed files with 165 additions and 5 deletions
30
lua/custom/plugins/neotree.lua
Normal file
30
lua/custom/plugins/neotree.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
||||
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
require('neo-tree').setup {
|
||||
event_handlers = {
|
||||
|
||||
{
|
||||
event = "file_opened",
|
||||
handler = function(file_path)
|
||||
-- auto close
|
||||
-- vimc.cmd("Neotree close")
|
||||
-- OR
|
||||
require("neo-tree.command").execute({ action = "close" })
|
||||
end
|
||||
},
|
||||
|
||||
} }
|
||||
end,
|
||||
vim.keymap.set('n', '<C-e>', '<cmd>Neotree toggle reveal<CR>', { desc = 'Focus Neotree' }),
|
||||
vim.keymap.set('n', '<leader>gs', '<Cmd>Neotree float git_status<CR>', { desc = 'Git status' }),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue