Cleanup after migration.

This commit is contained in:
CronyAkatsuki 2023-12-24 14:26:02 +01:00
parent 5f44b663e3
commit e734307a44

View File

@ -1,7 +1,5 @@
local lsp = require("lsp-zero") local lsp = require("lsp-zero")
lsp.preset("recommended")
lsp.extend_cmp() lsp.extend_cmp()
local cmp = require('cmp') local cmp = require('cmp')
local cmp_select = { behavior = cmp.SelectBehavior.Select } local cmp_select = { behavior = cmp.SelectBehavior.Select }
@ -28,14 +26,11 @@ cmp.setup({
} }
}) })
lsp.set_preferences({ lsp.set_sign_icons({
suggest_lsp_servers = false, error = 'E',
sign_icons = { warn = 'W',
error = 'E', hint = 'H',
warn = 'W', info = 'I'
hint = 'H',
info = 'I'
}
}) })
lsp.extend_lspconfig() lsp.extend_lspconfig()
@ -55,8 +50,6 @@ lsp.on_attach(function(client, bufnr)
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts) vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
end) end)
lsp.setup()
vim.diagnostic.config({ vim.diagnostic.config({
virtual_text = true virtual_text = true
}) })