From 3dd0e7ac894815c36104e155a6522e4e5298dcd3 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Sun, 7 Jan 2024 18:16:05 +0100 Subject: [PATCH] enabled spell checking --- lua/plugins/formatting.lua | 1 + lua/sets.lua | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/plugins/formatting.lua b/lua/plugins/formatting.lua index 7b1668f..27fada2 100644 --- a/lua/plugins/formatting.lua +++ b/lua/plugins/formatting.lua @@ -9,6 +9,7 @@ return { null_ls.setup({ sources = { + null_ls.builtins.completion.spell, }, }) end, diff --git a/lua/sets.lua b/lua/sets.lua index 10ec3fb..1aee24b 100644 --- a/lua/sets.lua +++ b/lua/sets.lua @@ -5,7 +5,7 @@ vim.o.relativenumber = true -- show hidden characters vim.opt.list = true -vim.opt.listchars = { tab = '→ ', trail = '·' } +vim.opt.listchars = { tab = "→ ", trail = "·" } -- indentation vim.opt.expandtab = true @@ -32,6 +32,10 @@ vim.opt.splitbelow = true vim.opt.hlsearch = false vim.opt.incsearch = true +-- spellchecking +vim.opt.spelllang = "en_us" +vim.opt.spell = true + -- stuff vim.opt.mousemodel = "extend"