Skip to content

Commit

Permalink
Enable spell checking in markdown and vimwiki files
Browse files Browse the repository at this point in the history
  • Loading branch information
jisantuc committed Nov 7, 2024
1 parent a28c597 commit 130c975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dotfiles/neovim/ftplugin/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ require('render-markdown').setup({

vim.opt_local.foldmethod = "expr"
vim.opt_local.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt_local.spell = true

local function readingTime()
local count = vim.fn.wordcount().words
Expand Down
2 changes: 2 additions & 0 deletions dotfiles/neovim/ftplugin/vimwiki.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ vim.api.nvim_set_keymap("n", "<leader>wlc", "<cmd>VimwikiCheckLinks<CR>", { nore
-- generate a table of contents
vim.api.nvim_set_keymap("n", "<leader>wo", "<cmd>VimwikiTOC<CR>",
{ noremap = true, desc = "Insert or update table of contents" })

vim.opt_local.spell = true

0 comments on commit 130c975

Please sign in to comment.