summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/getchoo/plugins.lua
blob: 756a9834105839a45b1d191d641e705e0badd6c7 (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
--
-- plugins for neovim
--

local fn = vim.fn
local cmd = vim.cmd
local opt = vim.opt


local packer_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'

if fn.empty(fn.glob(packer_path)) > 0 then
  packer_bootstrap = fn.system({
    'git',
    'clone',
    '--depth', '1',
    'https://github.com/wbthomason/packer.nvim',
    packer_path
  })
  cmd [[packadd packer.nvim]]
end

require('packer').startup(function(use)
  use 'wbthomason/packer.nvim'
  use {
    'nvim-treesitter/nvim-treesitter',
    run = function() require('nvim-treesitter.install').update({ with_sync = true }) end,
  }
  use 'neovim/nvim-lspconfig'
  use { 'ms-jpq/coq_nvim', run = 'python3 -m coq deps' }
  use 'ms-jpq/coq.artifacts'
  use 'ms-jpq/coq.thirdparty'
  use 'mfussenegger/nvim-lint'
  use {
    'nvim-lualine/lualine.nvim',
    requires = { 'kyazdani42/nvim-web-devicons', opt = true }
  }
  use 'arcticicestudio/nord-vim'
  use {'rose-pine/neovim', as = 'rose-pine'}

  if packer_bootstrap then
    require('packer').sync()
  end
end)

require('nvim-treesitter.configs').setup {
  auto_install = true
}

require('lualine').setup {
  options = {
    theme = 'nord'
  },
  extensions = {'nvim-tree'}
}