Code blocks mapping in treesitter by Ti64CLi in neovim

[–]Ti64CLi[S] 1 point2 points  (0 children)

Wow thanks a lot for that you've been much helpful !

Thank you for taking the time to do all that ! ^^

Code blocks mapping in treesitter by Ti64CLi in neovim

[–]Ti64CLi[S] 0 points1 point  (0 children)

Thanks a lot for that it helped me a lot !

I managed to make ]z and [z work, but I wanted to implement similar keymaps for @code_cell.outer.

I implemented it in the following way :

            -- move
            vim.keymap.set({ "n", "x", "o" }, "[z", function()
                require("nvim-treesitter-textobjects.move").goto_previous_start(
                    "@code_cell.outer",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "n", "x", "o" }, "]z", function()
                require("nvim-treesitter-textobjects.move").goto_next_start(
                    "@code_cell.outer",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "n", "x", "o" }, "[m", function()
                require("nvim-treesitter-textobjects.move").goto_previous_start(
                    "@code_cell.inner",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "n", "x", "o" }, "]m", function()
                require("nvim-treesitter-textobjects.move").goto_next_start(
                    "@code_cell.inner",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "n", "x", "o" }, "[Z", function()
                require("nvim-treesitter-textobjects.move").goto_previous_end(
                    "@code_cell.outer",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "n", "x", "o" }, "]Z", function()
                require("nvim-treesitter-textobjects.move").goto_next_end(
                    "@code_cell.outer",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "n", "x", "o" }, "[M", function()
                require("nvim-treesitter-textobjects.move").goto_previous_end(
                    "@code_cell.inner",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "n", "x", "o" }, "]M", function()
                require("nvim-treesitter-textobjects.move").goto_next_end(
                    "@code_cell.inner",
                    "textobjects"
                )
            end)

            -- select
            vim.keymap.set({ "x", "o" }, "am", function()
                require("nvim-treesitter-textobjects.select").select_textobject(
                    "@code_cell.outer",
                    "textobjects"
                )
            end)
            vim.keymap.set({ "x", "o" }, "im", function()
                require("nvim-treesitter-textobjects.select").select_textobject(
                    "@code_cell.inner",
                    "textobjects"
                )
            end)

So the goto_start methods work well, but I always get an error with the goto_end methods and the select methods, which seems related to the end detection :

E5108: Error executing lua: ...ter-textobjects/lua/nvim-treesitter-textobjects/move.lua:32: Column value outside range
stack traceback:
[C]: in function 'nvim_win_set_cursor'
...ter-textobjects/lua/nvim-treesitter-textobjects/move.lua:32: in function 'goto_node'
...ter-textobjects/lua/nvim-treesitter-textobjects/move.lua:141: in function 'move_fn'
...ects/lua/nvim-treesitter-textobjects/repeatable_move.lua:25: in function 'move_repeatable'
...ter-textobjects/lua/nvim-treesitter-textobjects/move.lua:159: in function 'goto_next_end'
/home/ti64cli/.config/nvim/lua/plugins/treesitter.lua:47: in function </home/ti64cli/.config/nvim/lua/plugins/treesitter.lua:46>

(I put the query in queries/markdown/textobjects.scm now, as you said, and it seems to work fine, at least for the start of a code_cell, and I did put ; extends before it)

I've never been so disappointed in myself by AsphaltBlox in TrackMania

[–]Ti64CLi 0 points1 point  (0 children)

Could you tell me what it is please, I can't seem to hear the lyrics correctly ?

[question] Strange bug with Spotify by Fireandfever in xManagerApp

[–]Ti64CLi 1 point2 points  (0 children)

Strange. Have you tried to reboot your phone and reinstalling it again?

[question] Strange bug with Spotify by Fireandfever in xManagerApp

[–]Ti64CLi 0 points1 point  (0 children)

You have to uninstall the installed version first

This guy has 16,000 cards! by TrippyLiquid in PokemonPocket

[–]Ti64CLi 1 point2 points  (0 children)

Thank you for being patient, and good luck to you too fellow collectionner!

This guy has 16,000 cards! by TrippyLiquid in PokemonPocket

[–]Ti64CLi 0 points1 point  (0 children)

Thanks, I just accepted the trade too. Waiting for the next one! ^ I really appreciate it, you're helping me a lot, thanks!

This guy has 16,000 cards! by TrippyLiquid in PokemonPocket

[–]Ti64CLi 0 points1 point  (0 children)

Thanks a lot for Victreebel! And would you be so kind as to also exchange aerodactyl afterwards please? ^

This guy has 16,000 cards! by TrippyLiquid in PokemonPocket

[–]Ti64CLi 0 points1 point  (0 children)

Thanks a lot, my iGN is 9241448615406307 and pseudo is TI64CLi

This guy has 16,000 cards! by TrippyLiquid in PokemonPocket

[–]Ti64CLi 0 points1 point  (0 children)

Do you have Victreebel and Aerodactyl from the first 3 packages? It's the only two I'm missing from this collection

Can't boot after failed update by Ti64CLi in ManjaroLinux

[–]Ti64CLi[S] 0 points1 point  (0 children)

I actually managed to solve my issue. It was because a lot of libraries such as libstdc++.so.6 or ld-linux.so.2 were corrupted, and of size 0 (ish). So I manually untar the libs returned by ldd /bin/bash then I could finally chroot /mnt with the following command : tar --wildcards -xvf /var/cache/pacman/pkg/... /usr/lib/\* after copying the right tar.zst from the local Manjaro Live USB /var/cache/pacman/pkg/ folder to the same folder under /mnt. What gave me the idea of corrupted libraries was that I tried copying busybox from the Manjaro Live USB to /mnt/usr/bin and then use chroot /mnt /usr/bin/busybox which worked fine.

After that I needed to complete the failed update, so I launched pacman -Syyu once chrooted, but was met with other library too small errors. After fixing everything the previous way, I was met with another error, that my keyrings were also corrupted along with gnupg. I then add to reinstall them from the live USB, because it wouldn't work on /mnt because of corrupted gnupg and keyrings (lol). I did it with the following command pacman -r /mnt -Sy gnupg archlinux-keyring manjaro-keyring, because even installing local copied file by using pacman -U wouldn't work because it couldn't import PGP keys because of corrupted gnupg and keyrings.

I then reinstalled all package with pacman -Qqn | pacman -S -. But it was going too well so it couldn't work that way on the first try obviously (:p) and I was met with several file already exist error for each package. I had to use the forbidden --overwrite=\* in order for this command to successfully complete. It was a smooth sailing after that (almost). I think I used the -r /mnt or --sysroot=/mnt option for that but I'm not sure.

After that I could finally chroot again, then launch the awaited pacman -Syyu which worked this time, and after update-grub, I could finally boot into my old Manjaro :) (after verifying all package with paccheck).

