!gMNSNKSoNpoumBnBLI:matrix.org

Lapce

183 Members
Talk about the Lapce editor. https://lapce.dev/29 Servers

Load older messages


SenderMessageTime
3 Jul 2024
@iaxat:matrix.orgxcool18:30:30
@iaxat:matrix.orgxwe have different opinion about something we dont have to agree18:30:53
5 Jul 2024
@aleksana:mozilla.orgaleksana (force me to bed after 18:00 UTC) changed their display name from aleksana to aleksana (force me to bed after 18:00 UTC).18:58:58
6 Jul 2024
@chocolateloverraj:matrix.orgRajas ParanjpeIs Zed better than Lapce?02:33:51
@chocolateloverraj:matrix.orgRajas ParanjpeI think it is but I haven't tried Lapce in a long time so idk02:34:08
7 Jul 2024
@ric21000:matrix.org@ric21000:matrix.org left the room.17:58:12
9 Jul 2024
@robbie.monero:matrix.org@robbie.monero:matrix.org left the room.20:14:48
10 Jul 2024
@wilker:matrix.org@wilker:matrix.org left the room.06:17:24
11 Jul 2024
@flux:matrix.org@flux:matrix.org joined the room.12:23:51
@flux:matrix.org@flux:matrix.org left the room.12:42:38
@steveej0:matrix.orgsteveej joined the room.18:16:23
12 Jul 2024
@bashonly:matrix.org@bashonly:matrix.org left the room.17:19:12
@gabihodoroaga:matrix.orggabihodoroaga joined the room.18:18:03
@mexplorer:synod.immExplorer Hi, Lapce shows me the option Restart to update to 4.04. But after the restart it's further sticking on 0.3.1. How can I get the current version? 20:29:38
@panekj:matrix.orgpjdownload from website or github20:30:11
@mexplorer:synod.immExplorer I've installed it for a while via git clone/ cargo build --release.
How can I clean deinstall it, bevor downloading the new version, for example as a deb package.?
20:32:09
@panekj:matrix.orgpj there is no installation via cargo build 20:32:39
@mexplorer:synod.immExplorer

I've this folder structure, not only a binary:

Cargo.lock
Cargo.toml
CHANGELOG.md
CONTRIBUTING.md
defaults
docs
extra
icons
lapce-core
lapce-data
lapce-proxy
lapce-rpc
lapce.spec
lapce-ui
LICENSE
Makefile
README.md
rust-toolchain.toml
target
20:46:49
16 Jul 2024
@steveej0:matrix.orgsteveej hey, would someone guide me on the architecture of syntax highlighting? i'm interested in adding it for the Nix language. i'd like to start by understanding why the Nix LSP plugin doesn't add syntax highlighting, and whether it architecturally could 15:47:21
@tmpod:matrix.orgtmpodSyntax highlighting is done either through TreeSitter or an LSP. The former is a incremental parser generator that supports useful AST queries that can be used to implement syntax highlighting, while the latter is a protocol for handling IDE-level language features, including semantic syntax highlighting.16:02:38
@tmpod:matrix.orgtmpodI think it's always worth having a TreeSitter grammar, as it provides really good and lightweight syntax highlighting (and more advanced features such as smarter text objects for vim and the like)16:03:34
@tmpod:matrix.orgtmpodBut if you want real language support, you'll need to use/make an LSP server.16:04:01
@tmpod:matrix.orgtmpodI'm not entirely familiar with Lapce's arch, but I believe the TS stuff is built into the editor itself, while LSP is included through the plugin system (which works with WASI bundles)16:06:15
@panekj:matrix.orgpj
In reply to @steveej0:matrix.org
hey, would someone guide me on the architecture of syntax highlighting? i'm interested in adding it for the Nix language. i'd like to start by understanding why the Nix LSP plugin doesn't add syntax highlighting, and whether it architecturally could
because it's missing highlight queries
16:19:02
@panekj:matrix.orgpjif it's already added, if not then it needs to be added to grammar list and compiled16:19:45
@panekj:matrix.orgpjhttps://docs.lapce.dev/features/syntax-highlighting#queries16:54:42
@steveej0:matrix.orgsteveej
In reply to @panekj:matrix.org
https://docs.lapce.dev/features/syntax-highlighting#queries

thanks!

so i grabbed the file from https://raw.githubusercontent.com/nix-community/tree-sitter-nix/master/queries/highlights.scm and put it in ~/.config/lapce-stable/queries/nix/highlights.scm. i don't see syntax highlighting with that.

maybe related, i'm getting the following error on start:

$ lapce -n . --wait
2024-07-16T17:35:15.072862Z ERROR lapce_app::app: failed to fetch grammars: can't find support grammars
17:35:58
@steveej0:matrix.orgsteveej oh, it actually works for some nix files! it doesn't work for flake.nix files, for default.nix files it does. 17:37:44
@panekj:matrix.orgpjRecommend restarting if you didn't, but also grammar is probably outdated17:38:09
@panekj:matrix.orgpjor the highlight query might be not for this version of grammar17:38:23

Show newer messages


Back to Room ListRoom Version: 9