aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-03-10 19:54:58 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-03-10 19:54:58 +0530
commitb997b270e116468533df746c01393b906800d30d (patch)
tree93769f9e15a54a153e81a4d4d968d1762d7ab1fe /nvim
parent5dde4bef8e759a40a329398094330f96fbd2acf6 (diff)
added neovim config (I've been using the default one for ~10 months!)
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.vim57
1 files changed, 57 insertions, 0 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
new file mode 100644
index 00000000..41e7ff80
--- /dev/null
+++ b/nvim/init.vim
@@ -0,0 +1,57 @@
+call plug#begin('~/local/share/nvim/plugged')
+
+" Plug 'vim-airline/vim-airline'
+Plug 'itchyny/lightline.vim'
+Plug 'alvan/vim-closetag'
+Plug 'Yggdroot/indentLine'
+Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
+Plug 'neoclide/coc.nvim', {'branch': 'release'}
+Plug 'sts10/vim-pink-moon'
+
+call plug#end()
+
+" closetag config
+let g:closetag_filenames = '*.html,*.xhtml,*.phtml'
+let g:closetag_xhtml_filenames = '*.xhtml,*.jsx'
+let g:closetag_filetypes = 'html,xhtml,phtml'
+let g:closetag_xhtml_filetypes = 'xhtml,jsx'
+let g:closetag_emptyTags_caseSensitive = 1
+let g:closetag_regions = {
+ \ 'typescript.tsx': 'jsxRegion,tsxRegion',
+ \ 'javascript.jsx': 'jsxRegion',
+ \ }
+let g:closetag_shortcut = '>'
+let g:closetag_close_shortcut = '<leader>>'
+
+let g:indentLine_color_term = 239
+
+" coc config
+let g:coc_global_extentions = [
+ \ 'coc-snippets',
+ \ 'coc-pairs',
+ \ 'coc-eslint',
+ \ 'coc-prettier',
+ \ 'coc-go',
+ \ 'coc-json',
+ \ 'coc-css',
+ \ 'coc-html',
+ \ ]
+
+" airline config
+let g:airline#extensions#tabline#enabled = 1
+" shades of purple airline theme
+let g:shades_of_purple_airline = 1
+let g:airline_theme='shades_of_purple'
+
+" enabling the theme
+if (has("termguicolors"))
+ set termguicolors
+endif
+
+syntax enable
+set background=dark
+colorscheme pink-moon
+
+
+:set number relativenumber
+:set nu rnu