nix/modules/home/programs/neovim/autocmd.lua

18 lines
355 B
Lua

local api = vim.api
api.nvim_create_autocmd(
"FileType",
{ pattern = "markdown", command = "setlocal spell" }
)
api.nvim_create_autocmd(
"FileType",
{ pattern = "markdown", command = "setlocal complete+=kspell" }
)
api.nvim_create_autocmd({
"BufNewFile", "BufRead"
},
{ pattern = "*.mcfunction", command = "set filetype=mcfunction" }
)