28 Mar 2023 |
π΅ππ#9759 | vim.opt.sessionoptions = {
"blank",
"buffers",
"curdir",
"folds",
"help",
"options",
"tabpages",
"winsize",
"resize",
"winpos",
"terminal",
"globals",
}
I got it all | 15:09:39 |
π΅ππ#9759 | * vim.opt.sessionoptions = {
"blank",
"buffers",
"curdir",
"folds",
"help",
"options",
"tabpages",
"winsize",
"resize",
"winpos",
"terminal",
"globals",
}
I got it all | 15:09:56 |
Vhyrro | 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 |
π΅ππ#9759 | it did work now, but it doesn't save tables | 15:14:09 |
π΅ππ#9759 | I guess I can just use json | 15:14:13 |
Vhyrro | yeah vim.json.encode that mf if all else fails | 15:15:19 |
Vhyrro | really weird that it doesn't save tables though | 15:15:23 |
Vhyrro | goofy ahh session | 15:15:30 |
π΅ππ#9759 | maybe because it can have functions and other stuff | 15:43:53 |
| juiceDΓ©Lemon joined the room. | 15:48:40 |
! szachy113 | Is it possible to execute some motion from the command line? | 18:22:19 |
! szachy113 | Like zz , for instance. | 18:22:27 |
Vhyrro | check out :h nvim_feedkeys() | 18:22:35 |
Vhyrro | oh wait from the command line | 18:22:42 |
Vhyrro | :normal | 18:22:43 |
! szachy113 | Cool! Thanks, Vhyrro! πββοΈ | 18:23:07 |
| yanni_papandreou joined the room. | 22:41:17 |
29 Mar 2023 |
aFlyingPumpkin#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 |
aFlyingPumpkin#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 |
π΅ππ#9759 | is copilot really useful if it can't fix this itself? Kappa | 00:35:23 |
aFlyingPumpkin#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 |
aFlyingPumpkin#8674 | Redacted or Malformed Event | 00:42:08 |
aFlyingPumpkin#8674 | Redacted or Malformed Event | 00:42:09 |
aFlyingPumpkin#8674 | Redacted or Malformed Event | 01:07:27 |
aFlyingPumpkin#8674 | Redacted or Malformed Event | 01:07:27 |
aFlyingPumpkin#8674 |  Download Copilot.webp | 01:09:35 |
aFlyingPumpkin#8674 | ex: | 01:09:35 |
aFlyingPumpkin#8674 | * ex (I give up on embedding): | 01:09:45 |
aFlyingPumpkin#8674 | * ex: https://0x0.st/HoIf.webp | 01:10:55 |
aFlyingPumpkin#8674 | Redacted or Malformed Event | 01:11:50 |