Update vimrc.
This commit is contained in:
		
							parent
							
								
									6c2a61d27a
								
							
						
					
					
						commit
						96a061ca63
					
				
							
								
								
									
										3
									
								
								ctags.in
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										3
									
								
								ctags.in
									
									
									
									
									
								
							@ -24,9 +24,8 @@
 | 
			
		||||
--langdef=bibtex
 | 
			
		||||
--langmap=bibtex:.bib
 | 
			
		||||
--regex-bibtex=/@string\{([^ "#%')(,=}{]+)/\1/s,BibTeX-Strings/i
 | 
			
		||||
--regex-bibtex=/@(article|book|booklet|inbook|incollection|inproceedings|manual|masterthesis|misc|phdthesis|proceedings|techreport|unpublished)\{([^,]+),/\2 [\1]/e,BibTeX-Entries/i
 | 
			
		||||
--regex-bibtex=/@(article|book|booklet|inbook|incollection|inproceedings|manual|masterthesis|misc|phdthesis|proceedings|techreport|unpublished)\{([^,]+),/\2/e,BibTeX-Entries/i
 | 
			
		||||
--regex-bibtex=/[[:space:]]*author[[:space:]]*=[[:space:]]*("([^"]+)"|\{([^\}]+)\})[[:space:]]*,?[[:space:]]*$/\2\3/a,BibTeX-Authors/i
 | 
			
		||||
--regex-bibtex=/[[:space:]]*title[[:space:]]*=[[:space:]]*["\{](\{[:word:]+\}.+|.+)(["}][[:space:]]*,[[:space:]]*$|$)/\1/t,BibTeX-Titles/i
 | 
			
		||||
 | 
			
		||||
# nix config from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/misc/ctags/wrapped.nix
 | 
			
		||||
--langdef=NIX
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										57
									
								
								vimrc
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										57
									
								
								vimrc
									
									
									
									
									
								
							@ -25,8 +25,6 @@ Plug 'bling/vim-airline'
 | 
			
		||||
Plug 'tomtom/tcomment_vim'
 | 
			
		||||
" Plug 'jalcine/cmake.vim' --slow
 | 
			
		||||
 | 
			
		||||
" Plug 'benekastah/neomake'
 | 
			
		||||
" Plug 'shougo/deoplete.nvim'
 | 
			
		||||
Plug 'roxma/nvim-completion-manager'
 | 
			
		||||
 | 
			
		||||
Plug 'editorconfig/editorconfig-vim'
 | 
			
		||||
@ -72,11 +70,10 @@ Plug 'idris-hackers/idris-vim'
 | 
			
		||||
Plug 'tpope/vim-fugitive' " git integration
 | 
			
		||||
Plug 'airblade/vim-gitgutter'
 | 
			
		||||
 | 
			
		||||
Plug 'lervag/vimtex'
 | 
			
		||||
" Plug 'ludovicchabant/vim-gutentags'
 | 
			
		||||
Plug 'kana/vim-textobj-user'
 | 
			
		||||
Plug 'rbonvall/vim-textobj-latex'
 | 
			
		||||
Plug 'kana/vim-textobj-indent'
 | 
			
		||||
Plug 'bps/vim-textobj-python'
 | 
			
		||||
Plug 'kana/vim-textobj-function'
 | 
			
		||||
 | 
			
		||||
Plug 'rhysd/vim-grammarous'
 | 
			
		||||
 | 
			
		||||
@ -96,8 +93,6 @@ Plug 'ahf/twelf-syntax'
 | 
			
		||||
 | 
			
		||||
Plug 'c-cube/vim-tptp'
 | 
			
		||||
 | 
			
		||||
Plug 'LaTeX-Box-Team/LaTeX-Box'
 | 
			
		||||
 | 
			
		||||
Plug 'SirVer/ultisnips'
 | 
			
		||||
Plug 'honza/vim-snippets'
 | 
			
		||||
 | 
			
		||||
@ -148,44 +143,42 @@ au syntax haskell setl omnifunc=necoghc#omnifunc
 | 
			
		||||
let g:necoghc_enable_detailed_browse=1
 | 
			
		||||
let g:haskell_conceal              = 0
 | 
			
		||||
 | 
			
		||||
let g:LatexBox_latexmk_async = 1
 | 
			
		||||
let g:LatexBox_latexmk_preview_continuously = 1
 | 
			
		||||
let g:LatexBox_quickfix = 2
 | 
			
		||||
call tcomment#DefineType('nix', '# %s')
 | 
			
		||||
call tcomment#DefineType('chaskell', '-- %s')
 | 
			
		||||
call tcomment#DefineType('vala', '// %s')
 | 
			
		||||
 | 
			
		||||
au syntax tex setl iskeyword+=:
 | 
			
		||||
au syntax tex syn region texZone start="\\begin{clilisting}" end="\\end{clilisting}\|%stopzone\>"
 | 
			
		||||
au syntax tex syn region texZone start="\\begin{tacticslisting}" end="\\end{tacticslisting}\|%stopzone\>"
 | 
			
		||||
au syntax tex syn region texZone start="\\begin{tacticsoutput}" end="\\end{tacticsoutput}\|%stopzone\>"
 | 
			
		||||
 | 
			
		||||
" better paragraph object for tex files FIXME
 | 
			
		||||
call textobj#user#plugin('latexparagraph', {
 | 
			
		||||
\   'paragraph': {
 | 
			
		||||
\     'pattern': ['\n\s*\n\\|\\end\\|\\begin', '\n\s*\n\\|\\begin\\|\\end'],
 | 
			
		||||
\     'select-a': 'al',
 | 
			
		||||
\     'select-i': 'il',
 | 
			
		||||
\   },
 | 
			
		||||
\ })
 | 
			
		||||
 | 
			
		||||
