mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 08:37:34 +00:00
7afc5f9903
Also add a util for plugin load checks
35 lines
900 B
Lua
35 lines
900 B
Lua
-- TODO: Determine if keeping this
|
|
--[[
|
|
local function config_compe()
|
|
require("compe").setup{
|
|
enabled = true,
|
|
autocomplete = true,
|
|
source = {
|
|
path = true,
|
|
buffer = true,
|
|
calc = true,
|
|
tags = true,
|
|
spell = true,
|
|
nvim_lsp = true,
|
|
nvim_lua = true,
|
|
},
|
|
}
|
|
end
|
|
--]]
|
|
|
|
-- TODO: Some issue with tags completion maybe compe is better?
|
|
local function 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
|
|
|
|
config_complete()
|