Merge branch 'dev' into gentoo

nvim: fix completion
      remove unused function
gentoo
David JULIEN 10 months ago
commit 3e91d77a6a
Signed by: swytch
GPG Key ID: 4B388E8BD9D47382
  1. 4
      .config/nvim/lua/maps.lua
  2. 4
      .config/nvim/lua/plugin/cmp.lua

@ -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>")
-- 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("s", "<C-E>", "<Plug>luasnip-next-choice", {})

@ -7,10 +7,6 @@ local cmp = require("cmp")
local luasnip = require("luasnip")
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 line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and

Loading…
Cancel
Save