nvde/lua/plugins.lua

93 lines
1.8 KiB
Lua

local plugins = {
-- {{{ lsp
-- {{{ basic lsp stuff
{
"neovim/nvim-lspconfig",
event = "VeryLazy",
dependencies = {
{
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
},
},
},
{
"williamboman/mason-lspconfig.nvim",
event = "VeryLazy",
dependencies = {
"williamboman/mason.nvim"
}
},-- }}}
-- {{{ 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()
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 = "WinNew",
config = function ()
require('colorful-winsep').setup()
end
},
--start screen
{
'goolord/alpha-nvim',
},
-- }}}
-- {{{ misc
-- }}}
}
plugins.lazy = true
require("lazy").setup(plugins)