summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/_comment
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-18 22:19:57 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-18 22:19:57 +0100
commite6fed655e18343e6e399e8198346466effe8c3a8 (patch)
treecdae8ac05aa014a4970f3bdf656cb297527780e5 /.config/nvim/lua/_comment
parent55517dded759e1dd4381792985a6d7fb88df8a1e (diff)
Fix nvim lua scripts
Diffstat (limited to '.config/nvim/lua/_comment')
-rw-r--r--.config/nvim/lua/_comment/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/nvim/lua/_comment/init.lua b/.config/nvim/lua/_comment/init.lua
new file mode 100644
index 0000000..df79438
--- /dev/null
+++ b/.config/nvim/lua/_comment/init.lua
@@ -0,0 +1,3 @@
+require('nvim_comment').setup()
+vim.api.nvim_set_keymap("n", "<leader>/", ":CommentToggle<CR>", {noremap=true, silent = true})
+vim.api.nvim_set_keymap("v", "<leader>/", ":CommentToggle<CR>", {noremap=true, silent = true})