dotfiles/config/nvim/lua/gui.lua
Eryn Wells 534d9a102b [neovim] Give key bindings a little love; add GUI bindings for neovide
- Clean up the init interface. Move all the init methods into a single
  init_all() call.
- Add two keybindings for <M-j> and <M-k> to move by soft-wrapped lines in
  Normal mode
- Add a few key bindings for the usual shortcuts for cut/copy/paste when in GUI
  mode. In vim, D is the character that represents the Super/Apple key. So,
  <D-x>, <D-c>, and <D-v> now do what you'd expect.
2025-06-03 13:19:51 -07:00

25 lines
560 B
Lua

-- Eryn Wells <eryn@erynwells.me>
local function _init_neovide()
if not vim.g.neovide then
return
end
-- No use for these animations.
vim.g.neovide_cursor_animation_length = 0
vim.g.neovide_position_animation_length = 0
vim.g.neovide_scroll_animation_length = 0
vim.g.neovide_input_macos_option_key_is_meta = "both"
vim.cmd [[ colorscheme lunaperche ]]
end
function init_gui()
vim.o.guifont = "Berkeley Mono,Input Mono Condensed,SF Mono,Courier New:h18"
_init_neovide()
end
return {
init = init_gui,
}