summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/init.lua
blob: 98782221916289d5c001f435bfc491e95ef9505b (plain) (blame)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
-- bootstrap
local install_path = vim.fn.stdpath('data')..'/site/pack/paqs/start/paq-nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
  vim.fn.system({
    'git', 'clone', '--depth=1',
    'https://github.com/savq/paq-nvim.git',
    install_path
  })
end

vim.cmd 'packadd paq-nvim'

require('paq') {
  {'savq/paq-nvim'};

  -- treesiter
  {'nvim-treesitter/playground'};
  {'nvim-treesitter/nvim-treesitter-textobjects'};
  {
    'nvim-treesitter/nvim-treesitter',
    run=vim.api.nvim_command(':silent! TSUpdate')
  };

  -- lsp
  {
    'neovim/nvim-lspconfig',
    run = function()
      vim.fn.system({'npm', 'install', '-g', '@ansible/ansible-language-server'})
      vim.fn.system({'npm', 'install', '-g', 'vscode-langservers-extracted'})
      vim.fn.system({'python3', '-m', 'pipx', 'install', '--force', 'python-lsp-server[all]'})
      vim.fn.system({'python3', '-m', 'pipx', 'inject', 'python-lsp-server', 'git+https://github.com/python/mypy'})
      vim.fn.system({'python3', '-m', 'pipx', 'inject', 'python-lsp-server', 'pylsp-mypy'})
      vim.fn.system({'python3', '-m', 'pipx', 'inject', 'python-lsp-server', 'types-all'})
      vim.fn.system({'python3', '-m', 'pipx', 'upgrade', '--include-injected', 'python-lsp-server'})
      -- vim.fn.system({'python3', '-m', 'pip', 'install', '--force', 'debugpy'})
    end
  };
  -- {'mickael-menu/zk-nvim'};
  {
    'jose-elias-alvarez/null-ls.nvim',
    run = function()
      vim.fn.system({'npm', 'install', '-g', 'markdownlint'})
      vim.fn.system({'python3', '-m', 'pip', 'install', 'gitlint'})
      vim.fn.system({'python3', '-m', 'pipx', 'install', 'yamllint'})
      vim.fn.system({'luarocks', 'install', 'luacheck'})
    end
};

  {'nvim-telescope/telescope.nvim'};
  {'stevearc/aerial.nvim'};
  {'sindrets/diffview.nvim'};
  {'folke/which-key.nvim'};
  {
    'michaelb/sniprun',
    run = 'bash install.sh'
  };

  -- dap
  {'mfussenegger/nvim-dap'};
  {'rcarriga/nvim-dap-ui'};

  -- completion
  {'hrsh7th/cmp-nvim-lsp'};
  {'hrsh7th/cmp-cmdline'};
  {'hrsh7th/cmp-buffer'};
  {'hrsh7th/cmp-path'};
  {'hrsh7th/cmp-calc'};
  {'hrsh7th/nvim-cmp'};

  -- indentation
  {'lewis6991/gitsigns.nvim'};
  {'glepnir/indent-guides.nvim'};
  {'darazaki/indent-o-matic'};
  {
    'stsewd/sphinx.nvim',
    run=function()
      vim.fn.system({'python3', '-m', 'pip', 'install', 'sphinx'})
      vim.api.nvim_command(':silent! UpdateRemotePlugins')
    end
  };

  -- qol
  {'kwkarlwang/bufresize.nvim'};

  -- dependencies
  {'nvim-lua/plenary.nvim'};
}

require('plugins.aerial')
require('plugins.bufresize')
require('plugins.cmp')
require('plugins.dap')
require('plugins.diffview')
require('plugins.gitsigns')
require('plugins.indent-guides')
require('plugins.indent-o-matic')
require('plugins.sniprun')
require('plugins.lspconfig')
require('plugins.null-ls')
require('plugins.telescope')
require('plugins.treesitter')
require('plugins.which-key')
-- require('plugins.zk')
remember that computers suck.