Nvim showing squiggly underline instead of highlighting words when using spellcheck

Solution for Nvim showing squiggly underline instead of highlighting words when using spellcheck
is Given Below:

Nvim is my default text editor, I’m currently working on my thesis, and I have activated the spell checking option in my init.vim by adding:

map<F3> :set spell spelllang=es<CR>

However instead of highlighting the misspelled words when I press F3 it underlines the misspelled word with a squiggly blue line.

I use NVIM v0.5.0 and kitty 0.21.2 as my terminal emulator. My operating system is arch linux x86 64 and I use the 5.12.15 kernel.

I have reviewed this documentation for an answer but still haven’t found anything to solve the problem:

  1. Setting up check spell

  2. Spell

This what my init.vim looks like:


set syntax=on
colorscheme gruvbox 
set guicursor=
set relativenumber
set nu 
set nohlsearch
set hidden 
set noerrorbells 
set incsearch 
set scrolloff=15
map<F3> :set spell spelllang=es<CR>

I would really appreciate any kind of help and thanks in advance!

Images