feat: config refresh
This commit is contained in:
parent
a24128cfca
commit
f956194c53
16 changed files with 217 additions and 233 deletions
19
lua/config/autocmds.lua
Normal file
19
lua/config/autocmds.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
local function augroup(name)
|
||||
return vim.api.nvim_create_augroup("wf_" .. name, { clear = true })
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||
group = augroup("spellcheck"),
|
||||
pattern = { "gitcommit", "markdown", "md", "mdx" },
|
||||
callback = function()
|
||||
vim.opt_local.spell = true
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||
group = augroup("prose"),
|
||||
pattern = { "gitcommit", "markdown", "md", "mdx" },
|
||||
callback = function()
|
||||
vim.opt_local.wrap = true
|
||||
end,
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue