Questions tagged [filetype-typescript]

Questions about the typescript file type.

Filter by
Sorted by
Tagged with
6 votes
2 answers
1k views

How can I copy the contents of an LSP / linter 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
  • 61
5 votes
2 answers
4k 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
3 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
168 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,314
1 vote
0 answers
614 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
1 answer
337 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
0 votes
0 answers
16 views

Auto importing issue from installed npm packages in neovim (only in js not ts)

I mainly use Neovim for my MERN stack work and it's been a few days, I have noticed that from some of the installed npm packages of my project, I wasn't able to auto-import the functions or components....
Nitesh's user avatar
  • 1
0 votes
0 answers
66 views

Display LSP suggestions for TypeScript TSConfig files with Neovim & nvim-lspconfig using jsonls

I'm using Neovim with the nvim-lspconfig plugin and for some projects, it would be great to have the TypeScript suggestions for JSON files such as TSConfig, but even though I'm not working with them ...
Amin NAIRI's user avatar
0 votes
0 answers
125 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
188 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
0 votes
0 answers
1k 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
191 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