Set line endings to lf for .sh
This commit is contained in:
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user