diff --git a/plugins/comment.nix b/plugins/comment.nix index 44a327e..d9b9608 100644 --- a/plugins/comment.nix +++ b/plugins/comment.nix @@ -7,4 +7,19 @@ _: enable = true; settings.pre_hook = "require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()"; }; + + keymaps = [ + { + key = "/"; + action = "(comment_toggle_linewise_current)"; + options.desc = "Toggle comment line"; + mode = "n"; + } + { + key = "/"; + action = "(comment_toggle_linewise_visual)"; + options.desc = "Toggle comment line"; + mode = "v"; + } + ]; } diff --git a/plugins/oil.nix b/plugins/oil.nix index f7ed885..fdb0f46 100644 --- a/plugins/oil.nix +++ b/plugins/oil.nix @@ -1,3 +1,18 @@ _: { opts.enable = true; + + keymaps = [ + { + key = "O"; + action = "function() require('oil').toggle_float() end"; + options.desc = "Toggle oil floating window"; + mode = "n"; + } + { + key = "to"; + action = "function() require('oil').toggle_float() end"; + options.desc = "Toggle oil floating window"; + mode = "n"; + } + ]; }