50 lines
1.0 KiB
Lua
50 lines
1.0 KiB
Lua
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,
|
|
},
|
|
|
|
-- Go plugins
|
|
{
|
|
"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
|
|
},
|
|
-- 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,
|
|
}
|
|
}
|
|
return plugins
|