yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
458 stars 49 forks source link

LspOptions not honoured when installed using vim-plug #443

Closed darkseid-is closed 7 months ago

darkseid-is commented 7 months ago
let lspServers = [#{

                        \       name: 'rust',
                        \       filetype: ['rust'],
                        \       path: 'rust-analyzer',
                        \       args: [],
                        \       syncInit: v:true
                        \ }]

autocmd VimEnter * call LspAddServer(lspServers)

let lspOpts = #{diagSignErrorText: 'G>'}

autocmd VimEnter * call LspOptionsSet(lspOpts)
Song-Tianxiang commented 7 months ago

this have been fixed in 52baacb9c0b845a7964ac6682cf336722a2b0c3f try:

let lspServers = [#{

                        \       name: 'rust',
                        \       filetype: ['rust'],
                        \       path: 'rust-analyzer',
                        \       args: [],
                        \       syncInit: v:true
                        \ }]

let lspOpts = #{diagSignErrorText: 'G>'}

autocmd VimEnter * call LspOptionsSet(lspOpts)

autocmd VimEnter * call LspAddServer(lspServers)

(set options first) need to update readme

darkseid-is commented 7 months ago

this fixes the issue. Have you made a pull request to fix readme ?

Song-Tianxiang commented 7 months ago

@yegappan have update readme. e3216cae9583c655bfb1c3cfac399738d0521621

darkseid-is commented 7 months ago

Thanks for the fix and response. I am closing this issue.