nvim: add autocmd's for better syntax highlighting in faust files
This commit is contained in:
parent
10b8e58a79
commit
545362d210
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ set.mousemodel = 'extend'
|
|||
|
||||
-- Disable smartindent when editing `nix` files
|
||||
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?) ---
|
||||
|
|
Loading…
Add table
Reference in a new issue