chore(nvim): clean some config files
This commit is contained in:
parent
6e2f1b370c
commit
e37a102315
2 changed files with 0 additions and 33 deletions
|
@ -44,7 +44,6 @@ cmp.setup({
|
||||||
-- REQUIRED - you must specify a snippet engine
|
-- REQUIRED - you must specify a snippet engine
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
snippy.expand_snippet(args.body)
|
snippy.expand_snippet(args.body)
|
||||||
--vim.fn["vsnip#anonymous"](args.body)
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
window = {
|
window = {
|
||||||
|
@ -85,33 +84,10 @@ cmp.setup({
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
|
|
||||||
--[[
|
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
|
||||||
if cmp.visible() then
|
|
||||||
cmp.select_next_item()
|
|
||||||
elseif vim.fn["vsnip#available"](1) == 1 then
|
|
||||||
feedkey("<Plug>(vsnip-expand-or-jump)", "")
|
|
||||||
elseif has_words_before() then
|
|
||||||
cmp.complete()
|
|
||||||
else
|
|
||||||
fallback() -- The fallback function sends a already mapped key. In this case, it's probably `<Tab>`.
|
|
||||||
end
|
|
||||||
end, { "i", "s" }),
|
|
||||||
|
|
||||||
["<S-Tab>"] = cmp.mapping(function()
|
|
||||||
if cmp.visible() then
|
|
||||||
cmp.select_prev_item()
|
|
||||||
elseif vim.fn["vsnip#jumpable"](-1) == 1 then
|
|
||||||
feedkey("<Plug>(vsnip-jump-prev)", "")
|
|
||||||
end
|
|
||||||
end, { "i", "s" }),
|
|
||||||
]]--
|
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'snippy' },
|
{ name = 'snippy' },
|
||||||
--{ name = 'vsnip' },
|
|
||||||
}, {
|
}, {
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
}),
|
}),
|
||||||
|
@ -124,7 +100,6 @@ cmp.setup({
|
||||||
buffer = "[Buffer]",
|
buffer = "[Buffer]",
|
||||||
nvim_lsp = "[LSP]",
|
nvim_lsp = "[LSP]",
|
||||||
snippy = "[Snip]",
|
snippy = "[Snip]",
|
||||||
vsnip = "[Snip]",
|
|
||||||
})[entry.source.name]
|
})[entry.source.name]
|
||||||
return vim_item
|
return vim_item
|
||||||
end
|
end
|
||||||
|
@ -147,9 +122,3 @@ cmp.setup.cmdline(':', {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Setup lspconfig.
|
|
||||||
-- local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
|
||||||
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
|
|
||||||
-- require('lspconfig')['<YOUR_LSP_SERVER>'].setup {
|
|
||||||
-- capabilities = capabilities
|
|
||||||
-- }
|
|
||||||
|
|
|
@ -50,8 +50,6 @@ return require('packer').startup(function(use)
|
||||||
-- Snippets
|
-- Snippets
|
||||||
use 'dcampos/nvim-snippy'
|
use 'dcampos/nvim-snippy'
|
||||||
use 'dcampos/cmp-snippy'
|
use 'dcampos/cmp-snippy'
|
||||||
--use 'hrsh7th/cmp-vsnip'
|
|
||||||
--use 'hrsh7th/vim-vsnip'
|
|
||||||
|
|
||||||
-- VCS integration
|
-- VCS integration
|
||||||
use {
|
use {
|
||||||
|
|
Loading…
Add table
Reference in a new issue