aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-01-15 14:19:20 -0800
committerGitHub <noreply@github.com>2022-01-15 14:19:20 -0800
commitb455e0179b4288c69e6231bfcf8d1c132b78f2fc (patch)
tree7ca2bc4cac99106c35dbad35573f4da657748413 /runtime/lua/vim/lsp/util.lua
parentf3193c7b541d1b5f29ba9f4a9896fd0042f4c38a (diff)
downloadrneovim-b455e0179b4288c69e6231bfcf8d1c132b78f2fc.tar.gz
rneovim-b455e0179b4288c69e6231bfcf8d1c132b78f2fc.tar.bz2
rneovim-b455e0179b4288c69e6231bfcf8d1c132b78f2fc.zip
feat: use nvim_buf_set_extmark for vim.highlight (#16963)
Closes https://github.com/neovim/neovim/issues/13647 This allows customizing the priority of the highlights. * Add default priority of 50 * Use priority of 200 for highlight on yank * use priority of 40 for highlight references (LSP)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 8be1683d86..d22c00ae76 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1550,7 +1550,10 @@ do --[[ References ]]
reference_ns,
document_highlight_kind[kind],
{ start_line, start_idx },
- { end_line, end_idx })
+ { end_line, end_idx },
+ nil,
+ false,
+ 40)
end
end
end