nvde/lua/plugins.lua

85 lines
1.7 KiB
Lua

local plugins = {
-- {{{ lsp stuff
-- {{{ basic lsp
{
"neovim/nvim-lspconfig",
event = "VeryLazy",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
event = "VeryLazy"
}
}, -- }}}
-- {{{ snipplets
{
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
}
},
{
"L3MON4D3/LuaSnip",
event = "InsertEnter",
dependencies = {
"rafamadriz/friendly-snippets",
},
config = function(_, opts)
require("luasnip.loaders.from_vscode").lazy_load()
end,
}, -- }}}
-- }}}
-- {{{ editor
-- {{{ prints possible shortcuts upon button press
{
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
lazy = true
vim.o.timeout = true
vim.o.timeoutlen = 0
require("which-key").setup(opts)
end
}, -- }}}
-- {{{ auto closes ()
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {
fast_wrap = {},
disable_filetype = { "TelescopePrompt", "vim" },
},
config = function(_, opts)
require("nvim-autopairs").setup(opts)
local cmp_autopairs = require "nvim-autopairs.completion.cmp"
require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done())
end,
}, -- }}}
-- }}}
-- {{{ ui
--better borders for split screen
{
"nvim-zh/colorful-winsep.nvim",
event = "VeryLazy",
config = function ()
require('colorful-winsep').setup()
end
},
--start screen
{
'goolord/alpha-nvim',
},
-- }}}
-- {{{ misc
-- }}}
}
plugins.lazy = true
require("lazy").setup(plugins)