Skip to content

Commit c2dc755

Browse files
author
Fabian Imhof
committed
update, deprecated, razor
1 parent 1dfc84a commit c2dc755

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lua/custom/plugins/vim-razor.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
return { 'jlcrochet/vim-razor' }

lua/plugins.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ require('lazy').setup({
9393
--
9494
-- When you move your cursor, the highlights will be cleared (the second autocommand).
9595
local client = vim.lsp.get_client_by_id(event.data.client_id)
96-
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then
96+
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then
9797
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
9898
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
9999
buffer = event.buf,
@@ -120,7 +120,7 @@ require('lazy').setup({
120120
-- code, if the language server you are using supports them
121121
--
122122
-- This may be unwanted, since they displace some of your code
123-
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
123+
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
124124
map('<leader>th', function()
125125
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf })
126126
end, '[T]oggle Inlay [H]ints')

0 commit comments

Comments
 (0)