From 28f0d3ee5903aea227088dca9ea65fca0c9905de Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 18 Jul 2024 08:09:46 +0200 Subject: [PATCH] plugins: Configure nvim-lint --- plugins-full.vim.example | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5