Enable spell checking for norg files

This commit is contained in:
Evie Litherland-Smith 2023-06-30 13:23:41 +01:00
parent cceae0150a
commit 6903eea29d

View file

@ -11,6 +11,10 @@ return {
pattern = { "*.norg" }, pattern = { "*.norg" },
command = "Neorg update-metadata", command = "Neorg update-metadata",
}) })
vim.api.nvim_create_autocmd({ "BufReadPre", "BufNewFile" }, {
pattern = { "*.norg" },
command = "setlocal spell spelllang=en_gb",
})
vim.keymap.set("n", "<leader>wp", "<cmd>Neorg workspace personal <cr>") vim.keymap.set("n", "<leader>wp", "<cmd>Neorg workspace personal <cr>")
vim.keymap.set("n", "<leader>ww", "<cmd>Neorg workspace work <cr>") vim.keymap.set("n", "<leader>ww", "<cmd>Neorg workspace work <cr>")
vim.keymap.set("n", "<leader>wr", "<cmd>Neorg return <cr>") vim.keymap.set("n", "<leader>wr", "<cmd>Neorg return <cr>")