Skip to content

Commit

Permalink
feat(nvim/hardtime): enable arrow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed Oct 11, 2024
1 parent 3acb9a7 commit 4ac6802
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion home/private_dot_config/nvim/lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ return {
opts = {
-- https://github.com/LazyVim/LazyVim/issues/511#issuecomment-1493763938
on_open = function(win)
vim.api.nvim_win_set_option(win, "winblend", 30)
vim.api.nvim_win_set_config(win, { zindex = 100 })
end,
},
Expand Down Expand Up @@ -385,6 +384,31 @@ return {
},
opts = {
disabled_filetypes = { "qf", "lazy", "mason", "neo-tree", "netrw", "NvimTree", "oil", "trouble", "" },
disabled_keys = {
-- enable arrow keys for use in custom layout layer
["<Up>"] = {},
["<Down>"] = {},
["<Left>"] = {},
["<Right>"] = {},
},
restricted_keys = {
["<Up>"] = { "n", "x" },
["<Down>"] = { "n", "x" },
["<Left>"] = { "n", "x" },
["<Right>"] = { "n", "x" },
["h"] = { "n", "x" },
["j"] = { "n", "x" },
["k"] = { "n", "x" },
["l"] = { "n", "x" },
["-"] = { "n", "x" },
["+"] = { "n", "x" },
["gj"] = { "n", "x" },
["gk"] = { "n", "x" },
["<CR>"] = { "n", "x" },
["<C-M>"] = { "n", "x" },
["<C-N>"] = { "n", "x" },
["<C-P>"] = { "n", "x" },
},
disable_mouse = false,
},
},
Expand Down

0 comments on commit 4ac6802

Please sign in to comment.