mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:37:33 +00:00
Remove completion-nvim
This commit is contained in:
parent
eca378ce64
commit
46cfa8337e
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user