Files
nvim/lua/config/autocmds.lua

16 lines
481 B
Lua
Raw Permalink Normal View History

2025-05-13 19:37:28 +10:00
-- 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
2025-09-21 20:43:38 +10:00
-- Disable spell checking for markdown and text files
vim.api.nvim_create_autocmd("FileType", {
2025-10-17 20:03:30 +11:00
pattern = { "markdown", "text", "tex", "typst" },
2025-09-21 20:43:38 +10:00
callback = function()
vim.opt_local.spell = false
end,
})