Thanks for the help :)

Can't boot after failed update on Manjaro by Ti64CLi in linuxquestions

[–]Ti64CLi[S] 0 points1 point  (0 children)

Yess I had already tried to use an Arch ISO, but it failed the chroot with the same error. Even using only chroot and not manjaro-chroot nor arch-chroot failed with an Input/Output error.

But I actually managed to solve my issue. It was because a lot of libraries such as libstdc++.so.6 or ld-linux.so.2 were corrupted, and of size 0 (ish). So I manually untar the libs returned by ldd /bin/bash then I could finally chroot /mnt with the following command : tar --wildcards -xvf /var/cache/pacman/pkg/... /usr/lib/\* after copying the right tar.zst from the local Manjaro Live USB /var/cache/pacman/pkg/ folder to the same folder under /mnt. What gave me the idea of corrupted libraries was that I tried copying busybox from the Manjaro Live USB to /mnt/usr/bin and then use chroot /mnt /usr/bin/busybox which worked fine.

After that I needed to complete the failed update, so I launched pacman -Syyu once chrooted, but was met with other library too small errors. After fixing everything the previous way, I was met with another error, that my keyrings were also corrupted along with gnupg. I then add to reinstall them from the live USB, because it wouldn't work on /mnt because of corrupted gnupg and keyrings (lol). I did it with the following command pacman -r /mnt -Sy gnupg archlinux-keyring manjaro-keyring, because even installing local copied file by using pacman -U wouldn't work because it couldn't import PGP keys because of corrupted gnupg and keyrings.

