aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/nvim/after/ftplugin
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:18 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:18 +0100
commitd00bf2cb2d5087164fa509a4f20a2be62a519044 (patch)
treee788986ca341fa7a9d7327b48c58d2e0c0c43115 /dot_config/nvim/after/ftplugin
parent9b2af4dd6c73ea57cc921f41120db7a2700e806d (diff)
downloaddotfiles-d00bf2cb2d5087164fa509a4f20a2be62a519044.tar.gz
dotfiles-d00bf2cb2d5087164fa509a4f20a2be62a519044.tar.bz2
dotfiles-d00bf2cb2d5087164fa509a4f20a2be62a519044.zip
refactor: restructure to chezmoi source state
Rename home/ contents to chezmoi naming conventions: - dot_ prefix for dotfiles and dot-dirs - private_dot_ for .gnupg and .ssh directories - private_ for 0600 files (nym.pub) - executable_ for scripts in .local/bin and display-toggle.sh - symlink_ for mimeapps.list symlink
Diffstat (limited to 'dot_config/nvim/after/ftplugin')
-rw-r--r--dot_config/nvim/after/ftplugin/gitcommit.lua3
-rw-r--r--dot_config/nvim/after/ftplugin/gitrebase.lua16
-rw-r--r--dot_config/nvim/after/ftplugin/mail.lua1
-rw-r--r--dot_config/nvim/after/ftplugin/markdown.lua1
-rw-r--r--dot_config/nvim/after/ftplugin/text.lua3
5 files changed, 24 insertions, 0 deletions
diff --git a/dot_config/nvim/after/ftplugin/gitcommit.lua b/dot_config/nvim/after/ftplugin/gitcommit.lua
new file mode 100644
index 0000000..e670035
--- /dev/null
+++ b/dot_config/nvim/after/ftplugin/gitcommit.lua
@@ -0,0 +1,3 @@
+vim.wo.spell = true
+vim.b.undo_ftplugin = (vim.b.undo_ftplugin or "") .. "|setlocal spell<"
+vim.cmd([[match ErrorMsg /\%1l.\%>50v/]])
diff --git a/dot_config/nvim/after/ftplugin/gitrebase.lua b/dot_config/nvim/after/ftplugin/gitrebase.lua
new file mode 100644
index 0000000..1bfcd69
--- /dev/null
+++ b/dot_config/nvim/after/ftplugin/gitrebase.lua
@@ -0,0 +1,16 @@
+local function nvmap(l, r, desc)
+ vim.keymap.set(
+ { "n", "v" },
+ l,
+ ":" .. r .. "<CR>",
+ { buffer = 0, desc = "[G]it rebase " .. desc }
+ )
+end
+
+nvmap("gc", "Cycle", "[C]ycle")
+nvmap("gp", "Pick", "[P]ick")
+nvmap("ge", "Edit", "[E]dit")
+nvmap("gf", "Fixup", "[F]ixup")
+nvmap("gd", "Drop", "[D]rop")
+nvmap("gs", "Squash", "[S]quash")
+nvmap("gr", "Reword", "[R]eword")
diff --git a/dot_config/nvim/after/ftplugin/mail.lua b/dot_config/nvim/after/ftplugin/mail.lua
new file mode 100644
index 0000000..9fe1500
--- /dev/null
+++ b/dot_config/nvim/after/ftplugin/mail.lua
@@ -0,0 +1 @@
+vim.wo.spell = true
diff --git a/dot_config/nvim/after/ftplugin/markdown.lua b/dot_config/nvim/after/ftplugin/markdown.lua
new file mode 100644
index 0000000..9fe1500
--- /dev/null
+++ b/dot_config/nvim/after/ftplugin/markdown.lua
@@ -0,0 +1 @@
+vim.wo.spell = true
diff --git a/dot_config/nvim/after/ftplugin/text.lua b/dot_config/nvim/after/ftplugin/text.lua
new file mode 100644
index 0000000..2179c42
--- /dev/null
+++ b/dot_config/nvim/after/ftplugin/text.lua
@@ -0,0 +1,3 @@
+vim.wo.spell = true
+vim.bo.formatoptions = vim.bo.formatoptions .. "t"
+vim.bo.commentstring = "# %s"