diff options
author | Adam <adam@adast.xyz> | 2022-05-31 11:40:54 +0200 |
---|---|---|
committer | Adam <adam@adast.xyz> | 2022-06-02 10:43:23 +0200 |
commit | 1e12fa57c2626fb0ee182764fa512920da5cb4dd (patch) | |
tree | 4793e381822c08f4cc682aa5f6078ae9ed64c81e /.config/nvim/lua/setup | |
parent | 709393dfba1adb5639750182749977a9977a5150 (diff) |
nvim: cleaner cmp lua 5.1 workaround
Diffstat (limited to '.config/nvim/lua/setup')
-rw-r--r-- | .config/nvim/lua/setup/nvim-cmp.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua index d3277d1..9e6ae05 100644 --- a/.config/nvim/lua/setup/nvim-cmp.lua +++ b/.config/nvim/lua/setup/nvim-cmp.lua @@ -1,6 +1,4 @@ -if not table.unpack then - table.unpack = unpack -end +table.unpack = table.unpack or unpack -- 5.1 compatibility local has_words_before = function() local line, col = table.unpack(vim.api.nvim_win_get_cursor(0)) |