path | title |
---|---|
/learning_emacs_lsp |
Learning Emacs: LSP |
This works better / is probably more supported than even js2-mode
, as it does JSX better.
M-x lsp
to activate this. You want ts-ls, not js-ts-ls as the latter seems to not be supported?
Q: Can I get a function definition list?
A: KINDA! M-x lsp-ui-imenu
gives you a sidebar of tree structure of your code (may include more than functions)
Q: What about js2-mode?
A: Turn on lsp
over js2-mode
for backend javascript. For React let lsp run over js-jsx-mode ????
Need to use M-x rustic-mode
or a hook to turn on the neat stuff.
M-x lsp-find-defintion
jump to defintion.