mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-10 19:41:15 +02:00
added config files (mimeapps + easyeffects)
This commit is contained in:
@@ -24,12 +24,12 @@ command = 'setlocal shiftwidth=2 softtabstop=2',
|
||||
|
||||
-- cleanup certain files after leaving the editor
|
||||
vim.api.nvim_create_autocmd({'VimLeave'},
|
||||
{pattern = {'*.c'},
|
||||
{pattern = {'c'},
|
||||
command = '!cclear'
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({'VimLeave'},
|
||||
{pattern = {'*.tex'},
|
||||
{pattern = {'tex'},
|
||||
command = '!texclear %'
|
||||
})
|
||||
|
||||
|
12
.config/nvim/lua/filetype.lua
Normal file
12
.config/nvim/lua/filetype.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
-- read files correctly
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
h = 'c',
|
||||
html = 'html',
|
||||
java = 'java',
|
||||
js = 'javascript',
|
||||
md = 'markdown',
|
||||
nim = 'nim',
|
||||
py = 'python',
|
||||
tex = 'tex',
|
||||
}})
|
Reference in New Issue
Block a user