From 25ab9dcbdd21e441f10c4d7660e2a723e37a1c61 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 7 Nov 2023 13:41:28 +0100 Subject: nvim: Add various mode-specific configurations --- .config/nvim/after/ftplugin/css.lua | 3 +++ .config/nvim/after/ftplugin/gitcommit.lua | 1 + .config/nvim/after/ftplugin/htmldjango.lua | 1 + .config/nvim/after/ftplugin/lex.lua | 3 +++ .config/nvim/after/ftplugin/nroff.lua | 1 + 5 files changed, 9 insertions(+) create mode 100644 .config/nvim/after/ftplugin/css.lua create mode 100644 .config/nvim/after/ftplugin/gitcommit.lua create mode 120000 .config/nvim/after/ftplugin/htmldjango.lua create mode 100644 .config/nvim/after/ftplugin/lex.lua create mode 100644 .config/nvim/after/ftplugin/nroff.lua (limited to '.config') 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 -- cgit v1.2.3