" disable annoying "file is read-only" warnings
 | 
			
		||||
au FileChangedRO * set noreadonly
 | 
			
		||||
 | 
			
		||||
let g:deoplete#enable_at_startup = 1
 | 
			
		||||
let g:deoplete#omni#input_patterns = {}
 | 
			
		||||
let g:deoplete#omni#input_patterns.scala = '[^. *\t]\.\w*'
 | 
			
		||||
let g:deoplete#omni#input_patterns.ledger = '[^. *\t]\:\w*'
 | 
			
		||||
 | 
			
		||||
nnoremap <c-p> :FZF<cr>
 | 
			
		||||
 | 
			
		||||
nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
 | 
			
		||||
nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
 | 
			
		||||
" nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
 | 
			
		||||
" nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
 | 
			
		||||
 | 
			
		||||
" let g:cm_completekeys = "\<Plug>(cm_completefunc)"
 | 
			
		||||
 | 
			
		||||
" call LanguageClient_setLoggingLevel('DEBUG')
 | 
			
		||||
let g:LanguageClient_trace = 'verbose'
 | 
			
		||||
let g:LanguageClient_autoStart = 1
 | 
			
		||||
let g:LanguageClient_serverCommands = {
 | 
			
		||||
    \ 'lean': ['node', '/home/gebner/lean-client-js/lean-language-server/lib/index.js', '--stdio'],
 | 
			
		||||
    \ }
 | 
			
		||||
" " call LanguageClient_setLoggingLevel('DEBUG')
 | 
			
		||||
" let g:LanguageClient_trace = 'verbose'
 | 
			
		||||
" let g:LanguageClient_autoStart = 1
 | 
			
		||||
" let g:LanguageClient_serverCommands = {
 | 
			
		||||
"     \ 'lean': ['node', '/home/gebner/lean-client-js/lean-language-server/lib/index.js', '--stdio'],
 | 
			
		||||
"     \ }
 | 
			
		||||
 | 
			
		||||
augroup my_cm_setup
 | 
			
		||||
  autocmd!
 | 
			
		||||
  autocmd User CmSetup call cm#register_source({
 | 
			
		||||
	\ 'name' : 'vimtex',
 | 
			
		||||
	\ 'priority': 8,
 | 
			
		||||
	\ 'scoping': 1,
 | 
			
		||||
	\ 'scopes': ['tex'],
 | 
			
		||||
	\ 'abbreviation': 'tex',
 | 
			
		||||
	\ 'cm_refresh_patterns': g:vimtex#re#ncm,
 | 
			
		||||
	\ 'cm_refresh': {'omnifunc': 'vimtex#complete#omnifunc'},
 | 
			
		||||
	\ })
 | 
			
		||||
augroup END
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user