@@ -190,22 +190,22 @@ require("oil").setup({
190
190
-- Set to `false` to remove a keymap
191
191
-- See :help oil-actions for a list of all available actions
192
192
keymaps = {
193
- [" g?" ] = " actions.show_help" ,
193
+ [" g?" ] = { " actions.show_help" , mode = " n " } ,
194
194
[" <CR>" ] = " actions.select" ,
195
- [" <C-s>" ] = { " actions.select" , opts = { vertical = true }, desc = " Open the entry in a vertical split " },
196
- [" <C-h>" ] = { " actions.select" , opts = { horizontal = true }, desc = " Open the entry in a horizontal split " },
197
- [" <C-t>" ] = { " actions.select" , opts = { tab = true }, desc = " Open the entry in new tab " },
195
+ [" <C-s>" ] = { " actions.select" , opts = { vertical = true } },
196
+ [" <C-h>" ] = { " actions.select" , opts = { horizontal = true } },
197
+ [" <C-t>" ] = { " actions.select" , opts = { tab = true } },
198
198
[" <C-p>" ] = " actions.preview" ,
199
- [" <C-c>" ] = " actions.close" ,
199
+ [" <C-c>" ] = { " actions.close" , mode = " n " } ,
200
200
[" <C-l>" ] = " actions.refresh" ,
201
- [" -" ] = " actions.parent" ,
202
- [" _" ] = " actions.open_cwd" ,
203
- [" `" ] = " actions.cd" ,
204
- [" ~" ] = { " actions.cd" , opts = { scope = " tab" }, desc = " :tcd to the current oil directory " , mode = " n" },
205
- [" gs" ] = " actions.change_sort" ,
201
+ [" -" ] = { " actions.parent" , mode = " n " } ,
202
+ [" _" ] = { " actions.open_cwd" , mode = " n " } ,
203
+ [" `" ] = { " actions.cd" , mode = " n " } ,
204
+ [" ~" ] = { " actions.cd" , opts = { scope = " tab" }, mode = " n" },
205
+ [" gs" ] = { " actions.change_sort" , mode = " n " } ,
206
206
[" gx" ] = " actions.open_external" ,
207
- [" g." ] = " actions.toggle_hidden" ,
208
- [" g\\ " ] = " actions.toggle_trash" ,
207
+ [" g." ] = { " actions.toggle_hidden" , mode = " n " } ,
208
+ [" g\\ " ] = { " actions.toggle_trash" , mode = " n " } ,
209
209
},
210
210
-- Set to false to disable all of the above keymaps
211
211
use_default_keymaps = true ,
0 commit comments