Fix formatting

This commit is contained in:
2023-09-15 22:43:25 +02:00
parent a667ad2c7f
commit b5c71a1e02
+6 -3
View File
@@ -19,7 +19,10 @@
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 cmp = require("cmp")
@@ -124,8 +127,8 @@ cmp.setup({
sources = {
{ name = "nvim_lsp", },
{ name = "luasnip", },
{ name = 'nvim_lsp_signature_help' },
{ name = 'nvim_lua' },
{ name = "nvim_lsp_signature_help", },
{ name = "nvim_lua", },
{ name = "path", },
-- { name = 'buffer' },
},