1 files changed,
9 insertions(+),
1 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2024-01-03 22:18:34 +0200
Parent:
85224db
M
lua/plugins/lsp/attach.lua
@@ -14,7 +14,7 @@ vim.lsp.codelens.refresh()
end if client.server_capabilities.inlayHintProvider then - vim.lsp.inlay_hint(bufnr, true) + vim.lsp.inlay_hint.enable(bufnr, true) end map("K", vim.lsp.buf.hover)@@ -29,6 +29,14 @@ map("<leader>ls", "<cmd>Telescope lsp_document_symbols<cr>")
map("<leader>ll", vim.lsp.codelens.run) map("]d", vim.diagnostic.goto_next) map("[d", vim.diagnostic.goto_prev) + + map("<leader>li", function() + if vim.lsp.inlay_hint.is_enabled(bufnr) then + vim.lsp.inlay_hint.enable(bufnr, false) + else + vim.lsp.inlay_hint.enable(bufnr, true) + end + end) end, null_ls = function(_, _) map("<leader>lf", "<cmd>lua vim.lsp.buf.format {async = true}<cr>")