2BXRWYE2ZSSO6G5GEVUHMX2MR2HDWJMSXCQEZDSXVYTPOYVGKEJAC
VDKCTFS4SJKJNMWX4R56TMAV4CY7P3X7GRCNCX22M33AFYSL5VSAC
GGKSPLOM4NMOFIKWY5DUIYUL7QFU4UQ54GWS2ER7Z3R3YW4SKVRQC
XWDYSQGRZY2ALY4IS7RJNLNDAKKTLSPMHJTRNQ4NAPVTCCVQOKRAC
MOVQVOTH2V43VZF7OVQ4MB2KN47YBAZ4KTPH7L4COKGFH5T7SQ3AC
JXVZMI5QUFMXRE4IMUN23P3OJSPG64BILE3NGKZHG7FXOJWVBJIQC
NTFTD777J7E4TZ4YKR2EXL56IRDEPAHARARVUGDTRX7OHMXWA7OAC
JB324YVUIGIJPM2BUXD5MLYRHL223R2YZQDR6KTNHYG7LYFRIFHAC
GG5KTOZLZKU47CB6USY7UIO22IQ4DU47ES6HKOQ336QSYKTSRJYAC
5U2VM4AB42255KJAFRVNOWHZ4MFVU3BNHH6SCOGWSBAEOJ7BITAQC
EQIYV4GQF2HJB6AGRGBCSBZSETC7EZ2SOZOMYFRNNN7RODZ5EQ3QC
configuration.nix
pkgs: {
enable = true;
#defaultEditor = true;
vimAlias = true;
viAlias = true;
withPython = true;
withNodeJs = true;
withRuby = true;
/* plugins = with pkgs.vimPlugins; [
coc-nvim
auto-pairs
vim-highlightedyank
vim-rooter
fzf-vim
base16-vim
typescript-vim
vimtex
vim-airline
#vim-jsx-typescript
#vim-floaterm
];
*/
configure = {
packages.myVimPackage = with pkgs.vimPlugins; {
#need to setup ion-vim
start = [
coc-nvim
auto-pairs
vim-highlightedyank
vim-rooter
fzf-vim
base16-vim
yats-vim
vim-gitgutter
vimtex
vim-airline
vim-sensible
vim-nix
];
opt = [ ];
};
customRC = ''
set number relativenumber
set showcmd
set updatetime=300
set splitbelow
set tabstop=4
set shiftwidth=4
set expandtab
{ ... }:
let
pkgs = import <nixos> { };
unstable = import <unstable> { };
in {
programs.neovim = {
enable = true;
#defaultEditor = true;
vimAlias = true;
viAlias = true;
withPython = true;
withNodeJs = true;
withRuby = true;
/* plugins = with pkgs.vimPlugins; [
coc-nvim
auto-pairs
vim-highlightedyank
vim-rooter
fzf-vim
base16-vim
typescript-vim
vimtex
vim-airline
#vim-jsx-typescript
#vim-floaterm
];
*/
configure = {
packages.myVimPackage = with pkgs.vimPlugins; {
#need to setup ion-vim
start = [
unstable.vimPlugins.coc-nvim # coc needs to stay up to date.
auto-pairs
vim-highlightedyank
vim-rooter
fzf-vim
base16-vim
yats-vim
vim-gitgutter
vimtex
vim-airline
vim-sensible
vim-nix
];
opt = [ ];
};
customRC = ''
set number relativenumber
set showcmd
set updatetime=300
set splitbelow
set tabstop=4
set shiftwidth=4
set expandtab
" javascript and typescript use tabs instead of spaces.
autocmd Filetype tsx setlocal noexpandtab
autocmd Filetype jsx setlocal noexpandtab
autocmd Filetype js setlocal noexpandtab
autocmd Filetype ts setlocal noexpandtab
" javascript and typescript use tabs instead of spaces.
autocmd Filetype tsx setlocal noexpandtab
autocmd Filetype jsx setlocal noexpandtab
autocmd Filetype js setlocal noexpandtab
autocmd Filetype ts setlocal noexpandtab
let g:coc_global_extensions = [ 'coc-omnisharp', 'coc-rust-analyzer', 'coc-go', 'coc-actions', 'coc-emmet', 'coc-css', 'coc-tsserver', 'coc-prettier', 'coc-deno','coc-html', 'coc-eslint']
let g:coc_global_extensions = [ 'coc-omnisharp', 'coc-rust-analyzer', 'coc-go', 'coc-actions', 'coc-emmet', 'coc-css', 'coc-tsserver', 'coc-prettier', 'coc-deno','coc-html', 'coc-eslint']
" use alt+hjkl to move between split/vsplit panels
tnoremap <A-h> <C-\><C-n><C-w>h
tnoremap <A-j> <C-\><C-n><C-w>j
tnoremap <A-k> <C-\><C-n><C-w>k
tnoremap <A-l> <C-\><C-n><C-w>l
nnoremap <A-h> <C-w>h
nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l
" git stuff.
let g:gitgutter_sign_added = '✚'
let g:gitgutter_sign_modified = '✹'
let g:gitgutter_sign_removed = '-'
let g:gitgutter_sign_removed_first_line = '-'
let g:gitgutter_sign_modified_removed = '-'
inoremap <silent><expr><c-space> coc#refresh()
" use alt+hjkl to move between split/vsplit panels
tnoremap <A-h> <C-\><C-n><C-w>h
tnoremap <A-j> <C-\><C-n><C-w>j
tnoremap <A-k> <C-\><C-n><C-w>k
tnoremap <A-l> <C-\><C-n><C-w>l
nnoremap <A-h> <C-w>h
nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l
"BASE16 themeing stuff
let base16colorspace=256 " Access colors present in 256 colorspace
colorscheme $BASE16_THEME
'';
};
/* extraConfig = ''
set nocompatible
set shell=/bin/bash
set hidden
set number relativenumber
set showcmd
set incsearch
set hlsearch
set shiftwidth=4
set tabstop=4
let mapleader=" "
autocmd BufWritePre * :silent! call CocAction('format')
"COC
set cmdheight=2
set updatetime=300
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
nmap <silent> gd <Plug>(coc-definition)
" Remap for do codeAction of selected region
function! s:cocActionsOpenFromSelected(type) abort
execute 'CocCommand actions.open ' . a:type
endfunction
"BASE16 themeing stuff
let base16colorspace=256 " Access colors present in 256 colorspace
colorscheme $BASE16_THEME
'';
};
/* extraConfig = ''
set nocompatible
set shell=/bin/bash
set hidden
set number relativenumber
set showcmd
set incsearch
set hlsearch
set shiftwidth=4
set tabstop=4
let mapleader=" "
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)
xmap <silent> <leader>a :<C-u>execute 'CocCommand actions.open ' . visualmode()<CR>
nmap <silent> <leader>a :<C-u>set operatorfunc=<SID>cocActionsOpenFromSelected<CR>
"COC
set cmdheight=2
set updatetime=300
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
nmap <silent> gd <Plug>(coc-definition)
" Remap for do codeAction of selected region
function! s:cocActionsOpenFromSelected(type) abort
execute 'CocCommand actions.open ' . a:type
endfunction
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)
xmap <silent> <leader>a :<C-u>execute 'CocCommand actions.open ' . visualmode()<CR>
nmap <silent> <leader>a :<C-u>set operatorfunc=<SID>cocActionsOpenFromSelected<CR>
command! -nargs=0 Format :call CocAction('format')
autocmd BufWritePre * :Format
let g:coc_global_extensions=[ 'coc-omnisharp', 'coc-rust-analyzer', 'coc-go', 'coc-actions', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-tsserver', 'coc-prettier']
command! -nargs=0 Format :call CocAction('format')
autocmd BufWritePre * :Format
let g:coc_global_extensions=[ 'coc-omnisharp', 'coc-rust-analyzer', 'coc-go', 'coc-actions', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-tsserver', 'coc-prettier']
"FZF
let $FZF_DEFAULT_COMMAND = "rg --files"
let $FZF_DEFAULT_OPTS=' --color=dark --color=fg:15,bg:-1,hl:1,fg+:#ffffff,bg+:#343D46,hl+:1 --color=info:0,prompt:0,pointer:12,marker:4,spinner:11,header:-1 --layout=reverse --margin=1,4'
let g:fzf_layout = { 'window': 'call FloatingFZF()' }
"FZF
let $FZF_DEFAULT_COMMAND = "rg --files"
let $FZF_DEFAULT_OPTS=' --color=dark --color=fg:15,bg:-1,hl:1,fg+:#ffffff,bg+:#343D46,hl+:1 --color=info:0,prompt:0,pointer:12,marker:4,spinner:11,header:-1 --layout=reverse --margin=1,4'
let g:fzf_layout = { 'window': 'call FloatingFZF()' }
function! FloatingFZF()
let buf = nvim_create_buf(v:false, v:true)
call setbufvar(buf, '&signcolumn', 'no')
let height = float2nr(12)
let width = float2nr(80)
let horizontal = float2nr((&columns - width) / 2)
let vertical = 1
let opts = {
\ 'relative': 'editor',
\ 'row': vertical,
\ 'col': horizontal,
\ 'width': width,
\ 'height': height,
\ 'style': 'minimal'
\ }
call nvim_open_win(buf, v:true, opts)
endfunction
"BASE16
let base16colorspace=256 " Access colors present in 256 colorspace
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif
set guifont=FiraCode:h12
nnoremap <c-t> :FloatermToggle <CR>
nnoremap <silent> ; :call fzf#vim#files('.', {'options': '--prompt ""'})<CR> nnoremap <silent> <leader>b :Buffers<CR>
noremap <c-c> <esc>
let g:vimtex_view_general_viewer = 'zathura'
'';
*/
"BASE16
let base16colorspace=256 " Access colors present in 256 colorspace
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif
set guifont=FiraCode:h12
nnoremap <c-t> :FloatermToggle <CR>
nnoremap <silent> ; :call fzf#vim#files('.', {'options': '--prompt ""'})<CR> nnoremap <silent> <leader>b :Buffers<CR>
noremap <c-c> <esc>
let g:vimtex_view_general_viewer = 'zathura'
'';
*/
};