Skip to content

Instantly share code, notes, and snippets.

@ajitid
Created February 18, 2022 22:31
Show Gist options
  • Save ajitid/d80093d68962cc67e0c7659d0eaffcc7 to your computer and use it in GitHub Desktop.
Save ajitid/d80093d68962cc67e0c7659d0eaffcc7 to your computer and use it in GitHub Desktop.
call plug#begin()
Plug 'theHamsta/nvim-treesitter', {'branch': 'ecma-auto-comment', 'do': ':TSUpdate'}
call plug#end()
set fillchars=eob:\ ,
set shm+=Ic
set noswapfile
set lazyredraw
set modelines=0
set number relativenumber
nnoremap ; :
nnoremap , ;
vnoremap ; :
vnoremap , ;
if has('termguicolors')
set termguicolors
endif
lua <<EOF
local ts = require'nvim-treesitter.configs'
ts.setup {
ensure_installed = "maintained",
highlight = {
enable = true,
},
}
EOF
augroup filetype_based_indentation
autocmd!
autocmd VimEnter * set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment