|
|
@ -44,6 +44,10 @@ local buf_map_keys = function(server_name, bufnr)
|
|
|
|
keymapOpts)
|
|
|
|
keymapOpts)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Add additional capabilities supported by nvim-cmp
|
|
|
|
|
|
|
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
|
|
|
|
|
|
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
|
|
|
|
|
|
|
|
|
|
|
|
-- Register a handler that will be called for all installed servers.
|
|
|
|
-- Register a handler that will be called for all installed servers.
|
|
|
|
-- Alternatively, you may also register handlers on specific server instances instead (see example below).
|
|
|
|
-- Alternatively, you may also register handlers on specific server instances instead (see example below).
|
|
|
|
lsp_installer.on_server_ready(function(server)
|
|
|
|
lsp_installer.on_server_ready(function(server)
|
|
|
@ -75,5 +79,6 @@ lsp_installer.on_server_ready(function(server)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
opts.on_attach = buf_map_keys
|
|
|
|
opts.on_attach = buf_map_keys
|
|
|
|
|
|
|
|
opts.capabilities = capabilities
|
|
|
|
server:setup(opts)
|
|
|
|
server:setup(opts)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|