Merge branch 'dev' into gentoo

nvim: fix completion
      remove unused function
This commit is contained in:
David JULIEN 2021-11-20 16:13:47 +01:00
commit 3e91d77a6a
No known key found for this signature in database
GPG Key ID: 4B388E8BD9D47382
2 changed files with 0 additions and 8 deletions

View File

@ -28,9 +28,5 @@ utils.map("n", "<leader>tl", "<cmd>Telescope live_grep<CR>")
utils.map("n", "<C-s>", "<cmd>lua require(\"astronomy\").toggle_variant()<CR>") utils.map("n", "<C-s>", "<cmd>lua require(\"astronomy\").toggle_variant()<CR>")
-- snippets -- snippets
utils.map("i", "<Tab>", "v:lua.tab_complete()", {expr = true})
utils.map("s", "<Tab>", "v:lua.tab_complete()", {expr = true})
utils.map("i", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
utils.map("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
utils.map("i", "<C-E>", "<Plug>luasnip-next-choice", {}) utils.map("i", "<C-E>", "<Plug>luasnip-next-choice", {})
utils.map("s", "<C-E>", "<Plug>luasnip-next-choice", {}) utils.map("s", "<C-E>", "<Plug>luasnip-next-choice", {})

View File

@ -7,10 +7,6 @@ local cmp = require("cmp")
local luasnip = require("luasnip") local luasnip = require("luasnip")
local cmp_autopairs = require('nvim-autopairs.completion.cmp') local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local check_backspace = function() local check_backspace = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0)) local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and return col ~= 0 and