From d0acc293311dcfb7e65712cc7216aab6aceeaa87 Mon Sep 17 00:00:00 2001 From: juan Date: Mon, 27 Sep 2021 13:00:44 +0800 Subject: [PATCH] index change and tree changes --- lua/pluginList.lua | 2 ++ lua/plugins/nvim-tree.lua | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/pluginList.lua b/lua/pluginList.lua index c3392e0..c0aefdf 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -98,6 +98,8 @@ return require('packer').startup(function(use) after = "coq_nvim", config = function() require("plugins.nvim-autopairs") end } + + -- debugging use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"}, diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua index f72543f..666bcb3 100644 --- a/lua/plugins/nvim-tree.lua +++ b/lua/plugins/nvim-tree.lua @@ -13,8 +13,8 @@ require'nvim-tree'.setup { -- opens the tree when changing/opening a new tab if the tree wasn't previously opened open_on_tab = false, -- hijack the cursor in the tree to put it at the start of the filename - hijack_cursor = false, - -- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually) + hijack_cursor = true, + -- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually) update_cwd = false, -- show lsp diagnostics in the signcolumn lsp_diagnostics = false, @@ -39,7 +39,7 @@ require'nvim-tree'.setup { view = { -- width of the window, can be either a number (columns) or a string in `%` - width = 30, + width = 28, -- side of the tree, can be one of 'left' | 'right' | 'top' | 'bottom' side = 'left', -- if true the tree will resize itself after opening a file