You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to write something inside <script> tags in html file, for example document.write("something"), I get completion suggestion for document, but then when i complete it and type . i don't get any more completions for the methods (like write, open, close etc). Minimal repro follows
Run it with nvim -u repro some_file.html and also type :lua require("otter").activate() to start Otter and inside <script> tag try to write document.write("something"). Observe that you get completion for document but not for the method write afterwards. Only completions from buffer nvim-cmp source are available.
PS: For your information on a vanilla JS file I can type document.write and get suggestions for both document at first and afterwards I get suggestions for methods write, close, open etc. so I don't think it's a problem with vtsls LSP server.
PS2: I also did :ls! and the otter buffer for JS is listed, but it always shows line 0 at the end. I would expect that as I move my cursor inside the <script> tag the line 0 in :ls! should also change relative to the position in the JS otter buffer??
The text was updated successfully, but these errors were encountered:
When I try to write something inside
<script>
tags inhtml
file, for exampledocument.write("something")
, I get completion suggestion fordocument
, but then when i complete it and type.
i don't get any more completions for the methods (likewrite
,open
,close
etc). Minimal repro followsRun it with
nvim -u repro some_file.html
and also type:lua require("otter").activate()
to start Otter and inside<script>
tag try to writedocument.write("something")
. Observe that you get completion fordocument
but not for the methodwrite
afterwards. Only completions from buffer nvim-cmp source are available.PS: For your information on a vanilla JS file I can type
document.write
and get suggestions for bothdocument
at first and afterwards I get suggestions for methodswrite
,close
,open
etc. so I don't think it's a problem withvtsls
LSP server.PS2: I also did
:ls!
and the otter buffer for JS is listed, but it always showsline 0
at the end. I would expect that as I move my cursor inside the<script>
tag theline 0
in:ls!
should also change relative to the position in the JS otter buffer??The text was updated successfully, but these errors were encountered: