diff --git a/home/modules/neovim.nix b/home/modules/neovim.nix index 7bed139..e5ba52a 100644 --- a/home/modules/neovim.nix +++ b/home/modules/neovim.nix @@ -40,8 +40,66 @@ in { ''; plugins = with pkgs.vimPlugins; [ + barbar-nvim + nvim-web-devicons vim-nix vim-visual-multi + { + plugin = nvim-tree-lua; + type = "lua"; + config = '' + require("nvim-tree").setup({ + renderer = { + icons = { + show = { + file = true, + folder = true, + folder_arrow = true, + git = true, + }, + glyphs = { + git = { + unstaged = "", + staged = "", + unmerged = "", + renamed = "", + untracked = "", + deleted = "", + ignored = "", + }, + }, + }, + }, + view = { + width = 30, + side = 'left', + }, + sync_root_with_cwd = true, --fix to open cwd with tree + respect_buf_cwd = true, + update_cwd = true, + update_focused_file = { + enable = true, + update_cwd = true, + update_root = true, + }, + }) + + vim.g.nvim_tree_respect_buf_cwd = 1 + + -- use g? for bindings help while in tree + ''; + } + { + plugin = gruvbox-nvim; + type = "lua"; + config = '' + require("gruvbox").setup({ + contrast = "high", + }) + vim.o.background = "dark" + vim.cmd([[colorscheme gruvbox]]) + ''; + } ]; }; home.sessionVariables = {