diff options
Diffstat (limited to 'nvim/.config')
-rw-r--r-- | nvim/.config/nvim/lua/filetree.lua | 2 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/treesitter.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nvim/.config/nvim/lua/filetree.lua b/nvim/.config/nvim/lua/filetree.lua index c3dfb8c..761aca6 100644 --- a/nvim/.config/nvim/lua/filetree.lua +++ b/nvim/.config/nvim/lua/filetree.lua @@ -1,7 +1,6 @@ local tree_cb = require'nvim-tree.config'.nvim_tree_callback require'nvim-tree'.setup { - auto_close = true, open_on_setup = true, hijack_cursor = true, view = { @@ -17,3 +16,4 @@ require'nvim-tree'.setup { } vim.api.nvim_set_keymap('n', '<F3>', ':NvimTreeToggle<CR>', { noremap = true, silent = true }) +vim.api.nvim_command('autocmd BufEnter * ++nested if winnr("$") == 1 && bufname() == "NvimTree_" . tabpagenr() | quit | endif') diff --git a/nvim/.config/nvim/lua/treesitter.lua b/nvim/.config/nvim/lua/treesitter.lua index be70d3b..7474577 100644 --- a/nvim/.config/nvim/lua/treesitter.lua +++ b/nvim/.config/nvim/lua/treesitter.lua @@ -20,4 +20,4 @@ require'nvim-treesitter.configs'.setup { } local parser_config = require "nvim-treesitter.parsers".get_parser_configs() -parser_config.tsx.used_by = { "javascript", "typescript.tsx" } +parser_config.tsx.filetype_to_parsename = { "javascript", "typescript.tsx" } |