diff --git a/neovim/lua/plugins.lua b/neovim/lua/plugins.lua index f166e0c..85d3fc0 100644 --- a/neovim/lua/plugins.lua +++ b/neovim/lua/plugins.lua @@ -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, diff --git a/neovim/lua/plugins/completion.lua b/neovim/lua/plugins/completion.lua index e1befd9..e5036e0 100644 --- a/neovim/lua/plugins/completion.lua +++ b/neovim/lua/plugins/completion.lua @@ -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", "", "(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 diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index 17fd607..b238dc6 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -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