25 lines
445 B
Lua
25 lines
445 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" }
|
|
)
|
|
|
|
api.nvim_create_autocmd({
|
|
|
|
"VimEnter"
|
|
},
|
|
{ callback = require('lualine').setup }
|
|
)
|