2024-01-08 19:53:30 +01:00
|
|
|
local plugins = {
|
|
|
|
{
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
config = function ()
|
|
|
|
require "plugins.configs.lspconfig"
|
|
|
|
require "custom.configs.lspconfig"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"williamboman/mason.nvim",
|
|
|
|
opts = {
|
|
|
|
ensure_installed = {
|
|
|
|
"gopls",
|
|
|
|
"pyright",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nvimtools/none-ls.nvim",
|
|
|
|
ft = "go",
|
|
|
|
opts = function ()
|
|
|
|
return require "custom.configs.none-ls"
|
|
|
|
end,
|
|
|
|
},
|
2024-01-09 10:49:02 +01:00
|
|
|
|
|
|
|
-- Go plugins
|
2024-01-12 19:15:02 +01:00
|
|
|
{
|
|
|
|
"ray-x/go.nvim",
|
|
|
|
config = function()
|
|
|
|
require("go").setup()
|
|
|
|
require("core.utils").load_mappings("gopher")
|
|
|
|
end,
|
|
|
|
event = {"CmdlineEnter"},
|
|
|
|
ft = {"go", 'gomod'},
|
|
|
|
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
|
|
|
},
|
2024-01-09 10:49:02 +01:00
|
|
|
-- Markdown plugins
|
2024-01-08 19:53:30 +01:00
|
|
|
{
|
2024-01-09 10:49:02 +01:00
|
|
|
'ixru/nvim-markdown',
|
|
|
|
ft = "markdown",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"iamcco/markdown-preview.nvim",
|
|
|
|
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
|
|
|
ft = { "markdown" },
|
|
|
|
build = function() vim.fn["mkdp#util#install"]() end,
|
2024-05-16 10:52:15 +02:00
|
|
|
},
|
|
|
|
-- Utility plugins
|
|
|
|
{
|
|
|
|
'liuchengxu/vista.vim',
|
|
|
|
lazy = false,
|
|
|
|
},
|
|
|
|
-- Git
|
|
|
|
{
|
|
|
|
"kdheepak/lazygit.nvim",
|
|
|
|
cmd = {
|
|
|
|
"LazyGit",
|
|
|
|
"LazyGitConfig",
|
|
|
|
"LazyGitCurrentFile",
|
|
|
|
"LazyGitFilter",
|
|
|
|
"LazyGitFilterCurrentFile",
|
|
|
|
},
|
|
|
|
-- optional for floating window border decoration
|
|
|
|
dependencies = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
},
|
|
|
|
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
|
|
|
-- order to load the plugin when the command is run for the first time
|
|
|
|
keys = {
|
|
|
|
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
|
|
|
}
|
2024-01-09 10:49:02 +01:00
|
|
|
}
|
2024-01-08 19:53:30 +01:00
|
|
|
}
|
|
|
|
return plugins
|