From 0484556f04a40523a04b4658e12362e48f94e051 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 10 Feb 2023 12:08:16 +0100 Subject: [PATCH] nvim: Fix spell dictionary not able to be found Added the previously important 'site' directory to the runtime path of neovim so it stops complaining about not finding spell dictionaries on starting up with a spell-enabled file. --- nvim/.config/nvim/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 8a7789d..397cd86 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -43,7 +43,7 @@ if not vim.loop.fs_stat(lazypath) then lazypath, }) end -vim.opt.rtp:prepend (lazypath) +vim.opt.rtp:prepend(lazypath) -- set our leader key to space since with hjkl, space is largely useless -- needs to be set before lazy.nvim is loaded @@ -54,3 +54,5 @@ require("lazy").setup("plugins") require('look') require('maps') +-- to include e.g. the spell dictionaries for vim +vim.opt.rtp:append(vim.fn.stdpath("data") .. "/site")