diff .chezmoitemplates/init.lua @ 795:bae3c2671374

chore: remove unused function
author zegervdv <zegervdv@me.com>
date Thu, 30 Mar 2023 05:12:28 +0000
parents 257ecaf271ee
children ca13a257ffe4
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua	Tue May 23 08:08:42 2023 +0200
+++ b/.chezmoitemplates/init.lua	Thu Mar 30 05:12:28 2023 +0000
@@ -269,11 +269,6 @@
       local cmp = require 'cmp'
       local luasnip = require 'luasnip'
 
-      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
-      end
-
       cmp.setup {
         snippet = {
           expand = function(args) luasnip.lsp_expand(args.body) end,