Fix formatting
This commit is contained in:
@@ -19,7 +19,10 @@
|
|||||||
local has_words_before = function ()
|
local has_words_before = function ()
|
||||||
unpack = unpack or table.unpack
|
unpack = unpack or table.unpack
|
||||||
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
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
|
end
|
||||||
|
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
@@ -124,8 +127,8 @@ cmp.setup({
|
|||||||
sources = {
|
sources = {
|
||||||
{ name = "nvim_lsp", },
|
{ name = "nvim_lsp", },
|
||||||
{ name = "luasnip", },
|
{ name = "luasnip", },
|
||||||
{ name = 'nvim_lsp_signature_help' },
|
{ name = "nvim_lsp_signature_help", },
|
||||||
{ name = 'nvim_lua' },
|
{ name = "nvim_lua", },
|
||||||
{ name = "path", },
|
{ name = "path", },
|
||||||
-- { name = 'buffer' },
|
-- { name = 'buffer' },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user