1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2025-01-01 15:39:20 +00:00

Replace nvim-tree with neo-tree

This commit is contained in:
Mo8it 2022-03-25 13:57:43 +01:00
parent 4fd8046036
commit ac4d15180d
5 changed files with 12 additions and 36 deletions

View file

@ -24,7 +24,7 @@ map("n", "k", "v:count == 0 ? 'gk' : 'k'", e_opts)
map("n", "<C-k>", ":BufferLineCycleNext<CR>", opts) map("n", "<C-k>", ":BufferLineCycleNext<CR>", opts)
map("n", "<C-j>", ":BufferLineCyclePrev<CR>", opts) map("n", "<C-j>", ":BufferLineCyclePrev<CR>", opts)
map("n", "<C-b>", ":NvimTreeToggle<CR>", opts) map("n", "<C-b>", ":Neotree<CR>", opts)
-- Telescope -- Telescope
map("n", "<C-p>", "<cmd>lua require('plugins.telescope').custom_find_files()<CR>", opts) map("n", "<C-p>", "<cmd>lua require('plugins.telescope').custom_find_files()<CR>", opts)

View file

@ -28,9 +28,11 @@ return require("packer").startup(function()
-- File tree -- File tree
use({ use({
"kyazdani42/nvim-tree.lua", "nvim-neo-tree/neo-tree.nvim",
requires = { requires = {
"nvim-lua/plenary.nvim",
"kyazdani42/nvim-web-devicons", "kyazdani42/nvim-web-devicons",
"MunifTanjim/nui.nvim",
}, },
}) })

View file

@ -1,11 +1 @@
require("bufferline").setup({ require("bufferline").setup()
options = {
offsets = {
{
filetype = "NvimTree",
text = "",
text_align = "left",
},
},
},
})

View file

@ -9,7 +9,4 @@ require("lualine").setup({
lualine_y = {}, lualine_y = {},
lualine_z = { "progress" }, lualine_z = { "progress" },
}, },
extensions = {
"nvim-tree",
},
}) })

View file

@ -1,24 +1,11 @@
require("nvim-tree").setup({ require("neo-tree").setup({
open_on_setup = false, window = {
auto_close = true, position = "float",
hijack_cursor = true,
hijack_unnamed_buffer_when_opening = true,
update_cwd = true,
diagnostics = {
enable = true,
}, },
git = { filesystem = {
enable = true, filtered_items = {
ignore = false, hide_dotfiles = false,
}, hide_gitignored = false,
view = {
width = 25,
side = "left",
},
actions = {
open_file = {
quit_on_open = true,
resize_window = true,
}, },
}, },
}) })