fix auto cmp for cmdline
This commit is contained in:
parent
95c5e33aef
commit
cb2dfbb709
|
@ -4,8 +4,8 @@ if not vim.loop.fs_stat(lazypath) then
|
|||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"--single-branch",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
|
|
@ -18,7 +18,7 @@ require 'lspconfig'.pyright.setup {
|
|||
-- on_attach = on_attach
|
||||
-- }
|
||||
|
||||
require 'lspconfig'.sumneko_lua.setup {
|
||||
require 'lspconfig'.lua_ls.setup {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
|
@ -92,13 +92,13 @@ cmp.setup.cmdline({ '/', '?' }, {
|
|||
{ name = 'buffer' }
|
||||
}
|
||||
})
|
||||
|
||||
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
})
|
||||
})
|
||||
--
|
||||
-- -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
||||
-- cmp.setup.cmdline(':', {
|
||||
-- mapping = cmp.mapping.preset.cmdline(),
|
||||
-- sources = cmp.config.sources({
|
||||
-- { name = 'path' }
|
||||
-- }, {
|
||||
-- { name = 'cmdline' }
|
||||
-- })
|
||||
-- })
|
||||
|
|
Loading…
Reference in New Issue