File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,15 @@ function M.setup()
55 local lspconfig = require ' lspconfig'
66
77 -- Get capabilities from blink.cmp if available
8- local capabilities = {}
9- pcall (function ()
10- capabilities = require (' blink.cmp' ).get_lsp_capabilities ()
11- end )
8+ local capabilities = vim .lsp .protocol .make_client_capabilities ()
9+
10+ local ok , blink_cmp = pcall (require , ' blink.cmp' )
11+ if ok then
12+ capabilities = blink_cmp .get_lsp_capabilities (capabilities )
13+ end
1214 --
1315 -- Set global position encoding preference
14- capabilities .positionEncodings = { ' utf-8 ' , ' utf-16' }
16+ capabilities .general . positionEncodings = { ' utf-16' }
1517
1618 -- Load server configurations
1719 local servers = require (' plugins.config.lsp.servers' ).get_servers ()
You can’t perform that action at this time.
0 commit comments