yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
473 stars 57 forks source link

Issues with semantic highlights in ruby-lsp #489

Open pusewicz opened 6 months ago

pusewicz commented 6 months ago

When adding ruby-lsp as the LSP server, I see some errors for semantic highlights:

Error detected while processing BufWinEnter Autocommands for "*"..function 
lsp#lsp#BufferLoadedInWin[22].. 
<SNR>20_SemanticHighlightUpdate[32]..lsp#semantichighlight#UpdateTokens:
line   36:
E964: Invalid column number: 5

My config:

if executable("ruby-lsp")
  g:LspAddServer([{
    filetype: ['ruby'],
    name: 'ruby-lsp',
    path: 'ruby-lsp',
    args: [],
    initializationOptions: {
      diagnostics: true,
    },
  }])
endif