set filetype to tex for lco files
This commit is contained in:
parent
e588d10b01
commit
b6b7d0bdc2
1 changed files with 13 additions and 0 deletions
|
|
@ -2,3 +2,16 @@ require('lennartalff.remap')
|
|||
require('lennartalff.set')
|
||||
vim.o.termguicolors = true
|
||||
vim.cmd.colorscheme 'catppuccin-frappe'
|
||||
|
||||
local filetypeGroup = vim.api.nvim_create_augroup('filetype', { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd(
|
||||
{ 'BufRead', 'BufNewFile' },
|
||||
{
|
||||
pattern = { '*.lco' },
|
||||
callback = function()
|
||||
vim.bo.filetype = 'tex'
|
||||
end,
|
||||
group = filetypeGroup
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue