Skip to content

Commit

Permalink
fix: disable inlayHintProvider for efm
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Aug 28, 2023
1 parent 3ef0845 commit 3dbe2b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/native/lua/konrad/lsp/efm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ M.build_lspconfig = function(plugins)
cmd = { binaries.efm },
single_file_support = true,
filetypes = vim.tbl_keys(languages),
init_options = { documentFormatting = true, },
init_options = {
documentFormatting = true,
},
settings = {
rootMarkers = { '.git/' },
languages = languages,
Expand Down
4 changes: 3 additions & 1 deletion config/native/lua/konrad/lsp/event_handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ M.attach = function(client, bufnr)
opts_with_desc("Telescope [W]orkspace [S]ymbols"))
end

if client.supports_method("textDocument/inlayHint") then
-- TODO not sure why this always returns true
-- if client.supports_method("textDocument/inlayHint") then
if client.server_capabilities.inlayHintProvider then
registry.register_once("InlayHints", register_data, require('konrad.lsp.capability_handlers.inlayhints').attach)
end

Expand Down

0 comments on commit 3dbe2b0

Please sign in to comment.