dotfiles/nixpkgs/programs/neovim.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2021-12-11 15:29:12 +01:00
{ pkgs, home, colorTheme, ... }:
2021-12-08 16:26:56 +01:00
{
programs.neovim = {
enable = true;
2021-12-11 15:29:12 +01:00
2021-12-08 16:26:56 +01:00
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
2021-12-11 15:29:12 +01:00
2021-12-08 16:26:56 +01:00
plugins = with pkgs.vimPlugins; [
vim-commentary
vim-gitgutter
fzf-vim
vim-which-key
vim-nix
vim-surround
vim-fugitive
vim-css-color
semshi
goyo-vim
limelight-vim
vim-tmux-navigator
vim-polyglot
2021-12-11 15:29:12 +01:00
lightline-vim
{
plugin = rainbow;
config = ''
let g:rainbow_active = 1
'';
}
2021-12-08 16:26:56 +01:00
{
plugin = vim-monokai;
config = ''
colorscheme monokai
2021-12-11 15:29:12 +01:00
autocmd ColorScheme * highlight Normal ctermbg=0
autocmd ColorScheme * highlight LineNr ctermbg=0
autocmd ColorScheme * highlight CursorLineNR ctermbg=0 ctermfg=208
autocmd ColorScheme * highlight SignColumn ctermbg=0
autocmd ColorScheme * highlight GitGutterAdd ctermbg=0
autocmd ColorScheme * highlight GitGutterChange ctermbg=0
autocmd ColorScheme * highlight GitGutterDelete ctermbg=0
2021-12-08 16:26:56 +01:00
'';
}
];
2021-12-11 15:29:12 +01:00
extraConfig = ''
set clipboard+=unnamedplus
set number relativenumber
'';
2021-12-08 16:26:56 +01:00
};
2021-12-11 15:29:12 +01:00
home.sessionVariables = { EDITOR = "nvim"; };
2021-12-08 16:26:56 +01:00
}