Skip to content

Commit 3aed0d6

Browse files
committed
feat: remove unnecessary documentHighlight check
1 parent 3d666d8 commit 3aed0d6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lua/refjump/jump.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,6 @@ function M.reference_jump(opts, references, with_references)
156156
method = 'textDocument/documentHighlight',
157157
})
158158

159-
if #compatible_lsp_clients <= 0 then
160-
if require('refjump').get_options().verbose then
161-
local message = 'refjump.nvim: no LSP client with ' ..
162-
'`textDocument/documentHighlight` support found'
163-
require('refjump.utils').notify(message, vim.log.levels.WARN)
164-
end
165-
166-
return
167-
end
168-
169159
local current_position = vim.api.nvim_win_get_cursor(0)
170160
local count = vim.v.count1
171161
M.reference_jump_from(current_position, opts, count, references, with_references)

0 commit comments

Comments
 (0)