From 81463526b8744b2649b640c690059cdd94b4a0f3 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 21 Jul 2024 11:10:28 +0200 Subject: [PATCH] NVim: spell check --- modules/hm/vim.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/hm/vim.nix b/modules/hm/vim.nix index ddf2b99..70ef781 100644 --- a/modules/hm/vim.nix +++ b/modules/hm/vim.nix @@ -428,10 +428,14 @@ let vp = pkgs.vimPlugins; in { g.mapleader = " " -- treesitter folding - vim.opt.foldmethod = "expr" - vim.opt.foldexpr = "nvim_treesitter#foldexpr()" + opt.foldmethod = "expr" + opt.foldexpr = "nvim_treesitter#foldexpr()" -- vim.cmd([[ set nofoldenable]]) - vim.opt.foldenable = false + opt.foldenable = false + + -- spell checking + opt.spell = true + opt.spelllang = "en_us" ''; }; }