nvim: add autocmd's for better syntax highlighting in faust files

This commit is contained in:
PowerUser64 2023-06-26 06:51:33 -07:00
parent 10b8e58a79
commit 545362d210

View file

@ -43,6 +43,9 @@ set.mousemodel = 'extend'
-- Disable smartindent when editing `nix` files -- Disable smartindent when editing `nix` files
autocmd("BufEnter", { pattern = "*.nix", callback = function() vim.opt_local.smartindent = false end }) autocmd("BufEnter", { pattern = "*.nix", callback = function() vim.opt_local.smartindent = false end })
-- Syntax highlighting for faust files
autocmd("BufEnter", { pattern = "*.dsp", callback = function() vim.opt_local.filetype = 'c' end })
autocmd("BufEnter", { pattern = "*.lib", callback = function() vim.opt_local.filetype = 'c' end })
---------------------------------------------- ----------------------------------------------
--- Key bindings (needs to be translated?) --- --- Key bindings (needs to be translated?) ---