Compare commits
No commits in common. "bedb5d0769595350287ba104523bebfb26d0e521" and "99256574ae82cd5c1a9013b92e9523f49e1b03f0" have entirely different histories.
bedb5d0769
...
99256574ae
@ -56,12 +56,8 @@ call plug#begin('~/.config/nvim/plugged')
|
|||||||
Plug 'gruvbox-community/gruvbox', { 'as': 'gruvbox'}
|
Plug 'gruvbox-community/gruvbox', { 'as': 'gruvbox'}
|
||||||
|
|
||||||
" Fzf plugin
|
" Fzf plugin
|
||||||
" Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
" Plug 'junegunn/fzf'
|
Plug 'junegunn/fzf'
|
||||||
|
|
||||||
" Telescope
|
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
|
||||||
Plug 'nvim-telescope/telescope.nvim'
|
|
||||||
|
|
||||||
" CSS
|
" CSS
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
@ -91,38 +87,6 @@ call plug#end()
|
|||||||
" Instalation coc extentions
|
" Instalation coc extentions
|
||||||
let g:coc_global_extensions = ['coc-solargraph', 'coc-go', 'coc-yaml', 'coc-pyright', 'coc-json' , 'coc-markdownlint' , 'coc-sh', 'coc-prettier', 'coc-diagnostic', 'coc-perl']
|
let g:coc_global_extensions = ['coc-solargraph', 'coc-go', 'coc-yaml', 'coc-pyright', 'coc-json' , 'coc-markdownlint' , 'coc-sh', 'coc-prettier', 'coc-diagnostic', 'coc-perl']
|
||||||
|
|
||||||
function! s:check_back_space() abort
|
|
||||||
let col = col('.') - 1
|
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Use <leader .> to trigger completion.
|
|
||||||
inoremap <silent><expr> <leader>. coc#refresh()
|
|
||||||
|
|
||||||
" 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.
|
|
||||||
inoremap <silent><expr> <TAB>
|
|
||||||
\ pumvisible() ? "\<C-n>" :
|
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
|
||||||
\ coc#refresh()
|
|
||||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
|
||||||
|
|
||||||
" GoTo code navigation.
|
|
||||||
nmap <leader>gd <Plug>(coc-definition)
|
|
||||||
nmap <leader>gy <Plug>(coc-type-definition)
|
|
||||||
nmap <leader>gi <Plug>(coc-implementation)
|
|
||||||
nmap <leader>gr <Plug>(coc-references)
|
|
||||||
nmap <leader>rr <Plug>(coc-rename)
|
|
||||||
nmap <silent> <leader>gp <Plug>(coc-diagnostic-prev)
|
|
||||||
nmap <silent> <leader>gn <Plug>(coc-diagnostic-next)
|
|
||||||
nnoremap <leader>cr :CocRestart
|
|
||||||
|
|
||||||
" Status-line
|
" Status-line
|
||||||
set statusline=
|
set statusline=
|
||||||
set statusline+=%#IncSearch#
|
set statusline+=%#IncSearch#
|
||||||
@ -141,18 +105,14 @@ let g:ansible_extra_keywords_highlight = 1
|
|||||||
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
|
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
|
||||||
|
|
||||||
" fzf
|
" fzf
|
||||||
let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/\.local/share/nvim/*" -not -path "./Library/*" '
|
let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*"'
|
||||||
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||||||
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)
|
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
|
set grepprg=rg\ --vimgrep
|
||||||
|
nmap <Leader>e :Buffers<CR>
|
||||||
nmap <Leader>e :Telescope buffers<CR>
|
nmap <Leader>q :Rg<CR>
|
||||||
nmap <Leader>q :Telescope live_grep<CR>
|
nmap <Leader>w :Files<CR>
|
||||||
nmap <Leader>w :Telescope find_files<CR>
|
nmap <C-p> :Files<CR>
|
||||||
|
|
||||||
"nmap <Leader>e :Buffers<CR>
|
|
||||||
"nmap <Leader>q :Rg<CR>
|
|
||||||
"nmap <Leader>w :Files<CR>
|
|
||||||
|
|
||||||
" Resize window
|
" Resize window
|
||||||
nnoremap <C-L> :vertical resize +5<CR>
|
nnoremap <C-L> :vertical resize +5<CR>
|
||||||
|
@ -1 +0,0 @@
|
|||||||
/usr/local/bin/yt-dlp
|
|
Loading…
x
Reference in New Issue
Block a user