@@ -288,6 +289,7 @@ You can find the keybinds of Treemacs here.
[remapxref-find-apropos]#'consult-lsp-symbols))
#+end_src
*** dap-mode
~dap-mode~ is an advanced debugging mode that works through LSP. Note
that currently, ~dap-firefox~ and ~dap-chrome~ don’t work correctly due to
[[https://github.com/emacs-lsp/dap-mode/issues/547][this issue]]. A workaround can be found in [[https://github.com/emacs-lsp/dap-mode/issues/554#issuecomment-1171256089][this comment]] though.
@@ -1669,43 +1671,16 @@ Tide enabled interactivity with Typescript.
"roi"#'tide-organize-imports))
#+end_src
***Zig
[[https://ziglang.org/][Zig]] is to C kind of what Rust is to C++: a modern replacement without
sacrificing performance. It is much safer than C while providing
interop with it. Plus, its [[https://ziglang.org/documentation/master/std/][standard library]] is pretty complete.
First, here is its major mode.
#+begin_src emacs-lisp
(use-packagezig-mode
:defert
:straight(:buildt)
:afterflycheck
:hook(zig-mode.lsp-deferred)
:config
;; This is from DoomEmacs
(flycheck-define-checkerzig
"A zig syntax checker using the zig-fmt interpreter."
There isn’t really any configuration in this heading, but an important
note concerning the usage of LSP with Vue. If the packages =typescript=
and =vue-tsc= are not in the =package.json= of a project, =volar= (or
=vue-semantic-server= according to =lsp-mode=) won’t start properly. The
simplest fix is to run the following command:
#+begin_src sh
npm install --save-dev vue-tsc typescript
#+end_src
Or replace =npm= with whichever package manager you prefer.
For LSP to work, we need ~zls~ to be installed. In my case, as I am on
Arch Linux, I can install it from the AUR, and my AUR helper is ~paru~.
#+begin_src fish :results raw :wrap "src text" :exports code
paru--skipreview--noconfirm-S zls-bin 2>&1
#+end_src
If you want to work with Vue in Emacs, =web-mode= is more than enough
when paired with an LSP server.
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.