From 9d4cbb845c482e00277a863a5f2fa2891e426d20 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Sun, 17 Dec 2023 02:18:19 +0100 Subject: [PATCH] nvim: init.lua: switched from nvim-tree to neo-tree --- .config/nvim/init.lua | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 33f6edf..2e2b5cb 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -18,7 +18,25 @@ require('lazy').setup({ "catppuccin/nvim", "nvim-treesitter/nvim-treesitter", "neovim/nvim-lspconfig", - "nvim-tree/nvim-tree", -- TODO: replace with neo-tree + { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information + }, + config = function () + require('neo-tree').setup({ + filesystem = { + filtered_items = { + visible = true, + }, + }, + }) + end, + }, }) --[[ @@ -48,25 +66,6 @@ local lspconfig = require('lspconfig') lspconfig.pyright.setup {} lspconfig.rust_analyzer.setup {} --- enable highlight groups -vim.opt.termguicolors = true - -require("nvim-tree").setup({ - sort = { - sorter = "case_sensitive", - }, - view = { - width = 30, - }, - renderer = { - group_empty = true, - }, - filters = { - dotfiles = false, - }, - sync_root_with_cwd = true, -}) - vim.keymap.set('n', '', ':move -2' ) vim.keymap.set('n', '', ':move -2' ) vim.keymap.set('n', '', ':move +1' )