MoreRSS

site iconxiantang | 咸糖

目前在新加坡工作,同时比较喜欢开源和投资。
请复制 RSS 到你的阅读器,或快速订阅到 :

Inoreader Feedly Follow Feedbin Local Reader

xiantang | 咸糖的 RSS 预览

Neovim: No Crash Incremental Selection

2024-07-11 23:16:09

When I use neovim treesitter incremental selection, it randomly crashes, but I cannot stable reproduce it. And I found some issues and complaints about this issue, but no solution. So I decide to write a blog post to record this issue and the solution. related issues: https://www.reddit.com/r/neovim/comments/10wwkft/comment/j7qla2q/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button https://github.com/neovim/neovim/issues/24336 https://github.com/neovim/neovim/issues/25254 https://www.reddit.com/r/neovim/comments/18dn4qt/treesitter_incremental_selection/ TL;DR paste this https://github.com/xiantang/nvim-conf/blob/7c0d6cbf6d9fd7b6a8960de887db1109332419bf/lua/plugins/treesitter.lua#L62-L132 into your neovim configuration file. this is my treesitter incremental selection configuration: 1 2 3 4 5 6 7 8 9 incremental_selection = { enable = true, keymaps = { init_selection = true, node_incremental = "v", node_decremental = "<BS>", }, }, sometime when I use v to expand the selection, it crashes, and it’s a Segmentation fault, and I have the report:

Nixos use old version software

2024-07-08 23:42:39

NixOS users often face situations where the latest software versions have issues, but the NixOS channel only offers the fixed versions. Here’s how to use an older version of software: According to the blog post How to use old versions of software in NixOS, you can follow these steps to use an older software version: Search for the old version of the software Use https://lazamar.co.uk/nix-versions/ to search for old packages.

Yabai Sometimes Puts Windows Below Other Windows

2024-07-01 23:08:16

Yabai Sometimes Puts Windows Below Other Windows I’ve been using yabai on my company’s MacBook and noticed it sometimes places windows below others, a behavior not observed on my personal MacBook. By running yabai -m query --windows, I discovered differences in window layouts between the two machines: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 [ { "id": 140, "pid": 1087, "app": "iTerm2", "space": 2, "level": 0, "layer": "normal", "opacity": 1.

Summary of 2022

2023-01-01 16:30:40

Today is the first day of 2023, I want to write a year-end summary, to review some things in 2022. It is also a review of myself. Year-end Summary of 2022 2022 was not a very smooth year, it seems that everyone is not doing particularly well due to the economic downturn. Work I have been working in Singapore for more than a year and a half. Because Singapore does not have four seasons, every day is actually similar to the previous one.

Using neovim as a PDE (Personalized Development Environment)

2022-10-29 20:45:20

This article will not tell you how to configure neovim step by step, but will tell you some “Tao” about PDE, not the specific practice of “Art”. Introduction to neovim and PDE Seeing TJ’s YouTube introduced the use of neovim as a PDE, it was interesting, so I tried it myself, it felt good, so I recorded it. What is neovim Neovim is a branch of vim, vim is a text editor, neovim is a branch of vim, its goal is to provide a better vim, not a substitute for vim.