nixos-config/home-manager/modules/neovim.nix

41 lines
764 B
Nix
Raw Normal View History

2022-01-26 19:45:40 +00:00
{ pkgs, ... }: {
2022-02-16 15:50:31 +00:00
programs.neovim = {
2022-02-06 23:01:27 +00:00
enable = true;
2022-02-16 15:50:31 +00:00
vimAlias = true;
2022-02-07 17:11:50 +00:00
plugins = with pkgs.vimPlugins; [
# Nice statusbar at the bottom
vim-airline
# Autoformatter for 'all' languages
neoformat
# Colorscheme
vim-monokai
2022-02-16 15:50:31 +00:00
# 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
2022-02-07 17:11:50 +00:00
];
2022-02-06 23:01:27 +00:00
extraConfig = ''
set mouse=a
2022-02-16 15:50:31 +00:00
set termguicolors
set background=dark
set nu
colorscheme monokai
lua << EOF
require("bufferline").setup{}
require("nvim-tree").setup{}
EOF
2022-02-06 23:01:27 +00:00
'';
};
2022-01-26 19:45:40 +00:00
}