Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:LspStatus returns typescript-language-server: not running #743

Open
OurCodeBase opened this issue May 9, 2024 · 10 comments
Open

:LspStatus returns typescript-language-server: not running #743

OurCodeBase opened this issue May 9, 2024 · 10 comments

Comments

@OurCodeBase
Copy link

Why :LspStatus returns typescript-language-server: not running ?
Please show me how to run typescript-language-server in neovim.

$ vi helloworld.js
:PlugInstall
:LspInstallServer
:LspStatus
typescript-language-server: not running

I have read closed issue #547 and included these lines to init.vim file:-

let g:lsp_diagnostics_echo_cursor = 1
let g:lsp_settings = {
\ 'efm-langserver': {
\   'disabled': v:false
\ },
\ }

autocmd BufWritePre *.js,*.jsx call execute('LspDocumentFormatSync --server=efm-langserver')

But the error still appears the same...

@mattn
Copy link
Owner

mattn commented May 9, 2024

Question:

  • Do it have deno.json exists on root of your project directory?
  • Do it have node_modules on root of your project directory?

@OurCodeBase
Copy link
Author

No, I'm using tsserver on a standalone script.js file. Expecting auto-completions on atleast console.log().

@OurCodeBase OurCodeBase changed the title :LspStatus returns typescript-language-server: not running :LspStatus returns typescript-language-server: not running May 18, 2024
@subeenregmi
Copy link

Creating a folder node_modules in the same directory of my script.js file seemed to make the language server work for me.

@cheungxi
Copy link

cheungxi commented Sep 2, 2024

have same question in vim9

@mattn
Copy link
Owner

mattn commented Sep 2, 2024

If you want to specify language server, set

let g:lsp_settings_filetype_javascript = ['typescript-language-server']

@TayTTo
Copy link

TayTTo commented Sep 29, 2024

@mattn there are serveral lsp for javascript, which is the best, and why my biome running but I can't use it for formating using LspDocumentFormat command

@mattn
Copy link
Owner

mattn commented Sep 29, 2024

Sorry, I'm not familier to LSP for JS.

@TayTTo
Copy link

TayTTo commented Sep 30, 2024

@mattn tks

@TayTTo
Copy link

TayTTo commented Oct 8, 2024

@mattn hey bro, when I install tailwindcss-intellise, it not work when I want to use, is there any guide or special configuration for be able to use it?

@mattn
Copy link
Owner

mattn commented Oct 11, 2024

You can use it for svelte filetype.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants