mirror of https://github.com/tiyn/dotfiles
parent
c28479a090
commit
9e5da42a0e
@ -1,16 +1,10 @@
|
|||||||
-- filetype
|
-- autocmd
|
||||||
|
|
||||||
-- read files correctly
|
-- delete trailing whitespaces on save
|
||||||
vim.filetype.add({
|
vim.api.nvim_create_autocmd({'BufWritePre'},
|
||||||
extension = {
|
{pattern = {'*'},
|
||||||
h = 'c',
|
command = [[%s/\s\+$//e]],
|
||||||
html = 'html',
|
})
|
||||||
java = 'java',
|
|
||||||
md = 'markdown',
|
|
||||||
nim = 'nim',
|
|
||||||
py = 'python',
|
|
||||||
tex = 'tex',
|
|
||||||
}})
|
|
||||||
|
|
||||||
-- formatting options
|
-- formatting options
|
||||||
vim.api.nvim_create_autocmd({'FileType'},
|
vim.api.nvim_create_autocmd({'FileType'},
|
Loading…
Reference in new issue