1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-30 21:53:45 +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-j>", ":BufferLineCyclePrev<CR>", opts)
map("n", "<C-b>", ":NvimTreeToggle<CR>", opts)
map("n", "<C-b>", ":Neotree<CR>", opts)
-- Telescope
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
use({
"kyazdani42/nvim-tree.lua",
"nvim-neo-tree/neo-tree.nvim",
requires = {
"nvim-lua/plenary.nvim",
"kyazdani42/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
})

View file

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

View file

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

View file

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