Set line endings to lf for .sh

This commit is contained in:
Zackarias Montell
2026-01-27 12:38:11 +01:00
parent 267ac0e430
commit d4ef839a07
3 changed files with 30 additions and 2 deletions

View File

@@ -64,3 +64,10 @@ vim.opt.scrolloff = 10
-- instead raise a dialog asking if you wish to save the current file(s)
-- See `:help 'confirm'`
vim.opt.confirm = true
-- set LF instead of CRLF
vim.opt.fileformats = { 'unix', 'dos' }
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = '*.sh',
command = 'setlocal ff=unix',
})