.dotfiles/.config/nvim/after/ftplugin/markdown.lua

9 lines
261 B
Lua

-- get only the currently used buffer in the current window and set the options for it
local winid = vim.api.nvim_get_current_win()
local wo = vim.wo[winid][0]
wo.spell = true
wo.wrap = true
vim.cmd.highlight({ "SpellBad", "gui=undercurl", "guifg=#DA6464" })