From 58d432c95cc35a0781d5b8273d87bc1f8791faeb Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 31 Mar 2022 16:31:36 +0300 Subject: chore(nvim): update deprecated plugin settings --- nvim/.config/nvim/lua/filetree.lua | 2 +- 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', '', ':NvimTreeToggle', { 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" } -- cgit v1.2.3