This commit is contained in:
Kim Ravn Hansen
2025-11-03 10:50:19 +01:00
parent 57194a0ba8
commit 4fbb2ac6c0
4 changed files with 29 additions and 3 deletions

14
.nvim.lua Executable file
View File

@@ -0,0 +1,14 @@
vim.notify("Local nvim config loaded", vim.log.levels.INFO)
-------------------------------------------------------------
-- Set spell info, but only for files inside the current dir
------------------------------------------------------------
local project_root = vim.fn.getcwd()
vim.api.nvim_create_autocmd("BufEnter", {
pattern = project_root .. "/*",
callback = function()
vim.opt_local.spell = true
vim.opt_local.spelllang = "en"
vim.opt_local.spellfile = project_root .. "/.spell.add"
end,
})