dotfiles/home/private_dot_config/nvim/lua/config/autocmds.lua

13 lines
457 B
Lua

-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "Knitfile" },
command = "set syntax=lua",
})
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.md"},
command = "set conceallevel=0"
})