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

nvim: use ftplugin for filetypes

This commit is contained in:
2023-09-15 18:25:47 +02:00
parent 1eb2af2098
commit 3605c38993
10 changed files with 61 additions and 119 deletions

View File

@@ -73,15 +73,28 @@ vim.o.foldenable = true
vim.o.conceallevel = 0
vim.g.markdown_folding = 1
-- read files correctly
vim.filetype.add({
extension = {
c = 'c',
h = 'c',
html = 'html',
java = 'java',
js = 'javascript',
lua = 'lua',
md = 'markdown',
nim = 'nim',
py = 'python',
tex = 'tex',
}
})
-- load general mapped keys
require('style')
-- load plugins (autoload all files in plugin folder)
require('loadplugins')
-- set filetypes correctly by extension
require('autocmd')
-- load general mapped keys
require('keymap')