diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:26:50 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:26:50 +0100 |
commit | 855f4e4f0f22b35641f13614e46b9ab7f6818188 (patch) | |
tree | 9a776e07429c16e1df68f4b04c125c46185eed16 /.config/nvim/lua/kommentary | |
parent | 8577c3b7cba714551d3537f3337ee2490bd20106 (diff) |
Migration to lua
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..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, +}) |