summaryrefslogtreecommitdiff
path: root/.config/nvim/after
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-07 13:41:28 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-07 13:42:36 +0100
commit25ab9dcbdd21e441f10c4d7660e2a723e37a1c61 (patch)
treef54194813380e46cb80369426c88d591e77eb6e2 /.config/nvim/after
parent262d18d712766898fd0a740c792cdd225ac9b034 (diff)
nvim: Add various mode-specific configurations
Diffstat (limited to '.config/nvim/after')
-rw-r--r--.config/nvim/after/ftplugin/css.lua3
-rw-r--r--.config/nvim/after/ftplugin/gitcommit.lua1
l---------.config/nvim/after/ftplugin/htmldjango.lua1
-rw-r--r--.config/nvim/after/ftplugin/lex.lua3
-rw-r--r--.config/nvim/after/ftplugin/nroff.lua1
5 files changed, 9 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/css.lua b/.config/nvim/after/ftplugin/css.lua
new file mode 100644
index 0000000..01efc8f
--- /dev/null
+++ b/.config/nvim/after/ftplugin/css.lua
@@ -0,0 +1,3 @@
+local lib = require('mango.lib')
+
+lib.set_tab_width(8, true)
diff --git a/.config/nvim/after/ftplugin/gitcommit.lua b/.config/nvim/after/ftplugin/gitcommit.lua
new file mode 100644
index 0000000..9aa3038
--- /dev/null
+++ b/.config/nvim/after/ftplugin/gitcommit.lua
@@ -0,0 +1 @@
+vim.opt_local.expandtab = true
diff --git a/.config/nvim/after/ftplugin/htmldjango.lua b/.config/nvim/after/ftplugin/htmldjango.lua
new file mode 120000
index 0000000..d805bec
--- /dev/null
+++ b/.config/nvim/after/ftplugin/htmldjango.lua
@@ -0,0 +1 @@
+html.lua \ No newline at end of file
diff --git a/.config/nvim/after/ftplugin/lex.lua b/.config/nvim/after/ftplugin/lex.lua
new file mode 100644
index 0000000..01efc8f
--- /dev/null
+++ b/.config/nvim/after/ftplugin/lex.lua
@@ -0,0 +1,3 @@
+local lib = require('mango.lib')
+
+lib.set_tab_width(8, true)
diff --git a/.config/nvim/after/ftplugin/nroff.lua b/.config/nvim/after/ftplugin/nroff.lua
new file mode 100644
index 0000000..97209fb
--- /dev/null
+++ b/.config/nvim/after/ftplugin/nroff.lua
@@ -0,0 +1 @@
+vim.opt_local.textwidth = 80