Astronvim config from kabinspace/AstroNvim_user

This commit is contained in:
Ismo Vuorinen
2023-02-13 15:55:27 +02:00
parent f502b5458f
commit b1d979df34
33 changed files with 1646 additions and 19 deletions

9
lsp/on_attach.lua Normal file
View 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