!VAvpDPNiCkoNjbRUMY:matrix.org

Neovim (@Machine)

1213 Members
neovim9 Servers

Load older messages


SenderMessageTime
28 Mar 2023
@_discord_671751409607114763:t2bot.io𝘡𝘎𝘎#9759
    vim.opt.sessionoptions = {
        "blank",
        "buffers",
        "curdir",
        "folds",
        "help",
        "options",
        "tabpages",
        "winsize",
        "resize",
        "winpos",
        "terminal",
        "globals",
    }

I got it all
15:09:39
@_discord_671751409607114763:t2bot.io𝘡𝘎𝘎#9759 *
    vim.opt.sessionoptions = {
        "blank",
        "buffers",
        "curdir",
        "folds",
        "help",
        "options",
        "tabpages",
        "winsize",
        "resize",
        "winpos",
        "terminal",
        "globals",
    }

I got it all
15:09:56
@_discord_253577767369703425:t2bot.ioVhyrro there are some very weird edge cases where sometimes setting a table value in the lua bridge doesn't work
what about a manual vim.opt.sessionoptions = "blank,buffers,curdir,etc..."?
15:10:26
@_discord_671751409607114763:t2bot.io𝘡𝘎𝘎#9759 it did work now, but it doesn't save tables 15:14:09
@_discord_671751409607114763:t2bot.io𝘡𝘎𝘎#9759 I guess I can just use json 15:14:13
@_discord_253577767369703425:t2bot.ioVhyrro yeah vim.json.encode that mf if all else fails 15:15:19
@_discord_253577767369703425:t2bot.ioVhyrro really weird that it doesn't save tables though 15:15:23
@_discord_253577767369703425:t2bot.ioVhyrro goofy ahh session 15:15:30
@_discord_671751409607114763:t2bot.io𝘡𝘎𝘎#9759 maybe because it can have functions and other stuff 15:43:53
@_discord_788366369141030952:t2bot.iojuiceDΓ©Lemon joined the room.15:48:40
@_discord_857750107515256892:t2bot.io! szachy113 Is it possible to execute some motion from the command line? 18:22:19
@_discord_857750107515256892:t2bot.io! szachy113 Like zz, for instance. 18:22:27
@_discord_253577767369703425:t2bot.ioVhyrro check out :h nvim_feedkeys() 18:22:35
@_discord_253577767369703425:t2bot.ioVhyrro oh wait from the command line 18:22:42
@_discord_253577767369703425:t2bot.ioVhyrro :normal 18:22:43
@_discord_857750107515256892:t2bot.io! szachy113 Cool! Thanks, Vhyrro! πŸ™‡β€β™‚οΈ 18:23:07
@yanni_papandreou:matrix.orgyanni_papandreou joined the room.22:41:17
29 Mar 2023
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674 I am trying to bind the <Tab> command to expand or jump a snippet, and when there is no snippet to expand / jump accept a copilot suggestion. Everything works but instead of accepting a suggestion from copilot it dismisses the suggestion. Any ideas on how I could fix this?
vim.keymap.set({ "i", "s" }, "<Tab>", function()
  if ls.expand_or_jumpable() then
    ls.expand_or_jump()
  else
    -- Command to map a new copilot accept key in vimscript:
    -- imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
    vim.fn["copilot#Accept"]("\\<CR>");
  end
end, {silent = true});
00:25:16
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674 * I am trying to bind the <Tab> command to expand or jump a snippet, and when there is no snippet to expand / jump accept a copilot suggestion. Everything works but instead of accepting a suggestion from copilot it dismisses the suggestion. Any ideas on how I could fix this?
vim.keymap.set({ "i", "s" }, "<Tab>", function()
  if ls.expand_or_jumpable() then
    ls.expand_or_jump()
  else
    -- Command to map a new copilot accept key in vimscript:
    -- imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
    vim.fn["copilot#Accept"]("\\<CR>"); -- This code dismisses a suggestion instead of accepting it.
  end
end, {silent = true});
00:26:08
@_discord_671751409607114763:t2bot.io𝘡𝘎𝘎#9759 is copilot really useful if it can't fix this itself? Kappa 00:35:23
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674 Copilot is horrible for logic of code, it's great for smashing out all the boilerplate I need to do in cpp. 00:36:53
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674Redacted or Malformed Event00:42:08
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674Redacted or Malformed Event00:42:09
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674Redacted or Malformed Event01:07:27
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674Redacted or Malformed Event01:07:27
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674Copilot.webp
Download Copilot.webp
01:09:35
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674 ex: 01:09:35
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674 * ex (I give up on embedding): 01:09:45
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674 * ex:
https://0x0.st/HoIf.webp
01:10:55
@_discord_387676887473979413:t2bot.ioaFlyingPumpkin#8674Redacted or Malformed Event01:11:50

There are no newer messages yet.


Back to Room ListRoom Version: 9