Remove nvim-tree
This commit is contained in:
@@ -14,16 +14,3 @@
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
local function open_file_tree()
|
||||
local ok, mod = pcall(require, "nvim-tree.api")
|
||||
if ok then
|
||||
-- get current window id
|
||||
local win = vim.api.nvim_get_current_win()
|
||||
-- open NvimTree
|
||||
mod.tree.open()
|
||||
-- switch back focus to previous window
|
||||
vim.api.nvim_set_current_win(win)
|
||||
end
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("VimEnter", { callback = open_file_tree, })
|
||||
|
||||
@@ -17,6 +17,3 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.g.vimsyn_embed = "1"
|
||||
vim.cmd.language("en_US.utf-8")
|
||||
-- Fix race condition in nvim-tree
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
Reference in New Issue
Block a user