aboutsummaryrefslogtreecommitdiff
path: root/plugins.vim
blob: ad0057cefb695ae4352fa56d03aaa90fe11c22ac (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
" plugin dependent conf starts

call plug#begin('~/.config/nvim/plugged')

" git
Plug 'tpope/vim-fugitive', { 'tag': 'v3.6' }
Plug 'airblade/vim-gitgutter'

" tmux
Plug 'tmux-plugins/vim-tmux-focus-events'
Plug 'roxma/vim-tmux-clipboard'
Plug 'wincent/terminus'

" life improvements
Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
Plug 'scrooloose/nerdtree'
Plug 'Chiel92/vim-autoformat'
Plug 'jsfaint/gen_tags.vim'
Plug 'godlygeek/tabular'

" language support
Plug 'plasticboy/vim-markdown'
Plug 'samsaga2/vim-z80'
Plug 'tomtom/tcomment_vim'

if has('nvim-0.5')
    " status line
    Plug 'nvim-lualine/lualine.nvim'
    " general lua
    Plug 'nvim-lua/popup.nvim'
    Plug 'nvim-lua/plenary.nvim'
    " scala
    Plug 'scalameta/nvim-metals'
    if has('nvim-0.5.1')
        Plug 'nvim-telescope/telescope.nvim'
    end
    " auto complete
    Plug 'hrsh7th/nvim-cmp'
    Plug 'hrsh7th/cmp-nvim-lsp'
    Plug 'hrsh7th/cmp-vsnip'
    Plug 'hrsh7th/vim-vsnip'

    " for LSP
    Plug 'kyazdani42/nvim-web-devicons'
    Plug 'folke/trouble.nvim'

    " life improvements
    Plug 'ojroques/nvim-bufdel'

    " learning
    Plug 'folke/which-key.nvim'
end

if has('nvim-0.6.1')
    " lsp
    Plug 'neovim/nvim-lspconfig'
    Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
end

call plug#end()

if has('nvim-0.5')
:lua << EOF
    --  BufKil
    require('bufdel').setup {
      next = 'cycle',
      quit = false,
    }
    -- which-key
    require("which-key").setup { }
EOF

    source  ~/.config/nvim/lualine.lua
end

" for LSC support
"
if has('nvim-0.6.1')
    source  ~/.config/nvim/lsp.lua
    source  ~/.config/nvim/treesitter.lua

    " scala and metals
    source ~/.config/nvim/metals.vim
end


" auto-complete
source ~/.config/nvim/cmp.vim