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