mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
fix(nvim): issue with lazyvim.util api
This commit is contained in:
@@ -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 = {},
|
||||||
|
|||||||
Reference in New Issue
Block a user