From: Stefan Huber Date: Thu, 18 Jul 2024 06:09:46 +0000 (+0200) Subject: plugins: Configure nvim-lint X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=28f0d3ee5903aea227088dca9ea65fca0c9905de;p=vimconf.git plugins: Configure nvim-lint --- diff --git a/plugins-full.vim.example b/plugins-full.vim.example index 8de5806..e765d53 100644 --- a/plugins-full.vim.example +++ b/plugins-full.vim.example @@ -179,12 +179,18 @@ EOF } } } + + require('lint').linters_by_ft = { + gitcommit = {'gitlint',} + } EOF " A gK mapping for hover. The default 'K' is already mapped to :Map nmap gK :lua vim.lsp.buf.hover() nnoremap f :Format nnoremap F :FormatWrite + + au BufWritePost * lua require('lint').try_lint() endif let g:fastfold_minlines = 0