Skip to content

Commit

Permalink
feat: add spellchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
fisenkodv committed Aug 10, 2022
1 parent 63fc67e commit f7f3c45
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/iterm2/com.googlecode.iterm2.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@
<key>Non-ASCII Anti Aliased</key>
<true/>
<key>Normal Font</key>
<string>MesloLGS-NF-Regular 13</string>
<string>MesloLGS-NF-Regular 15</string>
<key>Only The Default BG Color Uses Transparency</key>
<true/>
<key>Open Toolbelt</key>
Expand Down
12 changes: 12 additions & 0 deletions config/nvim/after/plugin/spellsitter.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local status, spellsitter = pcall(require, "spellsitter")
if (not status) then return end

spellsitter.setup({
-- Whether enabled, can be a list of filetypes, e.g. {'python', 'lua'}
enable = true,
debug = false,
highlight = {
enable = true,
-- additional_vim_regex_highlighting = true, -- DO NOT SET THIS
}
})
2 changes: 1 addition & 1 deletion config/nvim/lua/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ vim.opt.wrap = false -- No Wrap lines
vim.opt.backspace = { 'start', 'eol', 'indent' }
vim.opt.path:append { '**' } -- Finding files - Search down into subfolders
vim.opt.wildignore:append { '*/node_modules/*' }

vim.opt.spell = true
-- Undercurl
vim.cmd([[let &t_Cs = "\e[4:3m"]])
vim.cmd([[let &t_Ce = "\e[4:0m"]])
Expand Down
1 change: 1 addition & 0 deletions config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ packer.startup(function(use)

use 'lewis6991/gitsigns.nvim'
use 'dinhhuy258/git.nvim' -- For git blame & browse
use 'lewis6991/spellsitter.nvim' -- For spell checking
end)

0 comments on commit f7f3c45

Please sign in to comment.