Added the new neovim configuration
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
This commit is contained in:
parent
92052df5d8
commit
5d20536490
@ -563,7 +563,7 @@ nnoremap <leader>r :NvimTreeRefresh<CR>
|
|||||||
nnoremap <leader>n :NvimTreeFindFile<CR>
|
nnoremap <leader>n :NvimTreeFindFile<CR>
|
||||||
nnoremap <F11> :Goyo <CR>
|
nnoremap <F11> :Goyo <CR>
|
||||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||||
map <F3> :setlocal spell! spelllang=en_gb<CR>
|
map <F3> :setlocal spell! spelllang=en<CR>
|
||||||
map <F4> :setlocal spell! spelllang=pl<CR>
|
map <F4> :setlocal spell! spelllang=pl<CR>
|
||||||
|
|
||||||
" Human Errors
|
" 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 *.tf lua vim.lsp.buf.format()
|
||||||
autocmd BufWritePre *.tfvars 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.
|
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
||||||
autocmd BufWritePre * %s/\s\+$//e
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
autocmd BufWritepre * %s/\n\+\%$//e
|
autocmd BufWritepre * %s/\n\+\%$//e
|
||||||
|
Loading…
Reference in New Issue
Block a user