From 1eb6f7b83067f53285dbe071f8769393673a4054 Mon Sep 17 00:00:00 2001 From: junikimm717 <68165832+junikimm717@users.noreply.github.com> Date: Sun, 29 Jan 2023 10:11:22 -0500 Subject: [PATCH] virtual text? --- after/plugin/lsp.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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({