diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua new file mode 100644 index 0000000..e2c8fb0 --- /dev/null +++ b/lua/plugins/editor.lua @@ -0,0 +1,21 @@ +if true then return {} end + +return { + { + "nvim-tree/nvim-tree.lua", + dependencies = { "nvim-tree/nvim-web-devicons" }, + keys = { + { "fe", function() vim.cmd([[NvimTreeToggle]]) end, mode = { "n", "t" }, desc = "Toggle nvim-tree" }, + { "", function() vim.cmd([[NvimTreeFindFile]]) end, desc = "Show current file in nvim-tree" }, + }, + config = function() + require("nvim-tree").setup({ + actions = { + open_file = { + resize_window = false, + }, + }, + }) + end, + }, +} diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua new file mode 100644 index 0000000..b4f6472 --- /dev/null +++ b/lua/plugins/ui.lua @@ -0,0 +1,18 @@ +if true then return {} end + +return { + -- bufferline + "akinsho/bufferline.nvim", + opts = { + options = { + offsets = { + { + filetype = "NvimTree", + text = "Nvim-tree", + highlight = "Directory", + text_align = "left", + }, + }, + }, + }, +}