From 5d205364904fac2913226d36ca47bf0d4bc4bfc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 19 Oct 2023 10:16:31 +0200 Subject: [PATCH] Added the new neovim configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .config/nvim/init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index dc6c13c..4ba4723 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -563,7 +563,7 @@ nnoremap r :NvimTreeRefresh nnoremap n :NvimTreeFindFile nnoremap :Goyo cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! -map :setlocal spell! spelllang=en_gb +map :setlocal spell! spelllang=en map :setlocal spell! spelllang=pl " Human Errors @@ -649,6 +649,9 @@ au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s' autocmd BufWritePre *.tf lua vim.lsp.buf.format() autocmd BufWritePre *.tfvars lua vim.lsp.buf.format() +" Markdown +autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us + " Automatically deletes all trailing whitespace and newlines at end of file on save. autocmd BufWritePre * %s/\s\+$//e autocmd BufWritepre * %s/\n\+\%$//e