Formatting
This commit is contained in:
parent
20b9e02adb
commit
1fe23703f4
@ -41,7 +41,7 @@ local lsp_symbols = {
|
|||||||
local status, cmp = pcall(require, "cmp")
|
local status, cmp = pcall(require, "cmp")
|
||||||
if (not status) then return end
|
if (not status) then return end
|
||||||
|
|
||||||
cmp.setup{
|
cmp.setup {
|
||||||
completion = {
|
completion = {
|
||||||
completeopt = 'menuone,noinsert,noselect',
|
completeopt = 'menuone,noinsert,noselect',
|
||||||
},
|
},
|
||||||
@ -66,7 +66,7 @@ cmp.setup{
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
mapping = {
|
mapping = {
|
||||||
["<cr>"] = cmp.mapping.confirm({select = false, behavior = cmp.ConfirmBehavior.Replace}),
|
["<cr>"] = cmp.mapping.confirm({ select = false, behavior = cmp.ConfirmBehavior.Replace }),
|
||||||
-- ["<Tab>"] = cmp.mapping.confirm({select = true, behavior = cmp.ConfirmBehavior.Insert}),
|
-- ["<Tab>"] = cmp.mapping.confirm({select = true, behavior = cmp.ConfirmBehavior.Insert}),
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
@ -123,8 +123,7 @@ cmp.setup.cmdline('/', {
|
|||||||
cmp.setup.cmdline(':', {
|
cmp.setup.cmdline(':', {
|
||||||
mapping = cmp.mapping.preset.cmdline(),
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'path' }
|
{ name = 'path' },
|
||||||
}, {
|
|
||||||
{ name = 'cmdline' }
|
{ name = 'cmdline' }
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -97,7 +97,9 @@ return packer.startup(function(use)
|
|||||||
}
|
}
|
||||||
|
|
||||||
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
|
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
|
||||||
use { "nvim-telescope/telescope-file-browser.nvim" }
|
use {
|
||||||
|
"nvim-telescope/telescope-file-browser.nvim"
|
||||||
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
'lervag/vimtex',
|
'lervag/vimtex',
|
||||||
|
Loading…
Reference in New Issue
Block a user