From 7ec1fa7385c1b88a2efdad72c805b254c52084bd Mon Sep 17 00:00:00 2001 From: A Farzat Date: Wed, 6 Nov 2024 09:09:37 +0900 Subject: Remove nvim submodule Nvim config will be included as bare files instead of a submodule. The nvim config repo will still exist, but the content will be used by yadm without the repo itself. --- .config/nvim/ftplugin/c.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/nvim/ftplugin/c.lua (limited to '.config/nvim/ftplugin/c.lua') diff --git a/.config/nvim/ftplugin/c.lua b/.config/nvim/ftplugin/c.lua new file mode 100644 index 0000000..d6e872d --- /dev/null +++ b/.config/nvim/ftplugin/c.lua @@ -0,0 +1,10 @@ +vim.api.nvim_buf_create_user_command(0, "ToggleComment", function() + if + require("Comment.ft").get("c", require("Comment.utils").ctype.linewise) + == "//%s" + then + require("Comment.ft").set("c", "/*%s*/") + else + require("Comment.ft").set("c", "//%s") + end +end, {}) -- cgit v1.2.3-70-g09d2