mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
fix(nvim): issue with lazyvim.util api
This commit is contained in:
@@ -2,16 +2,14 @@
|
||||
-- https://github.com/neovim/nvim-lspconfig
|
||||
return {
|
||||
"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 = {
|
||||
inlay_hints = { enabled = false },
|
||||
servers = {
|
||||
["*"] = {
|
||||
keys = {
|
||||
{ "g0", "<cmd>Telescope lsp_document_symbols<cr>", desc = "Document Symbols" },
|
||||
},
|
||||
},
|
||||
astro = {},
|
||||
cssls = {},
|
||||
cssmodules_ls = {},
|
||||
|
||||
Reference in New Issue
Block a user