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-08 19:53:30 +01:00
|
|
|
{
|
|
|
|
"olexsmir/gopher.nvim",
|
|
|
|
ft = "go",
|
|
|
|
config = function (_, opts)
|
|
|
|
require("gopher").setup(opts)
|
|
|
|
require("core.utils").load_mappings("gopher")
|
|
|
|
end,
|
|
|
|
build = function ()
|
|
|
|
vim.cmd [[silent! GoInstallDeps]]
|
|
|
|
end,
|
|
|
|
},
|
2024-01-09 10:49:02 +01:00
|
|
|
|
|
|
|
-- Markdown plugins
|
|
|
|
{
|
|
|
|
'ixru/nvim-markdown',
|
|
|
|
ft = "markdown",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"iamcco/markdown-preview.nvim",
|
|
|
|
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
|
|
|
ft = { "markdown" },
|
|
|
|
build = function() vim.fn["mkdp#util#install"]() end,
|
|
|
|
}
|
2024-01-08 19:53:30 +01:00
|
|
|
}
|
|
|
|
return plugins
|