Stuffy
This commit is contained in:
14
.nvim.lua
Executable file
14
.nvim.lua
Executable 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,
|
||||
})
|
||||
Reference in New Issue
Block a user