Files
nvim/lua/config/autocmds.lua
Zelong Kuang 8c11269da8 Update
2025-10-17 20:03:30 +11:00

16 lines
481 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
if vim.g.neovide then
vim.cmd([[ cd $HOME ]])
end
-- Disable spell checking for markdown and text files
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown", "text", "tex", "typst" },
callback = function()
vim.opt_local.spell = false
end,
})