j vim: unsure changes
This commit is contained in:
parent
09abdb667c
commit
4a2af184e6
|
@ -20,68 +20,74 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# {
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.vim_configurable.customize {
|
(pkgs.vim_configurable.customize {
|
||||||
name = "vim";
|
name = "vim";
|
||||||
|
vimrcConfig.customRC = let
|
||||||
vimrcConfig.customRC = ''
|
colorscheme = ''colorscheme molokai'';
|
||||||
set nocompatible
|
setStatements = ''
|
||||||
|
set autowrite
|
||||||
:imap jk <Esc>
|
set clipboard=unnamedplus
|
||||||
:vmap v v
|
set nocompatible
|
||||||
:map gr :GoRun<Enter>
|
set path+=**
|
||||||
:nnoremap <S-TAB> :bnext<CR>
|
set ruler
|
||||||
:nnoremap <C-TAB> <c-w><c-w>
|
set undodir=$HOME/.vim/undo "directory where the undo files will be stored
|
||||||
:map nf :NERDTreeToggle<CR>
|
set undofile "turn on the feature
|
||||||
set autowrite
|
set wildignore+=*.o,*.class,*.hi,*.dyn_hi,*.dyn_o
|
||||||
set number
|
set wildmenu
|
||||||
set ruler
|
set listchars=trail:¶
|
||||||
set path+=**
|
'';
|
||||||
set wildmenu
|
remapStatements = ''
|
||||||
|
imap jk <Esc>
|
||||||
noremap x "_x
|
map gr :GoRun<Enter> " Map gr to execute go run
|
||||||
set clipboard=unnamedplus
|
map nf :NERDTreeToggle<CR>
|
||||||
|
nnoremap <C-TAB> <c-w><c-w>
|
||||||
let g:jsx_ext_required = 0
|
nnoremap <S-TAB> :bnext<CR>
|
||||||
|
noremap x "_x
|
||||||
let g:go_list_type = "quickfix"
|
vmap v v
|
||||||
let g:go_test_timeout = '10s'
|
'';
|
||||||
let g:go_fmt_command = "goimports"
|
settingsForGo = ''
|
||||||
let g:go_snippet_case_type = "camelcase"
|
let g:go_decls_includes = "func,type"
|
||||||
let g:go_highlight_types = 1
|
let g:go_def_mode = 'godef'
|
||||||
let g:go_highlight_fields = 1
|
let g:go_fmt_command = "goimports"
|
||||||
let g:go_highlight_functions = 1
|
let g:go_highlight_extra_types = 1
|
||||||
let g:go_highlight_methods = 1
|
let g:go_highlight_fields = 1
|
||||||
let g:go_highlight_extra_types = 1
|
let g:go_highlight_functions = 1
|
||||||
autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4
|
let g:go_highlight_methods = 1
|
||||||
let g:rehash256 = 1
|
let g:go_highlight_types = 1
|
||||||
let g:molokai_original = 1
|
let g:go_list_type = "quickfix"
|
||||||
colorscheme molokai
|
let g:go_metalinter_autosave = 1
|
||||||
let g:go_metalinter_enabled = ['vet', 'golint', 'errcheck']
|
let g:go_metalinter_enabled = ['vet', 'golint', 'errcheck']
|
||||||
let g:go_metalinter_autosave = 1
|
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
|
||||||
" let g:go_metalinter_autosave_enabled = ['vet', 'golint']
|
let g:go_snippet_case_type = "camelcase"
|
||||||
" let g:go_def_mode = 'godef'
|
let g:go_test_timeout = '10s'
|
||||||
" let g:go_decls_includes = "func,type"
|
let g:jsx_ext_required = 0
|
||||||
|
let g:molokai_original = 1
|
||||||
|
let g:rehash256 = 1
|
||||||
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
|
'';
|
||||||
let g:UltiSnipsExpandTrigger="<c-e>"
|
settingsForElm = ''
|
||||||
let g:UltiSnipsJumpForwardTrigger="<c-t>"
|
let g:polyglot_disabled = ['elm']
|
||||||
let g:UltiSnipsJumpBackwardTrigger="<c-q>"
|
let g:elm_detailed_complete = 1
|
||||||
|
let g:elm_format_autosave = 1
|
||||||
" If you want :UltiSnipsEdit to split your window.
|
let g:elm_syntastic_show_warnings = 1
|
||||||
let g:UltiSnipsEditSplit="vertical"
|
|
||||||
|
|
||||||
if has('persistent_undo') "check if your vim version supports it
|
|
||||||
set undofile "turn on the feature
|
|
||||||
set undodir=$HOME/.vim/undo "directory where the undo files will be stored
|
|
||||||
endif
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins;
|
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins;
|
||||||
vimrcConfig.vam.pluginDictionaries = [
|
vimrcConfig.vam.pluginDictionaries = [
|
||||||
{ names = [ "undotree" "molokai" "Syntastic" "ctrlp" "surround" "snipmate" "nerdtree" "easymotion"]; }
|
{
|
||||||
|
names = [
|
||||||
|
"ctrlp"
|
||||||
|
"easymotion"
|
||||||
|
"molokai"
|
||||||
|
"nerdtree"
|
||||||
|
"snipmate"
|
||||||
|
"surround"
|
||||||
|
"Syntastic"
|
||||||
|
"undotree"
|
||||||
|
"elm-vim"
|
||||||
|
"youcompleteme"
|
||||||
|
];
|
||||||
|
}
|
||||||
{ names = [ "vim-addon-nix" ]; ft_regex = "^nix\$"; }
|
{ names = [ "vim-addon-nix" ]; ft_regex = "^nix\$"; }
|
||||||
{ names = [ "vim-go" ]; ft_regex = "^go\$"; } # wanted: nsf/gocode
|
{ names = [ "vim-go" ]; ft_regex = "^go\$"; } # wanted: nsf/gocode
|
||||||
{ names = [ "vim-javascript" ]; ft_regex = "^js\$"; }
|
{ names = [ "vim-javascript" ]; ft_regex = "^js\$"; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user