Hyprland-dotfiles/nvim/lua/modules/plugins/completion.lua
2024-07-21 02:51:17 -04:00

95 lines
2.3 KiB
Lua

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