From 0d1c4657caa238fa36acb698b506cf645894457e Mon Sep 17 00:00:00 2001 From: fleaz Date: Wed, 16 Feb 2022 16:50:31 +0100 Subject: [PATCH] neovim: More plugins and some config --- home-manager/modules/neovim.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/neovim.nix b/home-manager/modules/neovim.nix index 7145d98..3ad9777 100644 --- a/home-manager/modules/neovim.nix +++ b/home-manager/modules/neovim.nix @@ -1,6 +1,7 @@ { pkgs, ... }: { - programs.vim = { + programs.neovim = { enable = true; + vimAlias = true; plugins = with pkgs.vimPlugins; [ # Nice statusbar at the bottom @@ -11,10 +12,29 @@ # Colorscheme vim-monokai + + # Fileexplorer in the sidebar + nvim-tree-lua + + # Fancy icons for sidebar + nvim-web-devicons + + # Bar at the top for all open buffers + bufferline-nvim + + # git diff icons on the left sidebar + vim-gitgutter ]; - settings = { ignorecase = true; }; extraConfig = '' set mouse=a + set termguicolors + set background=dark + set nu + colorscheme monokai + lua << EOF + require("bufferline").setup{} + require("nvim-tree").setup{} + EOF ''; }; }