Compare commits
No commits in common. "7c055de06ee0d6a856a9c15bc7c4f03efbe7f67f" and "a27cc282bd194459934c0ca2dc7857a0d3e42ee6" have entirely different histories.
7c055de06e
...
a27cc282bd
48
init.vim
48
init.vim
|
@ -5,15 +5,12 @@ Plug 'tpope/vim-sensible' " De
|
|||
Plug 'vim-pandoc/vim-pandoc' " Pandoc support
|
||||
Plug 'vim-pandoc/vim-pandoc-syntax' " Markdown syntax support
|
||||
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' } " Markdown preview
|
||||
Plug 'jakewvincent/mkdnflow.nvim' " Create, follow, display links in a directory of md files
|
||||
Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeEnable' } " Helper for table in markdown
|
||||
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' } " Distraction free mode for writing
|
||||
Plug 'junegunn/limelight.vim', { 'on': 'Goyo' } " Dime the color of the text that is not being updated
|
||||
Plug 'lervag/vimtex' " Filetype and syntax plugin for LaTeX files
|
||||
Plug 'dpelle/vim-Grammalecte' " French ortho/grammar spelling
|
||||
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-themes' " Themes for vim-airlines
|
||||
Plug 'jiangmiao/auto-pairs' " Pairs autocomplete
|
||||
|
@ -39,7 +36,6 @@ Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Fu
|
|||
Plug 'junegunn/fzf.vim' " fzf for vim/neovim
|
||||
Plug 'stsewd/fzf-checkout.vim' " Fuzzy search in git branches
|
||||
Plug 'ryanoasis/vim-devicons' " Add icons to plugins
|
||||
Plug 'chrisbra/csv.vim' " To diplay and manage CSV files
|
||||
call plug#end()
|
||||
|
||||
" Format indentation
|
||||
|
@ -130,7 +126,7 @@ set clipboard+=unnamedplus
|
|||
" Airline
|
||||
let g:airline_powerline_fonts=1
|
||||
let g:airline#extensions#wordcount#filetypes='pandoc\|text\|' "Add support when pandoc is activated
|
||||
let g:airline_theme='edge'
|
||||
let g:airline_theme='nord'
|
||||
|
||||
" Vim-table-mode. Set the table separator
|
||||
let g:table_mode_corner='|'
|
||||
|
@ -192,6 +188,29 @@ else
|
|||
set signcolumn=yes
|
||||
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 `:CocDiagnostics` to get all diagnostics of current buffer in location list.
|
||||
nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
||||
|
@ -261,23 +280,6 @@ nnoremap <leader>? :Helptags<CR>
|
|||
autocmd! User GoyoEnter Limelight
|
||||
autocmd! User GoyoLeave Limelight!
|
||||
|
||||
" #########################################
|
||||
" #########################################
|
||||
" mkdnflow configuration
|
||||
lua << EOF
|
||||
require('mkdnflow').setup({
|
||||
-- Config goes here; leave blank for defaults
|
||||
links = {
|
||||
conceal = true
|
||||
}
|
||||
})
|
||||
EOF
|
||||
|
||||
" Syntax coloration and color theme
|
||||
syntax enable
|
||||
set background=light
|
||||
let g:edge_style = "light"
|
||||
colorscheme edge
|
||||
|
||||
" Set the Semantic Menu highlight group
|
||||
hi CocMenuSel ctermbg=252
|
||||
colorscheme nord
|
||||
|
|
Loading…
Reference in New Issue