get rid of unused functions, and variables
This commit is contained in:
@ -1,10 +1,3 @@
|
|||||||
local function has_words_before()
|
|
||||||
unpack = unpack or table.unpack
|
|
||||||
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
|
|
||||||
|
|
||||||
return { 'hrsh7th/nvim-cmp',
|
return { 'hrsh7th/nvim-cmp',
|
||||||
requires = {
|
requires = {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
@ -90,7 +83,6 @@ return { 'hrsh7th/nvim-cmp',
|
|||||||
local menu_icon = {
|
local menu_icon = {
|
||||||
nvim_lsp = 'λ',
|
nvim_lsp = 'λ',
|
||||||
nvim_lua = 'v',
|
nvim_lua = 'v',
|
||||||
calc = '+',
|
|
||||||
luasnip = '%',
|
luasnip = '%',
|
||||||
buffer = '@',
|
buffer = '@',
|
||||||
path = '#'
|
path = '#'
|
||||||
|
Reference in New Issue
Block a user