diff --git a/config/nvim/lua/plugins/code.lua b/config/nvim/lua/plugins/code.lua index f6541aa..6cc9aa7 100644 --- a/config/nvim/lua/plugins/code.lua +++ b/config/nvim/lua/plugins/code.lua @@ -11,6 +11,13 @@ return { end, }, + -- Go development plugin for Vim + -- https://github.com/fatih/vim-go + { + 'fatih/vim-go', + config = function() end, + }, + -- Run your tests at the speed of thought -- https://github.com/vim-test/vim-test { diff --git a/config/nvim/lua/plugins/conform.lua b/config/nvim/lua/plugins/conform.lua index 9eafb04..76ae13a 100644 --- a/config/nvim/lua/plugins/conform.lua +++ b/config/nvim/lua/plugins/conform.lua @@ -1,13 +1,18 @@ return { { 'stevearc/conform.nvim', - event = 'BufWritePre', + event = { 'BufReadPre', 'BufNewFile' }, config = function() local conform = require 'conform' conform.setup { formatters_by_ft = { + bash = { 'shfmt' }, + go = { 'golangci-lint' }, lua = { 'stylua' }, + sh = { 'shfmt' }, + ansible = { 'ansible-lint' }, + docker = { 'hadolint' }, }, format_on_save = function(bufnr) -- Disable autoformat for files in a certain paths @@ -20,6 +25,7 @@ return { } return { lsp_fallback = not disable_lsp[vim.bo[bufnr].filetype], + async = false, timeout_ms = 500, } end, @@ -63,4 +69,8 @@ return { end end, }, + { + 'gpanders/editorconfig.nvim', + lazy = false, + }, } diff --git a/config/nvim/lua/plugins/folke.lua b/config/nvim/lua/plugins/folke.lua index 9c02272..b6266e6 100644 --- a/config/nvim/lua/plugins/folke.lua +++ b/config/nvim/lua/plugins/folke.lua @@ -1,44 +1,4 @@ return { - -- A collection of small QoL plugins for Neovim - -- https://github.com/folke/snacks.nvim - { - ---@module 'snacks' - 'folke/snacks.nvim', - priority = 1000, - lazy = false, - ---@type snacks.Config - opts = { - bigfile = { enabled = true }, - input = { enabled = true }, - notifier = { - enabled = true, - timeout = 3000, - }, - gitbrowse = { enabled = true }, - quickfile = { enabled = true }, - statuscolumn = { - enabled = true, - left = { 'mark', 'sign' }, -- priority of signs on the left (high to low) - right = { 'fold', 'git' }, -- priority of signs on the right (high to low) - folds = { - open = true, -- show open fold icons - git_hl = true, -- use Git Signs hl for fold icons - }, - git = { - -- patterns to match Git signs - patterns = { 'GitSign', 'MiniDiffSign' }, - }, - refresh = 50, -- refresh at most every 50ms - }, - words = { enabled = true }, - styles = { - notification = { - wo = { wrap = true }, -- Wrap notifications - }, - }, - }, - }, - -- Highly experimental plugin that completely -- replaces the UI for messages, cmdline and the popupmenu. -- https://github.com/folke/noice.nvim