-
Notifications
You must be signed in to change notification settings - Fork 462
/
Copy pathcompletion.lua
94 lines (92 loc) · 2.32 KB
/
completion.lua
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
local completion = {}
local use_copilot = require("core.settings").use_copilot
completion["neovim/nvim-lspconfig"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("completion.lsp"),
dependencies = {
{ "williamboman/mason.nvim" },
{ "williamboman/mason-lspconfig.nvim" },
{ "folke/neoconf.nvim" },
{
"Jint-lzxy/lsp_signature.nvim",
config = require("completion.lsp-signature"),
},
},
}
completion["nvimdev/lspsaga.nvim"] = {
lazy = true,
event = "LspAttach",
config = require("completion.lspsaga"),
dependencies = { "nvim-tree/nvim-web-devicons" },
}
completion["stevearc/aerial.nvim"] = {
lazy = true,
event = "LspAttach",
config = require("completion.aerial"),
}
completion["DNLHC/glance.nvim"] = {
lazy = true,
event = "LspAttach",
config = require("completion.glance"),
}
completion["joechrisellis/lsp-format-modifications.nvim"] = {
lazy = true,
event = "LspAttach",
}
completion["nvimtools/none-ls.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("completion.null-ls"),
dependencies = {
"nvim-lua/plenary.nvim",
"jay-babu/mason-null-ls.nvim",
},
}
completion["hrsh7th/nvim-cmp"] = {
lazy = true,
event = "InsertEnter",
config = require("completion.cmp"),
dependencies = {
{
"L3MON4D3/LuaSnip",
build = "make install_jsregexp",
config = require("completion.luasnip"),
dependencies = { "rafamadriz/friendly-snippets" },
},
{ "lukas-reineke/cmp-under-comparator" },
{ "saadparwaiz1/cmp_luasnip" },
{ "hrsh7th/cmp-nvim-lsp" },
{ "hrsh7th/cmp-nvim-lua" },
{ "andersevenrud/cmp-tmux" },
{ "hrsh7th/cmp-path" },
{ "f3fora/cmp-spell" },
{ "hrsh7th/cmp-buffer" },
{ "kdheepak/cmp-latex-symbols" },
{ "ray-x/cmp-treesitter", commit = "c8e3a74" },
-- { "tzachar/cmp-tabnine", build = "./install.sh", config = require("completion.tabnine") },
-- {
-- "jcdickinson/codeium.nvim",
-- dependencies = {
-- "nvim-lua/plenary.nvim",
-- "MunifTanjim/nui.nvim",
-- },
-- config = require("completion.codeium"),
-- },
},
}
if use_copilot then
completion["zbirenbaum/copilot.lua"] = {
lazy = true,
cmd = "Copilot",
event = "InsertEnter",
config = require("completion.copilot"),
dependencies = {
{
"zbirenbaum/copilot-cmp",
config = require("completion.copilot-cmp"),
},
},
}
end
return completion