Remove completion-nvim

This commit is contained in:
ViViDboarder 2021-12-15 08:44:21 -08:00
parent eca378ce64
commit 46cfa8337e
3 changed files with 0 additions and 24 deletions

View File

@ -223,12 +223,6 @@ return require('packer').startup(function(use)
--]]
-- Completion
--[[
use {
"nvim-lua/completion-nvim",
config = function() require("plugins.completion").config_complete() end,
}
--]]
use {
"hrsh7th/nvim-cmp",
config = function() require("plugins.completion").config_cmp() end,

View File

@ -43,18 +43,4 @@ function M.config_cmp()
)
end
-- TODO: Some issue with tags completion maybe compe is better?
function M.config_complete()
vim.o.completeopt = "menuone,noinsert,noselect"
-- shortmess+=c
vim.g.completion_enable_auto_popup = 0
-- vim.api.nvim_set_keymap("i", "<C-Space>", "<Plug>(completion_trigger)", {silent=true})
vim.g.completion_enable_auto_paren = 1
vim.cmd([[
augroup completionPlugin
autocmd BufEnter * lua require('completion').on_attach()
augroup end
]])
end
return M

View File

@ -46,10 +46,6 @@ function M.config_lsp_ui()
end
local function default_attach(client, bufnr)
if utils.is_plugin_loaded("completion-nvim") then
require('completion').on_attach()
end
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end