Update .config/nvim/lua/plugins/lsp.lua

This commit is contained in:
Anthony Rodriguez 2024-08-14 00:15:03 +02:00
parent 4627e18006
commit 2e911bf4ba

View file

@ -39,7 +39,8 @@ return {
local has_words_before = function()
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
vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") ==
nil
end
-- Setup cmp with options