aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/ftplugin/markdown.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/ftplugin/markdown.lua')
-rw-r--r--.config/nvim/after/ftplugin/markdown.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/markdown.lua b/.config/nvim/after/ftplugin/markdown.lua
new file mode 100644
index 0000000..4f56524
--- /dev/null
+++ b/.config/nvim/after/ftplugin/markdown.lua
@@ -0,0 +1,19 @@
+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.expandtab = true
+opt_local.tabstop = 2
+opt_local.shiftwidth = 2
+
+opt_local.list = true
+opt_local.listchars = 'tab:»·,trail:·'