diff options
| author | Jonas Zeltner <jonas.zeltner@posteo.de> | 2025-02-17 04:42:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-16 22:42:19 -0500 |
| commit | 81dcb9dea347be486a2538545c7ad733ad327fee (patch) | |
| tree | f4b1e25809cb036a0523da4811bbce689d923426 /nvim | |
| parent | 10ea10b279bb7facb119a57c06a336532ced411b (diff) | |
| download | dots-81dcb9dea347be486a2538545c7ad733ad327fee.tar.gz | |
fix: arguments for the `vim.lsp.Client.supports_method` method (#1356)
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 99c7c9c..7ef6120 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -564,7 +564,7 @@ require('lazy').setup({ -- -- When you move your cursor, the highlights will be cleared (the second autocommand). local client = vim.lsp.get_client_by_id(event.data.client_id) - if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then + if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false }) vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, { buffer = event.buf, @@ -591,7 +591,7 @@ require('lazy').setup({ -- code, if the language server you are using supports them -- -- This may be unwanted, since they displace some of your code - if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then + if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then map('<leader>th', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf }) end, '[T]oggle Inlay [H]ints') |