Questions tagged [filetype-typescript]

Questions about the typescript file type.

Filter by
Sorted by
Tagged with
1 vote
0 answers
151 views

TypeScript LSP Not Reading tsconfig.json

I am almost certain that I have a mistake in my Neovim configuration... The Neovim ~/.config/nvim directory I'm using is: https://github.com/andrewgregorywright/nvim-config/tree/main I've created an ...
Andrew's user avatar
  • 111
0 votes
0 answers
55 views

How can I configure NeoVim to use different language servers for different directories of the same project?

This is my folder structure: project back (backend files written for deno) front (frontend files where I use esbuild) contract (interface files used both in back and in front) deno.jsonc (for deno) ...
Szymon Wygnański's user avatar
0 votes
1 answer
128 views

Missing LSP diagnostics from XO via null-ls for TypeScript

I have been using the same Neovim config on my desktop and laptop computers for a while now (it's actually based on LazyVim, but I can reproduce the issue without it as well) without any problems. Now ...
Isti115's user avatar
  • 113
4 votes
1 answer
587 views

How can I copy the contents of an error message in Neovim?

I'm using TSServer with LSPConfig to provide in-line typechecking with Neovim. Is there a way for me to grab the value of a given type error message? Especially to my system clipboard?
akavi's user avatar
  • 41
0 votes
0 answers
838 views

How do I organize imports with `tsserver` using Neovim LSP?

I'm using Neovim 0.9 and lsp-zero to edit Typescript files. tsserver has an organize imports feature. How do I map that back through LSP to a user-defined key? Basically, I'd like to add a new ...
Sasgorilla's user avatar
0 votes
2 answers
143 views

Getting syntax file to load for typescriptreact files

I am very likely missing something very obvious, for I am very new to the vim world. The effect I intended to achieve was to mimic the Inline Fold extension for vscode using vim's Conceal. In short, I'...
Zynh Ludwig's user avatar
0 votes
1 answer
282 views

TypeScript: is it possible to see errors not in one line?

Now I have this: Sometimes errors are big, and in order to see them clearly - I run tsc to see this: Also, is it possible to see a type name, but not a fields enumeration? I use ALE and tsuquyomi.
Vitaly Zdanevich's user avatar
4 votes
0 answers
1k views

Cannot set g:ale_fixers in ALE config on vim

I'm trying to config ALE in my vim and can't config the fixers, them aren't showing on ALEInfo. I'm setting the config for typescript files (with and without react) with prettier and eslint. What i'm ...
Wallace Coelho's user avatar
2 votes
0 answers
162 views

TypeScript: ale vs tsuquyomi?

Ale and tsuquyomi both seem to be Vim Language Servers that can interface with tsserver. Because ale supports multiple languages, is there any reason to use tsuquyomi moving forward? I'm an old time ...
Evan Carroll's user avatar
  • 1,226
5 votes
2 answers
3k views

See inferred type of a variable in typescript?

Vim is my main editor but for typescript it's hard to see what the inferred type of a variable is. Whether it is a complex type or just a simple one, it'd be great to see the typescript inferred type ...
Colin D's user avatar
  • 181