diff --git a/home/vimrc.lua b/home/vimrc.lua index 9b31e3a..1c5abe0 100644 --- a/home/vimrc.lua +++ b/home/vimrc.lua @@ -123,6 +123,7 @@ cmp.setup({ { name = 'nvim_lsp' }, { name = 'buffer' }, { name = 'path' }, + { name = 'ultisnips' }, }), mapping = { [""] = cmp.mapping({ @@ -175,25 +176,8 @@ cmp.setup({ local servers = { 'pyright', 'rust_analyzer', 'ccls', 'lua_ls', 'nixd', 'texlab', 'verible' } local capabilities = require('cmp_nvim_lsp').default_capabilities() -local on_attach = function(bufnr) - vim.api.nvim_create_autocmd("CursorHold", { - buffer = bufnr, - callback = function() - local opts = { - focusable = false, - close_events = { "BufLeave", "CursorMoved", "InsertEnter", "FocusLost" }, - border = "rounded", - source = "always", - prefix = " ", - scope = "line", - } - vim.diagnostic.open_float(nil, opts) - end, - }) -end for _, lsp in pairs(servers) do require('lspconfig')[lsp].setup { - on_attach = on_attach(), capabilities = capabilities } end