mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-11-01 01:31:14 +00:00
[neovim] Close Neo-tree if it is the last window left in the tab
This commit is contained in:
parent
3403d072e2
commit
5cd23310d3
@ -1,5 +1,3 @@
|
|||||||
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
|
|
||||||
|
|
||||||
-- Highlight Yanked Text
|
-- Highlight Yanked Text
|
||||||
vim.api.nvim_create_autocmd({ "TextYankPost" }, {
|
vim.api.nvim_create_autocmd({ "TextYankPost" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
|
@ -6,6 +6,7 @@ end
|
|||||||
vim.g.neo_tree_remove_legacy_commands = true
|
vim.g.neo_tree_remove_legacy_commands = true
|
||||||
|
|
||||||
neotree.setup({
|
neotree.setup({
|
||||||
|
close_if_last_window = true,
|
||||||
popup_border_style = "rounded",
|
popup_border_style = "rounded",
|
||||||
default_component_configs = {
|
default_component_configs = {
|
||||||
indent = {
|
indent = {
|
||||||
|
Loading…
Reference in New Issue
Block a user