more lua style

This commit is contained in:
Oliver Hartmann 2022-04-02 00:12:49 +02:00
parent ab1de6c1de
commit 2425d5f29d
3 changed files with 2 additions and 4 deletions

View File

@ -68,4 +68,3 @@ utils.map('n', '<C-w>', ':bd<CR>')
-- <Tab> to navigate the completion menu -- <Tab> to navigate the completion menu
utils.map('i', '<S-Tab>', 'pumvisible() ? "\\<C-p>" : "\\<Tab>"', { expr = true }) utils.map('i', '<S-Tab>', 'pumvisible() ? "\\<C-p>" : "\\<Tab>"', { expr = true })
utils.map('i', '<Tab>', 'pumvisible() ? "\\<C-n>" : "\\<Tab>"', { expr = true }) utils.map('i', '<Tab>', 'pumvisible() ? "\\<C-n>" : "\\<Tab>"', { expr = true })

View File

@ -11,7 +11,6 @@ local check_back_space = function()
end end
cmp.setup({ cmp.setup({
formatting = { formatting = {
format = function(entry, vim_item) format = function(entry, vim_item)
-- fancy icons and a name of kind -- fancy icons and a name of kind
@ -87,7 +86,7 @@ cmp.setup({
comparators = { comparators = {
cmp.config.compare.offset, cmp.config.compare.offset,
cmp.config.compare.exact, cmp.config.compare.exact,
require("clangd_extensions.cmp_scores"), require('clangd_extensions.cmp_scores'),
cmp.config.compare.recently_used, cmp.config.compare.recently_used,
cmp.config.compare.kind, cmp.config.compare.kind,
cmp.config.compare.sort_text, cmp.config.compare.sort_text,

View File

@ -48,6 +48,6 @@ require('neo-tree').setup({
hide_dotfiles = false, hide_dotfiles = false,
hide_gitignored = false, hide_gitignored = false,
}, },
} },
}) })
utils.map('n', '\\', '<cmd>Neotree reveal<cr>') utils.map('n', '\\', '<cmd>Neotree reveal<cr>')