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