Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

restore when quit from macos split screen? #2995

Unanswered
tnxz asked this question in Q&A
Discussion options

when neovide is quit in macos(native) split screen, on reopen does not start in fullscreen. (requitting does make it start in fullscreen again). Is this a know behaviour or how can i solve it?

local function load_globals(opts)
  for key, value in pairs(opts) do
    vim.g[key] = value
  end
end

if vim.g.neovide then
  local dir = vim.fn.argv(0)
  if #vim.fn.argv() == 1 and vim.fn.isdirectory(dir) then
    vim.api.nvim_command("cd " .. dir)
  else
    vim.api.nvim_command("cd ~/Lazy")
  end
  load_globals({
    neovide_cursor_vfx_mode = "railgun",
    neovide_fullscreen = true,
    neovide_remember_window_size = true,
  })
  vim.keymap.set("i", "<D-v>", "<C-r><C-o>+") -- paste (insert)
  vim.keymap.set("n", "<D-v>", "i<C-r><C-o>+<Esc>l") -- paste (normal)
  vim.keymap.set("x", "<D-v>", '"+P') -- paste (visual)
  vim.keymap.set("c", "<D-v>", "<C-r>+") -- paste (command)
  vim.keymap.set("t", "<D-v>", [[<C-\><C-N>"+P]]) -- Paste terminal mode
end
output.mp4
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.