From 279be9ce33bf3457513a79c1c182a3ce5affed2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Wed, 8 Oct 2025 01:37:02 +0200 Subject: [PATCH] feat: add after/ftplugin for lua, python, rust --- after/ftplugin/lua.lua | 5 +++++ after/ftplugin/python.lua | 1 + after/ftplugin/rust.lua | 1 + 3 files changed, 7 insertions(+) create mode 100644 after/ftplugin/lua.lua create mode 100644 after/ftplugin/python.lua create mode 100644 after/ftplugin/rust.lua diff --git a/after/ftplugin/lua.lua b/after/ftplugin/lua.lua new file mode 100644 index 0000000..c19e998 --- /dev/null +++ b/after/ftplugin/lua.lua @@ -0,0 +1,5 @@ +vim.keymap.set("n", "x", "source %") +vim.keymap.set("n", "x", ":.lua") +vim.keymap.set("v", "x", ":lua") + +vim.opt_local.colorcolumn = { 81 } diff --git a/after/ftplugin/python.lua b/after/ftplugin/python.lua new file mode 100644 index 0000000..3e70d14 --- /dev/null +++ b/after/ftplugin/python.lua @@ -0,0 +1 @@ +vim.opt_local.colorcolumn = { 80, 81, 89 } diff --git a/after/ftplugin/rust.lua b/after/ftplugin/rust.lua new file mode 100644 index 0000000..42f76b9 --- /dev/null +++ b/after/ftplugin/rust.lua @@ -0,0 +1 @@ +vim.opt_local.colorcolumn = { 80, 100 }