nix/common/dotfiles/neovim.nix
2023-07-01 21:52:00 +09:00

38 lines
No EOL
685 B
Nix

{ config, pkgs, ... }: {
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
plugins = with pkgs.vimPlugins; [
vim-airline
YouCompleteMe
tabnine-vim
nerdtree
rainbow
# Themes
vim-airline-themes
nord-vim
gruvbox
tokyo-night-theme
];
extraConfig = ''
set mouse=a
set number
syntax on
set hlsearch
set ignorecase
set smartcase
set autoindent
set ruler
set shiftwidth=2
set expandtab
set softtabstop=2
set cursorline
colorscheme gruvbox
'';
};
}