vim-lsp-settings
vim-lsp-settings copied to clipboard
`:LspStatus` returns `typescript-language-server: not running`
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...
Question:
- Do it have deno.json exists on root of your project directory?
- Do it have node_modules on root of your project directory?
No, I'm using tsserver on a standalone script.js file. Expecting auto-completions on atleast console.log().
Creating a folder node_modules in the same directory of my script.js file seemed to make the language server work for me.
have same question in vim9
If you want to specify language server, set
let g:lsp_settings_filetype_javascript = ['typescript-language-server']
@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
Sorry, I'm not familier to LSP for JS.
@mattn tks
@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?
You can use it for svelte filetype.