diff options
Diffstat (limited to '.config/nvim/lua/_kommentary')
-rw-r--r-- | .config/nvim/lua/_kommentary/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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", "<Plug>kommentary_line_default", {}) +vim.api.nvim_set_keymap("v", "gc", "<Plug>kommentary_visual_default", {}) +require('kommentary.config').configure_language("default", { + prefer_single_line_comments = true, +}) |