dotfiles/dot_config/nvim/lua/custom/plugins.lua

61 lines
1.4 KiB
Lua
Raw Normal View History

2024-02-17 14:33:09 +01:00
local plugins = {
{
"williamboman/mason.nvim", -- auto install tools
opts = {
ensure_installed = {
"gopls",
},
},
},
{
"mfussenegger/nvim-dap", -- generic debugger integration
init = function()
require("core.utils").load_mappings("dap")
end,
},
{
"leoluz/nvim-dap-go", -- specific go debugger integration
ft = "go",
dependencies = "mfussenegger/nvim-dap",
config = function(_, opts)
require("dap-go").setup(opts)
require("core.utils").load_mappings("dap_go")
end,
},
2024-02-18 01:14:11 +01:00
{
"rcarriga/nvim-dap-ui", -- UI for the DAP debugger
ft = "go",
dependencies = "mfussenegger/nvim-dap",
config = function()
require("dapui").setup()
require "custom.configs.nvim-dap-ui"
require("core.utils").load_mappings("dap_ui")
end,
},
2024-02-17 14:33:09 +01:00
{
"neovim/nvim-lspconfig", -- load custom lsp config
config = function()
require "plugins.configs.lspconfig"
require "custom.configs.lspconfig"
end,
},
{
"jose-elias-alvarez/null-ls.nvim", -- custom format on save
ft = "go",
opts = function()
return require "custom.configs.null-ls"
end,
},
{
"olexsmir/gopher.nvim",
ft = "go",
config = function(_, opts)
require("gopher").setup(opts)
end,
build = function()
vim.cmd [[silent! GoInstallDeps]]
end,
2024-02-18 01:14:11 +01:00
},
2024-02-17 14:33:09 +01:00
}
return plugins