Add plugins

This commit is contained in:
Victor Timofei 2021-06-15 06:41:45 +03:00
parent 7749bc3258
commit 7d87a6fa91
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 59 additions and 0 deletions

View File

@ -11,6 +11,19 @@ Plug 'NLKNguyen/papercolor-theme'
Plug 'fatih/vim-go'
Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'}
" polyglot
Plug 'sheerun/vim-polyglot'
" Typescript lsp
Plug 'neoclide/coc-tsserver'
" treesitter
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" FZF integration with vim
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
" colors
@ -47,6 +60,52 @@ set relativenumber "relative line numbers
set colorcolumn=100 "display a colored column at 100 chars
highlight ColorColumn ctermbg=0 guibg=morning
" -------------------------------------------------------------------------------------------------
" treesitter settings
"
" -------------------------------------------------------------------------------------------------
" Syntax highlighting
lua <<EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
custom_captures = {
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
["foo.bar"] = "Identifier",
},
},
}
EOF
" Incrementals selection
lua <<EOF
require'nvim-treesitter.configs'.setup {
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
}
EOF
" Indentation
lua <<EOF
require'nvim-treesitter.configs'.setup {
indent = {
enable = true
}
}
EOF
" Folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
" -------------------------------------------------------------------------------------------------
" coc.nvim default settings
"