15 lines
536 B
Lua
Executable File
15 lines
536 B
Lua
Executable File
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,
|
|
})
|