Compare commits
3 Commits
7909b50953
...
0274ddcef1
Author | SHA1 | Date |
---|---|---|
iGor milhit | 0274ddcef1 | |
iGor milhit | 323ba253fc | |
iGor milhit | d9ddcdf35b |
47
init.vim
47
init.vim
|
@ -11,6 +11,8 @@ Plug 'junegunn/limelight.vim', { 'on': 'Goyo' } " Di
|
||||||
Plug 'lervag/vimtex' " Filetype and syntax plugin for LaTeX files
|
Plug 'lervag/vimtex' " Filetype and syntax plugin for LaTeX files
|
||||||
Plug 'dpelle/vim-Grammalecte' " French ortho/grammar spelling
|
Plug 'dpelle/vim-Grammalecte' " French ortho/grammar spelling
|
||||||
Plug 'arcticicestudio/nord-vim' " Nord color scheme
|
Plug 'arcticicestudio/nord-vim' " Nord color scheme
|
||||||
|
Plug 'sonph/onehalf', { 'rtp': 'vim' } " OneHalf color scheme
|
||||||
|
Plug 'sainnhe/edge' " Edge color schemes
|
||||||
Plug 'vim-airline/vim-airline' " Fancy bottom line in vim/neovim
|
Plug 'vim-airline/vim-airline' " Fancy bottom line in vim/neovim
|
||||||
Plug 'vim-airline/vim-airline-themes' " Themes for vim-airlines
|
Plug 'vim-airline/vim-airline-themes' " Themes for vim-airlines
|
||||||
Plug 'jiangmiao/auto-pairs' " Pairs autocomplete
|
Plug 'jiangmiao/auto-pairs' " Pairs autocomplete
|
||||||
|
@ -126,7 +128,7 @@ set clipboard+=unnamedplus
|
||||||
" Airline
|
" Airline
|
||||||
let g:airline_powerline_fonts=1
|
let g:airline_powerline_fonts=1
|
||||||
let g:airline#extensions#wordcount#filetypes='pandoc\|text\|' "Add support when pandoc is activated
|
let g:airline#extensions#wordcount#filetypes='pandoc\|text\|' "Add support when pandoc is activated
|
||||||
let g:airline_theme='nord'
|
let g:airline_theme='edge'
|
||||||
|
|
||||||
" Vim-table-mode. Set the table separator
|
" Vim-table-mode. Set the table separator
|
||||||
let g:table_mode_corner='|'
|
let g:table_mode_corner='|'
|
||||||
|
@ -188,29 +190,6 @@ else
|
||||||
set signcolumn=yes
|
set signcolumn=yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Use tab for trigger completion with characters ahead and navigate
|
|
||||||
inoremap <silent><expr> <TAB>
|
|
||||||
\ pumvisible() ? "\<C-n>" :
|
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
|
||||||
\ coc#refresh()
|
|
||||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
|
||||||
|
|
||||||
function! s:check_back_space() abort
|
|
||||||
let col = col('.') - 1
|
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
|
||||||
endfunction
|
|
||||||
" Use <c-space> to trigger completion.
|
|
||||||
if has('nvim')
|
|
||||||
inoremap <silent><expr> <c-space> coc#refresh()
|
|
||||||
else
|
|
||||||
inoremap <silent><expr> <c-@> coc#refresh()
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Make <CR> auto-select the first completion item and notify coc.nvim to
|
|
||||||
" format on enter, <cr> could be remapped by other vim plugin
|
|
||||||
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
|
||||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
|
||||||
|
|
||||||
" Use `[g` and `]g` to navigate diagnostics
|
" Use `[g` and `]g` to navigate diagnostics
|
||||||
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
|
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
|
||||||
nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
||||||
|
@ -250,15 +229,10 @@ let g:isort_command='isort'
|
||||||
|
|
||||||
" #########################################
|
" #########################################
|
||||||
" #########################################
|
" #########################################
|
||||||
let g:vimtex_compiler_latexmk = {
|
let g:vimtex_compiler_method='tectonic'
|
||||||
\ 'executable' : 'latexmk',
|
let g:vimtex_view_general_viewer='evince'
|
||||||
\ 'options' : [
|
let g:vimtex_view_general_options='--unique file:@pdf\#src:@line@tex'
|
||||||
\ '-xelatex',
|
|
||||||
\ '-file-line-error',
|
|
||||||
\ '-synctex=1',
|
|
||||||
\ '-interaction=nonstopmode',
|
|
||||||
\ ],
|
|
||||||
\}
|
|
||||||
|
|
||||||
" #########################################
|
" #########################################
|
||||||
" #########################################
|
" #########################################
|
||||||
|
@ -282,4 +256,9 @@ autocmd! User GoyoLeave Limelight!
|
||||||
|
|
||||||
" Syntax coloration and color theme
|
" Syntax coloration and color theme
|
||||||
syntax enable
|
syntax enable
|
||||||
colorscheme nord
|
set background=light
|
||||||
|
let g:edge_style = "light"
|
||||||
|
colorscheme edge
|
||||||
|
|
||||||
|
" Set the Semantic Menu highlight group
|
||||||
|
hi CocMenuSel ctermbg=252
|
||||||
|
|
Loading…
Reference in New Issue