fix(nvim): issue with lazyvim.util api

This commit is contained in:
Stefan Imhoff
2025-10-31 15:00:11 +01:00
parent 45c63630cb
commit a33c698a22

View File

@@ -2,16 +2,14 @@
-- https://github.com/neovim/nvim-lspconfig -- https://github.com/neovim/nvim-lspconfig
return { return {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
init = function()
require("lazyvim.util").lsp.on_attach(function(_, buffer)
-- stylua: ignore
vim.keymap.set("n", "g0", "<cmd>Telescope lsp_document_symbols<cr>", { buffer = buffer, desc = "Document Symbols" })
vim.keymap.set("n", "cc", "<cmd>lua vim.lsp.buf.code_action()<cr>", { buffer = buffer, desc = "Code Action" })
end)
end,
opts = { opts = {
inlay_hints = { enabled = false }, inlay_hints = { enabled = false },
servers = { servers = {
["*"] = {
keys = {
{ "g0", "<cmd>Telescope lsp_document_symbols<cr>", desc = "Document Symbols" },
},
},
astro = {}, astro = {},
cssls = {}, cssls = {},
cssmodules_ls = {}, cssmodules_ls = {},