neovim(nvim-tree): Automatically focus opened file

This commit is contained in:
Donovan Glover 2024-09-08 21:53:31 -04:00
parent 0b720603ba
commit 9e59527e9a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -79,7 +79,11 @@
type = "lua"; type = "lua";
config = # lua config = # lua
'' ''
require("nvim-tree").setup() require("nvim-tree").setup {
update_focused_file = {
enable = true
}
}
vim.api.nvim_create_autocmd({"QuitPre"}, { vim.api.nvim_create_autocmd({"QuitPre"}, {
callback = function() callback = function()