nixos/home/code.nix

54 lines
1.4 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, home, ... }:
{
home.packages = with pkgs; [
nixfmt
jetbrains.idea-ultimate
jetbrains.jdk
vscode
];
programs.neovim = {
enable = true;
extraConfig = ''
2021-06-30 19:52:53 +01:00
" syntax
syntax enable
2021-06-30 19:52:53 +01:00
" color themes
set termguicolors
colorscheme molokai
2021-06-30 19:52:53 +01:00
" wildcard mode
2021-06-27 17:13:17 +01:00
set wildmode=longest:full,full
2021-06-30 19:52:53 +01:00
" remapping popup menu (command autocompletion)
cnoremap <expr> <up> pumvisible() ? "<C-p>" : "<up>
cnoremap <expr> <down> pumvisible() ? "<C-n>" : "<down>"
cnoremap <expr> <CR> pumvisible()? "<C-e>":"<CR>"
" set line numbers
2021-06-27 17:13:17 +01:00
set number
2021-06-30 19:52:53 +01:00
" YouCompleteMe
let g:ycm_key_list_stop_completion = ['<C-y>', '<CR>']
let g:ycm_key_list_select_completion = ['<Up>', '<Down>', '<TAB>']
2021-06-30 19:52:53 +01:00
" enable indent guides
let g:indent_guides_enable_on_vim_startup = 1
'';
2021-06-27 17:13:17 +01:00
viAlias = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
vim-nix
molokai
YouCompleteMe
vim-airline
2021-06-27 15:16:08 +01:00
vim-airline-themes
vim-lsp
2021-06-27 15:16:08 +01:00
vim-indent-guides
vim-signify
];
};
}