diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index 94e9986..c04cc23 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -7,5 +7,9 @@ return { "nvim-tree/nvim-web-devicons", "MunifTanjim/nui.nvim", }, + config = function() + vim.keymap.set("n", "", ":Neotree toggle") + vim.cmd(":Neotree toggle ") + end, }, } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 40c585f..03a4fb1 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -3,7 +3,6 @@ return { build = ":TSUpdate", config = function() local configs = require("nvim-treesitter.configs") - vim.keymap.set("n", "", ":Neotree toggle") configs.setup({ ensure_installed = { "lua", "javascript", "html", "css", "svelte", "rust", "typescript", "python" },