feat: first commit
This commit is contained in:
13
lua/config/plugins/autocommand.lua
Normal file
13
lua/config/plugins/autocommand.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
vim.api.nvim_create_autocmd(
|
||||
{
|
||||
"BufNewFile",
|
||||
"BufRead",
|
||||
},
|
||||
{
|
||||
pattern = "*.typ",
|
||||
callback = function()
|
||||
local buf = vim.api.nvim_get_current_buf()
|
||||
vim.api.nvim_buf_set_option(buf, "filetype", "typst")
|
||||
end
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user