From c2dc755b4a3fa7ae1a628d30a29a6bfe0abe60ee Mon Sep 17 00:00:00 2001 From: Fabian Imhof Date: Tue, 17 Jun 2025 14:14:25 +0200 Subject: [PATCH] update, deprecated, razor --- lua/custom/plugins/vim-razor.lua | 1 + lua/plugins.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 lua/custom/plugins/vim-razor.lua diff --git a/lua/custom/plugins/vim-razor.lua b/lua/custom/plugins/vim-razor.lua new file mode 100644 index 00000000..30bcea22 --- /dev/null +++ b/lua/custom/plugins/vim-razor.lua @@ -0,0 +1 @@ +return { 'jlcrochet/vim-razor' } diff --git a/lua/plugins.lua b/lua/plugins.lua index 74b6a6b3..f8b659e9 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -93,7 +93,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, @@ -120,7 +120,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('th', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf }) end, '[T]oggle Inlay [H]ints')