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:
@@ -55,17 +55,8 @@ vim.o.undodir = vim.env.XDG_CACHE_HOME .. "/vim/undo"
|
||||
vim.g.python_host_prog = '/usr/bin/python2'
|
||||
vim.g.python3_host_prog = '/usr/bin/python3'
|
||||
|
||||
-- read files correctly
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
h = 'c',
|
||||
html = 'html',
|
||||
java = 'java',
|
||||
md = 'markdown',
|
||||
nim = 'nim',
|
||||
py = 'python',
|
||||
tex = 'tex',
|
||||
}})
|
||||
-- set filetypes correctly by extension
|
||||
require('filetype')
|
||||
|
||||
-- load plugins (autoload all files in plugin folder)
|
||||
require('loadplugins')
|
||||
|
@@ -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