aboutsummaryrefslogtreecommitdiffhomepage
path: root/sundry/editor-syntax-etc/nvim/ftplugin/sisu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'sundry/editor-syntax-etc/nvim/ftplugin/sisu.lua')
-rw-r--r--sundry/editor-syntax-etc/nvim/ftplugin/sisu.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/sundry/editor-syntax-etc/nvim/ftplugin/sisu.lua b/sundry/editor-syntax-etc/nvim/ftplugin/sisu.lua
new file mode 100644
index 0000000..a531238
--- /dev/null
+++ b/sundry/editor-syntax-etc/nvim/ftplugin/sisu.lua
@@ -0,0 +1,13 @@
+-- Buffer-local settings for SiSU spine markup.
+
+vim.bo.commentstring = "%% %s"
+vim.bo.comments = ":%"
+
+-- Soft wrap suits prose.
+vim.wo.wrap = true
+vim.wo.linebreak = true
+
+-- Conceal inline-formatting delimiters when the user opts in
+-- (`:set conceallevel=2`). See queries/sisu/highlights.scm for
+-- @conceal captures.
+vim.wo.conceallevel = vim.wo.conceallevel