mirror of
https://github.com/ivuorinen/astronvim_config.git
synced 2026-02-10 03:46:09 +00:00
Astronvim config from kabinspace/AstroNvim_user
This commit is contained in:
9
lsp/on_attach.lua
Normal file
9
lsp/on_attach.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return function(client, bufnr)
|
||||
if client.server_capabilities.inlayHintProvider then
|
||||
local inlayhints_avail, inlayhints = pcall(require, "lsp-inlayhints")
|
||||
if inlayhints_avail then
|
||||
inlayhints.on_attach(client, bufnr)
|
||||
vim.keymap.set("n", "<leader>uH", function() inlayhints.toggle() end, { desc = "Toggle inlay hints" })
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user