From 2b6ae8473e1b0fb8cc0bd16aa8c485a77ee5e847 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 16 Mar 2021 21:54:42 +0100 Subject: renaming, treesitter buggy --- .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') diff --git a/.config/nvim/lua/_kommentary/init.lua b/.config/nvim/lua/_kommentary/init.lua new file mode 100644 index 0000000..350e1ac --- /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", "gc", "kommentary_line_default", {}) +vim.api.nvim_set_keymap("v", "gc", "kommentary_visual_default", {}) +require('kommentary.config').configure_language("default", { + prefer_single_line_comments = true, +}) -- cgit v1.2.3-70-g09d2