diff options
Diffstat (limited to '.config/nvim/lua/kommentary/init.lua')
-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..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", "<leader>/", "<Plug>kommentary_line_default", {}) +vim.api.nvim_set_keymap("v", "<leader>/", "<Plug>kommentary_visual_default", {}) +require('kommentary.config').configure_language("default", { + prefer_single_line_comments = true, +}) |