Compare commits
6 Commits
99256574ae
...
bedb5d0769
Author | SHA1 | Date | |
---|---|---|---|
bedb5d0769 | |||
97d15fb9d4 | |||
6ad3ba0679 | |||
f3fc624863 | |||
fca2c6d3e5 | |||
c402f061de |
@ -56,8 +56,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'
|
||||
|
||||
" CSS
|
||||
Plug 'ap/vim-css-color'
|
||||
@ -87,6 +91,38 @@ call plug#end()
|
||||
" 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']
|
||||
|
||||
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
|
||||
set statusline=
|
||||
set statusline+=%#IncSearch#
|
||||
@ -105,14 +141,18 @@ let g:ansible_extra_keywords_highlight = 1
|
||||
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
|
||||
|
||||
" fzf
|
||||
let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*"'
|
||||
let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/\.local/share/nvim/*" -not -path "./Library/*" '
|
||||
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)
|
||||
set grepprg=rg\ --vimgrep
|
||||
nmap <Leader>e :Buffers<CR>
|
||||
nmap <Leader>q :Rg<CR>
|
||||
nmap <Leader>w :Files<CR>
|
||||
nmap <C-p> :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>
|
||||
|
||||
" Resize window
|
||||
nnoremap <C-L> :vertical resize +5<CR>
|
||||
|
1
.local/bin/youtube-dl
Symbolic link
1
.local/bin/youtube-dl
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/local/bin/yt-dlp
|
Loading…
x
Reference in New Issue
Block a user