3 files changed,
5 insertions(+),
29 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2023-07-21 19:22:41 +0300
Parent:
d67cb0e
M
lua/plugins/lsp/attach.lua
@@ -7,7 +7,7 @@ })
end return { - common = function(client, _) + common = function(client, bufnr) client.server_capabilities.documentFormattingProvider = false if client.name == "gopls" then vim.lsp.codelens.refresh()@@ -15,6 +15,10 @@ end
if client.name == "clojure_lsp" then client.server_capabilities.documentFormattingProvider = true + end + + if client.server_capabilities.inlayHintProvider then + vim.lsp.inlay_hint(bufnr, true) end map("K", vim.lsp.buf.hover)
M
lua/plugins/lsp/init.lua
@@ -13,12 +13,6 @@ require "plugins.lsp.null-ls"
end, }, { - "lvimuser/lsp-inlayhints.nvim", - config = function() - require "plugins.lsp.inlayhints" - end, - }, - { "RRethy/vim-illuminate", config = function() require("illuminate").configure {
D
@@ -1,22 +0,0 @@
-local hints = require "lsp-inlayhints" - -vim.api.nvim_create_autocmd("LspAttach", { - callback = function(args) - if not args.data and not args.data.client_id then - return - end - - hints.on_attach( - vim.lsp.get_client_by_id(args.data.client_id), - args.buf, - true - ) - end, -}) - -hints.setup { - inlay_hints = { - highlight = "Comment", - parameter_hints = { show = false }, - }, -}