From 855f4e4f0f22b35641f13614e46b9ab7f6818188 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 15 Mar 2021 23:26:50 +0100 Subject: Migration to lua --- .config/nvim/lua/kommentary/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .config/nvim/lua/kommentary/init.lua (limited to '.config/nvim/lua/kommentary/init.lua') diff --git a/.config/nvim/lua/kommentary/init.lua b/.config/nvim/lua/kommentary/init.lua new file mode 100644 index 0000000..dea90f7 --- /dev/null +++ b/.config/nvim/lua/kommentary/init.lua @@ -0,0 +1,6 @@ +vim.g.kommentary_create_default_mappings = false +vim.api.nvim_set_keymap("n", "/", "kommentary_line_default", {}) +vim.api.nvim_set_keymap("v", "/", "kommentary_visual_default", {}) +require('kommentary.config').configure_language("default", { + prefer_single_line_comments = true, +}) -- cgit v1.2.3-70-g09d2