aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftplugin/markdown.lua
blob: 718a871790bcfe61f525b23e6a6342f2a87560c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
vim.wo.spell = true
vim.bo.spelllang = "en"
vim.wo.wrap = true
vim.wo.linebreak = true
vim.wo.breakindent = true
vim.wo.colorcolumn = "0"
vim.wo.conceallevel = 3
vim.opt.softtabstop = 2 -- Tab key indents by 2 spaces.
vim.opt.shiftwidth = 2  -- >> indents by 2 spaces.

vim.b[0].undo_ftplugin = "setlocal nospell nowrap nolinebreak nobreakindent conceallevel=0"

vim.cmd([[
  autocmd FileType markdown iabbrev <buffer> `` ``
]])