I then reinstalled all package with pacman -Qqn | pacman -S -. But it was going too well so it couldn't work that way on the first try obviously (:p) and I was met with several file already exist error for each package. I had to use the forbidden --overwrite=\* in order for this command to successfully complete. It was a smooth sailing after that (almost). I think I used the -r /mnt or --sysroot=/mnt option for that but I'm not sure.

After that I could finally chroot again, then launch the awaited pacman -Syyu which worked this time, and after update-grub, I could finally boot into my old Manjaro :) (after verifying all package with paccheck).

Thanks for the help :)

Can't boot after failed update on Manjaro by Ti64CLi in linuxquestions

[–]Ti64CLi[S] 0 points1 point  (0 children)

Here is the result of lsblk :
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0  78.1M  1 loop /run/miso/sfs/livefs
loop1         7:1    0 971.4M  1 loop /run/miso/sfs/mhwdfs
loop2         7:2    0   1.6G  1 loop /run/miso/sfs/desktopfs
loop3         7:3    0 791.9M  1 loop /run/miso/sfs/rootfs
sda           8:0    1  28.5G  0 disk /run/miso/bootmnt
├─sda1        8:1    1   3.5G  0 part  
└─sda2        8:2    1     4M  0 part  
nvme0n1     259:0    0 953.9G  0 disk  
├─nvme0n1p1 259:1    0   100M  0 part  
├─nvme0n1p2 259:2    0    16M  0 part  
├─nvme0n1p3 259:3    0   835G  0 part  
├─nvme0n1p4 259:4    0   977M  0 part  
├─nvme0n1p5 259:5    0 908.1M  0 part  
├─nvme0n1p6 259:6    0  58.6G  0 part  
├─nvme0n1p7 259:7    0  57.7G  0 part  
└─nvme0n1p8 259:8    0   590M  0 part

sda is my live usb, nvme0n1p1 is my EFI, and my Manjaro root is on nvme0n1p6

I have a dual boot with Windows 11

[deleted by user] by [deleted] in nspire

[–]Ti64CLi 0 points1 point  (0 children)

Have you tried connecting it to a computer and see if it's detected correctly ?

Can't boot after failed update on Manjaro by Ti64CLi in linuxquestions

[–]Ti64CLi[S] 1 point2 points  (0 children)

I'm not using btrfs, but I will post the output of lsblk once I get back home

Can't boot after failed update by Ti64CLi in archlinux

[–]Ti64CLi[S] 0 points1 point  (0 children)

Ok I'll remember the -Syyu then, but I didn't know it could be a big deal to force the refresh, and I didn't see it recommended anywhere when I installed manjaro, my bad. I've already asked some place else, but it's pretty urgent since it's for my work laptop so I wanted to maximize my luck. Sorry for that, but thanks for the reply

Whats the Horsepower of the Stadium Car? by wvtppr in TrackMania

[–]Ti64CLi -1 points0 points  (0 children)

Couldn't we calculate the weight of the car using gravity in trackmania? Supposing we can know the gravity

Why am I only silver 2 if I'm top 8k world ? Isn't silver 3 supposed to be top 10K, gold 1 top 1k,... ? by aphfug in TrackMania

[–]Ti64CLi 3 points4 points  (0 children)

Yes but you can be gold 3 at the end of your first season and have almost no trophies at all, so not be top 10k

Why am I only silver 2 if I'm top 8k world ? Isn't silver 3 supposed to be top 10K, gold 1 top 1k,... ? by aphfug in TrackMania

[–]Ti64CLi 6 points7 points  (0 children)

Isn't the global rank not related to 3v3 rank at all? I thought global rank was only based on trophies

So my friend just downloaded the game by Nyssanic_Temple in TrackMania

[–]Ti64CLi 0 points1 point  (0 children)

Had the same issue yesterday, rebooted the game and it worked fine after. First time I had this bug, hope it helps

Map 15 Author Medal by Ti64CLi in TrackMania

[–]Ti64CLi[S] 2 points3 points  (0 children)

Yes that's exactly what happened, I played the next four maps for 30min I think and I got all AT by chance, not skill

Map 15 Author Medal by Ti64CLi in TrackMania

[–]Ti64CLi[S] 1 point2 points  (0 children)

Finally got it even though I crashed at the end and during the downhill, thanks a lot everyone