This commit is contained in:
Aleksandr Lebedev 2025-08-17 22:48:57 +02:00
parent e6762b1078
commit 7597b1420f
4 changed files with 60 additions and 6 deletions

View file

@ -85,6 +85,7 @@
- [[#language-support][Language support]] - [[#language-support][Language support]]
- [[#nix][Nix]] - [[#nix][Nix]]
- [[#glsl][GLSL]] - [[#glsl][GLSL]]
- [[#qml][QML]]
- [[#rmlui][RmlUi]] - [[#rmlui][RmlUi]]
- [[#cmake][CMake]] - [[#cmake][CMake]]
- [[#global-treesitter][Global treesitter]] - [[#global-treesitter][Global treesitter]]
@ -1574,6 +1575,21 @@ Emacs has built-in programming language modes for Lisp, Scheme, DSSSL, Ada, ASM,
(use-package glsl-mode (use-package glsl-mode
:ensure t) :ensure t)
#+end_src #+end_src
** QML
#+begin_src emacs-lisp
(use-package qml-ts-mode
:after lsp-mode
:config
(add-to-list 'lsp-language-id-configuration '(qml-ts-mode . "qml-ts"))
(add-to-list 'auto-mode-alist '("\\.qml\\'" . qml-ts-mode))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("qmlls"))
:activation-fn (lsp-activate-on "qml-ts")
:server-id 'qmlls))
(add-hook 'qml-ts-mode-hook (lambda ()
(setq-local electric-indent-chars '(?\n ?\( ?\) ?{ ?} ?\[ ?\] ?\; ?,))
(lsp-deferred))))
#+end_src
** RmlUi ** RmlUi
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-to-list 'auto-mode-alist '("\\.rml\\'" . html-ts-mode)) (add-to-list 'auto-mode-alist '("\\.rml\\'" . html-ts-mode))

46
flake.lock generated
View file

@ -10,11 +10,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1754876903, "lastModified": 1755451755,
"narHash": "sha256-LOGFgg9as4+jCteUJQLSX+hApdRBM9bJYhS0DrmLmrA=", "narHash": "sha256-FNEjy32IrutBDnIs1NzFpvDNMudzmnJbFTkcoeNwDSM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "c9f73717ad385de42dc6b64b5a2de6f5a9916a10", "rev": "5d7b6b2d78415c0bcc19e3e651b0ec997a9acbad",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -92,11 +92,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1754767907, "lastModified": 1755274400,
"narHash": "sha256-8OnUzRQZkqtUol9vuUuQC30hzpMreKptNyET2T9lB6g=", "narHash": "sha256-rTInmnp/xYrfcMZyFMH3kc8oko5zYfxsowaLv1LVobY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c5f08b62ed75415439d48152c2a784e36909b1bc", "rev": "ad7196ae55c295f53a7d1ec39e4a06d922f3b899",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -106,11 +106,45 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1730531603,
"narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"qml-nix": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1730724501,
"narHash": "sha256-zvNdomPM86fUf0iAwJV1RQC8yAqDCKbCDJKIs4iIPy0=",
"ref": "refs/heads/master",
"rev": "8f897ffb4a1575252c536c63db8be72f22b6a494",
"revCount": 1,
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/nix-qml-support"
},
"original": {
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/nix-qml-support"
}
},
"root": { "root": {
"inputs": { "inputs": {
"emacs-overlay": "emacs-overlay", "emacs-overlay": "emacs-overlay",
"nix-org-babel": "nix-org-babel", "nix-org-babel": "nix-org-babel",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"qml-nix": "qml-nix",
"snowfall-lib": "snowfall-lib" "snowfall-lib": "snowfall-lib"
} }
}, },

View file

@ -11,6 +11,7 @@
emacs-overlay.inputs.nixpkgs.follows = "nixpkgs"; emacs-overlay.inputs.nixpkgs.follows = "nixpkgs";
emacs-overlay.inputs.nixpkgs-stable.follows = "nixpkgs"; emacs-overlay.inputs.nixpkgs-stable.follows = "nixpkgs";
nix-org-babel.url = "github:emacs-twist/org-babel"; nix-org-babel.url = "github:emacs-twist/org-babel";
qml-nix.url = "git+https://git.outfoxxed.me/outfoxxed/nix-qml-support";
snowfall-lib = { snowfall-lib = {
url = "github:KyleKrein/snowfall-lib"; #"git+file:///home/kylekrein/Git/snowfall-lib"; url = "github:KyleKrein/snowfall-lib"; #"git+file:///home/kylekrein/Git/snowfall-lib";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,5 +1,6 @@
{ {
pkgs, pkgs,
inputs,
withLsps ? false, withLsps ? false,
native ? false, native ? false,
... ...
@ -89,6 +90,8 @@
++ (with epkgs; [ ++ (with epkgs; [
tree-sitter tree-sitter
tree-sitter-langs tree-sitter-langs
inputs.qml-nix.packages.${pkgs.system}.tree-sitter-qmljs
inputs.qml-nix.packages.${pkgs.system}.qml-ts-mode
treesit-grammars.with-all-grammars treesit-grammars.with-all-grammars
el-easydraw el-easydraw
]) ])