autoforamtted everything

This commit is contained in:
pr0c3550r 2023-02-25 23:44:08 +01:00
parent 1dc2308a1f
commit 622145d183
12 changed files with 184 additions and 195 deletions

View file

@ -6,4 +6,3 @@ return {
end,
},
}

View file

@ -62,4 +62,3 @@ return {
end,
},
}

View file

@ -61,7 +61,6 @@ return {
prefix = '', -- Could be '●', '■', 'x', '▎'
},
update_in_insert = true
})
-- LSP settings (for overriding per client)
@ -115,4 +114,3 @@ return {
end,
},
}

View file

@ -102,4 +102,3 @@ return {
end,
},
}

View file

@ -51,4 +51,3 @@ return {
end,
},
}

View file

@ -69,7 +69,8 @@ return {
local has_words_before = function()
unpack = unpack or table.unpack
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
return col ~= 0 and
vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end
local luasnip = require("luasnip")
@ -96,7 +97,6 @@ return {
return vim_item
end
},
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
@ -106,7 +106,6 @@ return {
-- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
end,
},
-- completion = {
-- autocomplete = false,
-- },
@ -115,7 +114,6 @@ return {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs( -4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
@ -162,7 +160,6 @@ return {
{ name = 'buffer' },
}, {
}),
-- Set configuration for specific filetype.
cmp.setup.filetype('gitcommit', {
sources = cmp.config.sources({
@ -171,7 +168,6 @@ return {
{ name = 'buffer' },
})
}),
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ '/', '?' }, {
mapping = cmp.mapping.preset.cmdline(),
@ -179,7 +175,6 @@ return {
{ 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(),