aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/ftplugin/markdown.lua
blob: 6d3210636e4b33c30f1816bb15cf7500557dacd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local opt_local = vim.opt_local

opt_local.textwidth = 80
opt_local.formatoptions:append { 't' }
opt_local.formatoptions:remove { 'l' }

opt_local.wrap = true
opt_local.linebreak = true
opt_local.breakindent = true

opt_local.spell = true
opt_local.spelllang = 'en_us'
opt_local.spellcapcheck = ''

opt_local.expandtab = true
opt_local.tabstop = 2
opt_local.shiftwidth = 2

opt_local.list = true
opt_local.listchars = 'tab:»·,trail:·'

opt_local.number = false
opt_local.relativenumber = false

-- Use macOS dictionary program as keyword look up
opt_local.keywordprg = 'open-dict'