nix/common/dotfiles/neovim.nix

40 lines
740 B
Nix
Raw Normal View History

2023-07-01 19:02:59 +09:00
{ config, pkgs, ... }: {
2023-07-01 21:25:37 +09:00
programs.neovim = {
2023-07-01 19:02:59 +09:00
enable = true;
2023-07-01 21:25:07 +09:00
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
2023-07-01 20:08:44 +09:00
plugins = with pkgs.vimPlugins; [
vim-airline
2023-07-01 20:42:01 +09:00
YouCompleteMe
2023-07-01 20:14:29 +09:00
tabnine-vim
2023-07-01 20:08:44 +09:00
nerdtree
rainbow
2023-07-01 20:42:01 +09:00
# Themes
vim-airline-themes
2023-07-01 21:02:03 +09:00
nord-vim
2023-07-01 20:42:01 +09:00
gruvbox
2023-07-01 21:54:54 +09:00
tokyonight-nvim
2023-07-01 20:08:44 +09:00
];
2023-07-01 19:02:59 +09:00
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
2023-07-02 08:49:27 +09:00
set nowrap
let g:rainbow_active = 1
2023-07-01 21:54:54 +09:00
colorscheme tokyonight-night
2023-07-01 19:02:59 +09:00
'';
};
}