diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-03-31 16:31:36 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-03-31 17:55:03 +0300 |
commit | 58d432c95cc35a0781d5b8273d87bc1f8791faeb (patch) | |
tree | 66a5d43586350f94fa447753cdaac21991a8e8de /nvim | |
parent | a2bfcf19ece43f00333eac45701510462584ad11 (diff) | |
download | dotfiles-58d432c95cc35a0781d5b8273d87bc1f8791faeb.tar.gz |
chore(nvim): update deprecated plugin settings
Diffstat (limited to 'nvim')
-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" } |