Remove unneeded parantheses and commas

This commit is contained in:
Sam A. 2023-05-11 19:08:30 +02:00
parent 800248f00f
commit 1400fc6aa3
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -60,7 +60,7 @@ vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, {
})
-- appearance
vim.cmd.highlight({ 'Normal', 'guibg=NONE', 'ctermbg=NONE' })
vim.cmd.highlight { 'Normal', 'guibg=NONE', 'ctermbg=NONE' }
vim.g.background = 'dark'
-- lightline config
@ -105,7 +105,7 @@ cmp.setup {
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
select = true
},
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
@ -124,12 +124,12 @@ cmp.setup {
else
fallback()
end
end, { 'i', 's' }),
end, { 'i', 's' })
},
sources = {
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
},
{ name = 'luasnip' }
}
}
cmp.setup.cmdline('/', {
@ -152,6 +152,7 @@ require('mason').setup {}
require('mason-lspconfig').setup {
automatic_installation = true
}
local lsp = require('lspconfig')
local capabilities = require('cmp_nvim_lsp').default_capabilities()