Comments (12)
@real-marshal Is the Lsp server even running? check :LspInfo.
from nvchad.
@siduck76 yep, it says tsserver is active and attached to the buffer
from nvchad.
@real-marshal By default the tsserver lsp config , will only show autocompletions if your folder has a package.json / git etc so you have to keep the root_dir empty , ebff217 should fix it I think.
from nvchad.
@siduck76 I created a new project, did git init
and npm init
, but autocomplete still shows everything possible instead of correct suggestions.
ac6afa3 should fix it I think
That commit was made 6 days ago, I already have it in my install.sh. Maybe you meant this one f71984e ?
from nvchad.
@real-marshal This might fix it ebff217
from nvchad.
@siduck76 nah, it's the same. But I seem to find the actual problem. When I enter console.
, then save & close the file and open it again it shows Identifier expected
error and autocomplete after that dot correctly shows all console methods. The error though remains. Now when I enter .
anywhere in a file I get console methods instead of global things. So it seems like LSP runs only one time when I open the file and after that it doesn't see any changes / doesn't check the file. Idk maybe it's a bug with nvim-lspconfig, looked at the issues there but didn't find anything similar.
from nvchad.
@real-marshal I think it would be better if you file this issue at nvim-lspconfig repo or https://github.com/theia-ide/typescript-language-server.
from nvchad.
@real-marshal have you installed axios lib?
from nvchad.
@Vanderscycle do you have this issue?
from nvchad.
@siduck76 you can assign me to this issue. I'll investigate.
from nvchad.
Axios works fine in JS files but auto completion is not present in TS. We can close this issue, but I'll raise an issue in TS LSP. I'm still fairly new to TS and JS so I don't have much experience with both languages and their quirks.
from nvchad.
I think yes , my friend tested it too and it works for him
@real-marshal Seems like you need to install the axios lib on your system , I'll close this issue for now and re-open it if you want.
from nvchad.
Related Issues (20)
- problem with TSInstall vimdoc HOT 3
- Multiple Errors During Installation HOT 2
- Mason configs HOT 4
- Disable native mappings HOT 1
- Symbols under buffer like in astronvim/lunarvim HOT 2
- luasnip checkhealt require jsregexp HOT 2
- `<C-i>` raises an error when tabufline is disabled HOT 1
- Not able to move between Buffers and Terminal and Tree using Keyboard HOT 5
- Can't use integrated terminal after clicking anywhere in the screen HOT 3
- I can't assign the toggle comment function to the gc command. HOT 2
- vim.filetype.add({}) does not work in autocmd.lua HOT 8
- Failed to source HOT 2
- Noice conflict with lsp-config HOT 3
- [tabufline] Show lsp diagnostic info beside the buffer title HOT 2
- NVChad 2.5 custom: where to put custom stuff? HOT 8
- Specific Custom Highlight Groups HOT 2
- Setup prettier/eslint installed inside every node project HOT 9
- fs_event watcher error while using nvimtree (ctrl+n) HOT 2
- <ESC> key exits LazyGit window
- Disabling tabufline breaks <C-i> key binding HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvchad.