summaryrefslogtreecommitdiff
path: root/dot-config/nvim/plugin/spellcheck.lua
diff options
context:
space:
mode:
authorJosé Juan Loeza Sierra <jj@jlsd9.com>2025-11-08 12:53:30 -0800
committerJosé Juan Loeza Sierra <jj@jlsd9.com>2025-11-08 12:53:57 -0800
commitf57c11af42ae22f131b8d4f96279e66d11353c18 (patch)
tree67ddb7e4096ce08e4b5b1546059f44644a35a7d0 /dot-config/nvim/plugin/spellcheck.lua
parent4d971af429a343ff6cf6ae245f876b31c569bc95 (diff)
create and add custom spellcheck plugin
much credit to this post: https://www.reddit.com/r/neovim/comments/1fwqc8t/how_to_enable_spell_check_for_only_specific_files/
Diffstat (limited to 'dot-config/nvim/plugin/spellcheck.lua')
-rw-r--r--dot-config/nvim/plugin/spellcheck.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/dot-config/nvim/plugin/spellcheck.lua b/dot-config/nvim/plugin/spellcheck.lua
new file mode 100644
index 0000000..21bffb1
--- /dev/null
+++ b/dot-config/nvim/plugin/spellcheck.lua
@@ -0,0 +1,5 @@
+-- Enable custom spellcheck plugin
+
+require("spellcheck").setup({
+ filetypes = { "gitcommit", "markdown", "plaintext", "text", "typst" },
+})