Skip to content

Commit

Permalink
style: stylue check
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Chiu committed Oct 13, 2022
1 parent 59575f0 commit bb9d479
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/modules/completion/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ for _, server in ipairs(mason_lspconfig.get_installed_servers()) do
-- Workaround for clangd warning: multiple different client offset_encodings detected for buffer, this is not supported yet
clangd_capabilities.offsetEncoding = { "utf-16" }
local clangd_opts = require("modules.completion.server-settings.clangd")
local extra_opts =
vim.tbl_deep_extend("force", clangd_opts, { on_attach = opts.on_attach, capabilities = clangd_capabilities })
local extra_opts = vim.tbl_deep_extend(
"force",
clangd_opts,
{ on_attach = opts.on_attach, capabilities = clangd_capabilities }
)
lspconfig.clangd.setup(extra_opts)
end

Expand Down

0 comments on commit bb9d479

Please # to comment.