Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
794:02fbf26b9f16 | 795:bae3c2671374 |
---|---|
266 'hrsh7th/cmp-nvim-lsp-signature-help', | 266 'hrsh7th/cmp-nvim-lsp-signature-help', |
267 }, | 267 }, |
268 config = function() | 268 config = function() |
269 local cmp = require 'cmp' | 269 local cmp = require 'cmp' |
270 local luasnip = require 'luasnip' | 270 local luasnip = require 'luasnip' |
271 | |
272 local has_words_before = function() | |
273 local line, col = unpack(vim.api.nvim_win_get_cursor(0)) | |
274 return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match '%s' == nil | |
275 end | |
276 | 271 |
277 cmp.setup { | 272 cmp.setup { |
278 snippet = { | 273 snippet = { |
279 expand = function(args) luasnip.lsp_expand(args.body) end, | 274 expand = function(args) luasnip.lsp_expand(args.body) end, |
280 }, | 275 }, |