Compare commits
5 Commits
2831e6d360
...
a775be7fa0
Author | SHA1 | Date | |
---|---|---|---|
a775be7fa0 | |||
0b070e88de | |||
be61285b8a | |||
c863683a9a | |||
9b55925e6c |
@ -7,14 +7,6 @@ if has('nvim')
|
||||
endif
|
||||
endif
|
||||
|
||||
if version >= 8.0
|
||||
if ! filereadable(system('echo -n "$HOME/.vim/autoload/plug.vim"'))
|
||||
silent !mkdir -p $HOME/.vim/autoload/
|
||||
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.vim/autoload/plug.vim
|
||||
autocmd VimEnter * PlugInstall
|
||||
endif
|
||||
endif
|
||||
|
||||
let mapleader = "\<Space>"
|
||||
let g:python3_host_prog = expand('/usr/bin/python3')
|
||||
let g:loaded_python_provider = 0
|
||||
@ -56,12 +48,12 @@ call plug#begin('~/.config/nvim/plugged')
|
||||
Plug 'gruvbox-community/gruvbox', { 'as': 'gruvbox'}
|
||||
|
||||
" Fzf plugin
|
||||
" Plug 'junegunn/fzf.vim'
|
||||
" Plug 'junegunn/fzf'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'junegunn/fzf'
|
||||
|
||||
" Telescope
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'nvim-telescope/telescope.nvim'
|
||||
" Plug 'nvim-lua/plenary.nvim'
|
||||
" Plug 'nvim-telescope/telescope.nvim'
|
||||
|
||||
" CSS
|
||||
Plug 'ap/vim-css-color'
|
||||
@ -96,11 +88,6 @@ function! s:check_back_space() abort
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
" 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 tab for trigger completion with characters ahead and navigate.
|
||||
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
||||
" other plugin before putting this into your config.
|
||||
@ -120,6 +107,12 @@ nmap <silent> <leader>gp <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent> <leader>gn <Plug>(coc-diagnostic-next)
|
||||
nnoremap <leader>cr :CocRestart
|
||||
|
||||
" Commentry
|
||||
xmap <leader>c <Plug>Commentary
|
||||
nmap <leader>c <Plug>Commentary
|
||||
omap <leader>c <Plug>Commentary
|
||||
nmap <leader>cc <Plug>CommentaryLine
|
||||
|
||||
" Status-line
|
||||
set statusline=
|
||||
set statusline+=%#IncSearch#
|
||||
@ -143,13 +136,13 @@ command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-h
|
||||
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
|
||||
set grepprg=rg\ --vimgrep
|
||||
|
||||
nmap <Leader>e :Telescope buffers<CR>
|
||||
nmap <Leader>q :Telescope live_grep<CR>
|
||||
nmap <Leader>w :Telescope find_files<CR>
|
||||
" nmap <Leader>e :Telescope buffers<CR>
|
||||
" nmap <Leader>q :Telescope live_grep<CR>
|
||||
" nmap <Leader>w :Telescope find_files<CR>
|
||||
|
||||
"nmap <Leader>e :Buffers<CR>
|
||||
"nmap <Leader>q :Rg<CR>
|
||||
"nmap <Leader>w :Files<CR>
|
||||
nmap <Leader>e :Buffers<CR>
|
||||
nmap <Leader>q :Rg<CR>
|
||||
nmap <Leader>w :Files<CR>
|
||||
|
||||
" Resize window
|
||||
nnoremap <C-L> :vertical resize +5<CR>
|
||||
@ -165,10 +158,6 @@ nnoremap - :split <CR>
|
||||
nnoremap <F5> :edit <CR>
|
||||
nnoremap <Leader><F5> :edit! <CR>
|
||||
|
||||
" Copy using <Leader> anc c
|
||||
nnoremap <Leader>c :w !xclip<CR><CR>
|
||||
vnoremap <Leader>c "*y
|
||||
|
||||
" livepreviewer
|
||||
let g:livepreview_previewer = 'mupdf'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user