diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 1729320..d0766d5 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -1,9 +1,14 @@ -- Learn the keybindings, see :help lsp-zero-keybindings -- Learn to configure LSP servers, see :help lsp-zero-api-showcase local lsp = require('lsp-zero') -local lspconfig = require('lspconfig'); lsp.preset('recommended') +lsp.setup_nvim_cmp({ + experimental = { + ghost_text = true, + }, +}) + -- (Optional) Configure lua language server for neovim lsp.nvim_workspace() @@ -34,6 +39,7 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) end) + lsp.setup() vim.diagnostic.config({