From 2e911bf4bacda76a60da0ec536811e05e24dd037 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 14 Aug 2024 00:15:03 +0200 Subject: [PATCH] Update .config/nvim/lua/plugins/lsp.lua --- dot_config/nvim/lua/plugins/lsp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua index 11ae9d3..d9df784 100644 --- a/dot_config/nvim/lua/plugins/lsp.lua +++ b/dot_config/nvim/lua/plugins/lsp.lua @@ -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