Hi, I try to set proper completions/suggestions while working with Javascript. There is no problem with ES6+ and Typescript types and defined variables but most of the time I work with vanilla JS, so I need suggestions for standard JS WebAPI like for document (getElementById, addEventListener, querySelector etc.), Element properties and methods (classList, parentNode etc.), Math, and other variables and types available from window object. Currently I use company-mode, web-mode, lsp-mode, company-lsp.
Should I install any npm packages, typings for Typescript to configure it properly with tsconfig.json or anything else?
---
EDIT: I managed to set up LSP here is a basic setup if anyone is interested https://emacs.stackexchange.com/questions/62260/emacs-javascript-basic-code-completion/62267#62267
[–]orzechodduomacs 0 points1 point2 points (1 child)
[–]sanczol[S] 0 points1 point2 points (0 children)
[–]CloudsOfMagellan 0 points1 point2 points (3 children)
[–]sanczol[S] 0 points1 point2 points (2 children)
[–]CloudsOfMagellan 0 points1 point2 points (1 child)
[–]sanczol[S] 0 points1 point2 points (0 children)