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

38 lines
No EOL
692 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
tokyonight-nvim
];
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 tokyonight-night
'';
};
}