Skip to content

No intellisense/autocomplete when using in neovim #1675

Closed
@bartecargo

Description

@bartecargo

This is probably a basic/newb question since I'm new to neovim.

I have the LSP up and running, and PSScriptAnalyzer is working, with suggestions appearing in the code. However, I'm not seeing any form of autocomplete. Do I need to configure something to enable autocomplete? I'm editing single .ps1 files rather than modules.

I'm using powershell.exe.

Feel free to let me know if you have any tips for diagnosing the problem myself. The logs aren't overly verbose in the default configuration.

Edit to add details:

I managed to grab the command-line being used via procmon, and set up my nvim-cmp config as:

require'lspconfig'.powershell_es.setup {
  bundle_path = '~/Downloads/PowerShellEditorServices',
  cmd = { 'powershell.exe', '-NoLogo', '-NoProfile', '-Command', "~/Downloads/PowerShellEditorServices/PowerShellEditorServices/Start-EditorServices.ps1 -BundledModulesPath ~/Downloads/PowerShellEditorServices -LogPath D:/Temp/nvim/powershell_es.log -SessionDetailsPath D:/Temp/nvim/powershell_es.session.json -FeatureFlags @() -AdditionalModules @() -HostName nvim -HostProfileId 0 -HostVersion 1.0.0 -Stdio -LogLevel Verbose" }
}

I now get verbose logs, but there are no errors. It's like nothing's actually broken, but intellisense isn't configured to start?

2022-01-24 14:41:09.711 +13:00 [DBG] Queueing "Parallel":textDocument/completion:33 request for processing
2022-01-24 14:41:09.711 +13:00 [DBG] Starting: Processing request textDocument/completion 33
2022-01-24 14:41:09.711 +13:00 [DBG] Starting: Routing Request (33) textDocument/completion
2022-01-24 14:41:09.872 +13:00 [DBG] Finding descriptors for textDocument/didChange
2022-01-24 14:41:09.872 +13:00 [DBG] Swapping from "Parallel" to "Serial"
2022-01-24 14:41:09.872 +13:00 [DBG] Cancelling any outstanding requests (switch from parallel to serial)
2022-01-24 14:41:09.872 +13:00 [DBG] Completing existing request process type "Parallel"
2022-01-24 14:41:09.872 +13:00 [DBG] Queueing "Serial":textDocument/didChange request for processing
2022-01-24 14:41:09.872 +13:00 [DBG] Starting: Processing notification textDocument/didChange
2022-01-24 14:41:09.872 +13:00 [DBG] Starting: Routing Notification textDocument/didChange
2022-01-24 14:41:09.872 +13:00 [DBG] Finished: Routing Notification textDocument/didChange in 0ms
2022-01-24 14:41:09.872 +13:00 [DBG] Finished: Processing notification textDocument/didChange in 0ms
2022-01-24 14:41:09.872 +13:00 [DBG] Found cancellation request $/cancelRequest
2022-01-24 14:41:09.872 +13:00 [DBG] Cancelling pending request
2022-01-24 14:41:09.872 +13:00 [DBG] Finding descriptors for textDocument/completion
2022-01-24 14:41:09.872 +13:00 [DBG] Swapping from "Serial" to "Parallel"
2022-01-24 14:41:09.872 +13:00 [DBG] Completing existing request process type "Serial"
2022-01-24 14:41:09.872 +13:00 [DBG] Queueing "Parallel":textDocument/completion:34 request for processing
2022-01-24 14:41:09.872 +13:00 [DBG] Starting: Processing request textDocument/completion 34
2022-01-24 14:41:09.872 +13:00 [DBG] Starting: Routing Request (34) textDocument/completion
2022-01-24 14:41:10.651 +13:00 [DBG] Found 13 violations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions