nixos-config/modules/editors/nvim/default.nix

54 lines
1.5 KiB
Nix
Raw Normal View History

2022-09-17 16:50:50 +02:00
#
# Neovim
#
{ pkgs, ... }:
{
programs = {
neovim = {
enable = true;
viAlias = true;
vimAlias = true;
2022-09-19 17:47:24 +02:00
defaultEditor = true;
2022-09-17 16:50:50 +02:00
plugins = with pkgs.vimPlugins; [
# Syntax
vim-nix
vim-markdown
# Quality of life
vim-lastplace # Opens document where you left it
auto-pairs # Print double quotes/brackets/etc.
vim-gitgutter # See uncommitted changes of file :GitGutterEnable
# File Tree
2022-09-19 17:47:24 +02:00
nerdtree # File Manager - set in extraConfig to F6
2022-09-17 16:50:50 +02:00
# Customization
wombat256-vim # Color scheme for lightline
srcery-vim # Color scheme for text
lightline-vim # Info bar at bottom
2022-09-19 17:47:24 +02:00
indent-blankline-nvim # Indentation lines
2022-09-17 16:50:50 +02:00
];
2022-09-19 17:47:24 +02:00
configure = {
customRC = ''
syntax enable " Syntax highlighting
colorscheme srcery " Color scheme text
let g:lightline = {
\ 'colorscheme': 'wombat',
\ } " Color scheme lightline
highlight Comment cterm=italic gui=italic " Comments become italic
hi Normal guibg=NONE ctermbg=NONE " Remove background, better for personal theme
set number " Set numbers
nmap <F6> :NERDTreeToggle<CR> " F6 opens NERDTree
'';
2022-09-17 16:50:50 +02:00
};
};
}