Enable spell checking for norg files
This commit is contained in:
parent
cceae0150a
commit
6903eea29d
|
@ -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>")
|
||||||
|
|
Loading…
Reference in a new issue