summaryrefslogtreecommitdiff
path: root/vim-extra/.config/nvim/extra.vim
blob: 440d86b59f1f3f6f57ee86e382eae90131c01354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
" Plugins{{{
  call plug#begin()
    Plug 'neovim/nvim-lspconfig'

    Plug 'tpope/vim-surround'
    Plug 'tpope/vim-repeat'

    Plug 'NLKNguyen/papercolor-theme'
    Plug 'lervag/vimtex'

    Plug 'nvim-treesitter/nvim-treesitter'

  call plug#end()

" }}}

" Treesitter {{{
lua << EOF
  require'nvim-treesitter.configs'.setup {
    ensure_installed = { "lua", "typescript", "java", "tsx" },
    auto_install = false,
    highlight = {
      enable = true,
    },
    indent = {
      enable = true,
    }
  }
EOF
" }}}

" Completion{{{
    set completeopt+=menuone
    set completeopt+=noselect
    "
    " Close completion window
    autocmd CompleteDone * pclose

    colorscheme PaperColor

    "}}}

" Latex {{{
  let g:vimtex_view_method = 'general'
  let g:vimtex_quickfix_open_on_warning = 0

    "}}}