Browse Source

virtual text?

imac
junikimm717 2 years ago
parent
commit
1eb6f7b830
  1. 8
      after/plugin/lsp.lua

8
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({

Loading…
Cancel
Save