Skip to content

Commit

Permalink
bug: Make Top toggling keymap buffer local
Browse files Browse the repository at this point in the history
  • Loading branch information
madskjeldgaard committed Sep 13, 2021
1 parent 73c9f61 commit 5cb2a95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/openscad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ function M.set_mappings()
api.nvim_buf_set_keymap(0, 'n', vim.g.openscad_help_trig_key, '<cmd> lua require"openscad".help()<cr>', options)
api.nvim_buf_set_keymap(0, 'n', vim.g.openscad_manual_trig_key, '<cmd> lua require"openscad".manual()<cr>', options)
api.nvim_buf_set_keymap(0, 'n', vim.g.openscad_exec_openscad_trig_key, '<cmd> lua require"openscad".exec_openscad()<cr>', options)
api.nvim_set_keymap('n', vim.g.openscad_top_toggle, ':OpenscadTopToggle<CR>', { noremap = true, silent = true })
api.nvim_set_keymap('t', vim.g.openscad_top_toggle, '<C-\\><C-n>:OpenscadTopToggle<CR>', { noremap = true, silent = true })
api.nvim_buf_set_keymap(0, 'n', vim.g.openscad_top_toggle, ':OpenscadTopToggle<CR>', { noremap = true, silent = true })
api.nvim_buf_set_keymap(0, 't', vim.g.openscad_top_toggle, '<C-\\><C-n>:OpenscadTopToggle<CR>', { noremap = true, silent = true })
end

function M.set_user_mappings()
Expand All @@ -143,7 +143,7 @@ end

return M

-- NOTE(salkin):
-- NOTE(salkin):
-- local mappings = {
-- ['['] = 'update_view(-1)',
-- [']'] = 'update_view(1)',
Expand Down

0 comments on commit 5cb2a95

Please sign in to comment.