Added a new autocmd to stop insert mode when entering neo-tree

master
Wynd 2024-07-12 01:01:02 +03:00
parent 18cf50a4ff
commit 68846f7130
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
-- used for when lazyness takes over and I'm using a mouse to click around in neo-tree
-- if insert mode is active then neo-tree won't behave as expected, so we want to stop it
vim.api.nvim_create_autocmd("BufEnter", {
pattern = { "*neo-tree*" },
callback = function()
vim.cmd("stopinsert")
end,
})
vim.api.nvim_create_user_command("ListPlugins", function()
local plugins = require("lazy").plugins()