Update .config/nvim/lua/plugins/lsp.lua
This commit is contained in:
parent
4627e18006
commit
2e911bf4ba
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ return {
|
||||||
local has_words_before = function()
|
local has_words_before = function()
|
||||||
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
|
return col ~= 0 and
|
||||||
vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") ==
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Setup cmp with options
|
-- Setup cmp with options
|
||||||
|
|
Loading…
Reference in a new issue