diff --git a/lua/taken/core/opts.lua b/lua/taken/core/opts.lua index 7d705b2..4fd8698 100644 --- a/lua/taken/core/opts.lua +++ b/lua/taken/core/opts.lua @@ -40,14 +40,6 @@ opt.isfname:append("@-@") opt.updatetime = 50 ---options for whichkey -vim.o.timeout = true -vim.o.timeoutlen = 300 - --- Options for nvim-tree -g.loaded_netrw = 1 -g.loaded_netrwPlugin = 1 - -- windows if vim.fn.has("win32") == 1 then o.shell = "pwsh" diff --git a/lua/taken/plugins/neotree.lua b/lua/taken/plugins/neotree.lua index d15eba9..4da7618 100644 --- a/lua/taken/plugins/neotree.lua +++ b/lua/taken/plugins/neotree.lua @@ -1,5 +1,9 @@ return { "nvim-neo-tree/neo-tree.nvim", + init = function() + vim.g.loaded_netrw = 1 + vim.g.loaded_netrwPlugin = 1 + end, branch = "v3.x", dependencies = { "nvim-lua/plenary.nvim", diff --git a/lua/taken/plugins/nvimtree.lua b/lua/taken/plugins/nvimtree.lua index e68d9e7..d231447 100644 --- a/lua/taken/plugins/nvimtree.lua +++ b/lua/taken/plugins/nvimtree.lua @@ -2,6 +2,10 @@ return { "nvim-tree/nvim-tree.lua", dependencies = { "nvim-tree/nvim-web-devicons" }, enabled = false, + init = function() + vim.g.loaded_netrw = 1 + vim.g.loaded_netrwPlugin = 1 + end, config = function() local nvimtree = require("nvim-tree") diff --git a/lua/taken/plugins/whichkey.lua b/lua/taken/plugins/whichkey.lua index 0cdd689..b0e27e6 100644 --- a/lua/taken/plugins/whichkey.lua +++ b/lua/taken/plugins/whichkey.lua @@ -1,5 +1,9 @@ return { "folke/which-key.nvim", + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + end, config = function() local whichkey = require("which-key") @@ -14,7 +18,7 @@ return { icons = { breadcrumb = "»", separator = "➜", - group = "➜", + group = "", }, })