How to properly associate .omnijs files with typescript-ts-mode in doom emacs? #38
Unanswered
kamransoomro84
asked this question in
Questions
Replies: 1 comment 1 reply
-
Can you pastebin me your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using doom emacs as an editor for writing OmniJS automation files. According to the instructions, I've downloaded the
tsconfig.json
andomnifocus.d.ts
files and put them in my project folder. When I rename my script to thets
extension and open it in emacs, the language server correctly recognises the OmniJS objects. Ideally I want emacs to recognise omnijs files in the same way.I have tried adding the following line to my
$DOOMDIR/config.el
:This correctly puts emacs in typescript-ts-mode when I open the OmniJS script, but doesn't launch eglot or the typescript LSP. Manually launching eglot connects to the typescript LSP and gives me LSP features for vanilla typescript, but the custom OmniJS classes are not recognised. How do I fix this?
Beta Was this translation helpful? Give feedback.
All reactions