1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 23:19:25 +00:00

[neovim] Update plugins

This commit is contained in:
2024-06-07 17:52:28 +02:00
parent ec1df73ac2
commit c26fd3ebb3
4 changed files with 37 additions and 24 deletions

View File

@ -235,13 +235,11 @@ require("lazy").setup({
{ "mfussenegger/nvim-dap", event = "VeryLazy", version = "0.*" },
{ "rcarriga/nvim-dap-ui", event = "VeryLazy", version = "v4.*" },
{ "theHamsta/nvim-dap-virtual-text", event = "VeryLazy" },
{ "mfussenegger/nvim-dap-python" },
-- Python
{
"linux-cultist/venv-selector.nvim",
dependencies = {
"mfussenegger/nvim-dap-python",
},
lazy = false,
branch = "regexp",
config = function()

View File

@ -2,7 +2,6 @@ require("go").setup({
icons = { breakpoint = "", currentpos = "🏃" },
fillstruct = "fillstruct",
gofmt = "gofumpt",
lsp_gofumpt = true,
diagnostic = false,
})
@ -11,4 +10,13 @@ require("guihua.maps").setup({
})
vim.cmd("autocmd FileType go nmap <Leader>gf :lua require('go.format').goimport()<CR>")
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], false)
local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*.go",
callback = function()
require('go.format').goimports()
end,
group = format_sync_grp,
})

View File

@ -46,6 +46,13 @@ require("noice").setup({
},
opts = { skip = true },
},
{
filter = {
event = "notify",
kind = "debug",
},
opts = { skip = true },
},
{
view = "popup",
filter = {