From 5975e1b5732b93428c2da8517e8ab7ae67459053 Mon Sep 17 00:00:00 2001 From: TheSoeren Date: Tue, 24 Sep 2024 22:21:33 +0200 Subject: [PATCH] spellchecking and devicons --- lua/custom/plugins/web-devicons.lua | 1 + lua/custom/plugins/which-key.lua | 3 +++ lua/set.lua | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 lua/custom/plugins/web-devicons.lua diff --git a/lua/custom/plugins/web-devicons.lua b/lua/custom/plugins/web-devicons.lua new file mode 100644 index 00000000..6fc7b012 --- /dev/null +++ b/lua/custom/plugins/web-devicons.lua @@ -0,0 +1 @@ +return { 'nvim-tree/nvim-web-devicons' } diff --git a/lua/custom/plugins/which-key.lua b/lua/custom/plugins/which-key.lua index addc5996..a146b571 100644 --- a/lua/custom/plugins/which-key.lua +++ b/lua/custom/plugins/which-key.lua @@ -1,5 +1,8 @@ return { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', + dependencies = { + 'nvim-tree/nvim-web-devicons', + }, event = 'VimEnter', -- Sets the loading event to 'VimEnter' opt = { icons = { diff --git a/lua/set.lua b/lua/set.lua index c90e7159..e713d6d6 100644 --- a/lua/set.lua +++ b/lua/set.lua @@ -78,3 +78,8 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 10 + +-- Spellchecker +vim.opt.spelllang = 'en' +vim.opt.spell = true +vim.opt.spellfile = os.getenv 'HOME' .. '/.config/nvim/spell/en.utf-8.add'