1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: changed file structure more intuitively

This commit is contained in:
2023-04-05 01:48:55 +02:00
parent c28479a090
commit 9e5da42a0e
4 changed files with 23 additions and 22 deletions

View File

@@ -1,16 +1,10 @@
-- filetype
-- autocmd
-- read files correctly
vim.filetype.add({
extension = {
h = 'c',
html = 'html',
java = 'java',
md = 'markdown',
nim = 'nim',
py = 'python',
tex = 'tex',
}})
-- delete trailing whitespaces on save
vim.api.nvim_create_autocmd({'BufWritePre'},
{pattern = {'*'},
command = [[%s/\s\+$//e]],
})
-- formatting options
vim.api.nvim_create_autocmd({'FileType'},