summaryrefslogtreecommitdiff
path: root/lua/lvim/core/cmp.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-08-01 09:54:53 +0200
committerkylo252 <[email protected]>2022-08-01 09:54:53 +0200
commita1ffa3c945a000cc39fb3ee97573e2c37be68583 (patch)
tree4283491c631be9adfc29a2f3351a020a6b6f6a20 /lua/lvim/core/cmp.lua
parent71de455e7886a0085f9c32059a3327217f9833d7 (diff)
parent1d9b85a50edd5ef643cf81974e92a5121645de19 (diff)
Merge branch 'rolling'1.1.4
Diffstat (limited to 'lua/lvim/core/cmp.lua')
-rw-r--r--lua/lvim/core/cmp.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua
index baf6279b..942a72f6 100644
--- a/lua/lvim/core/cmp.lua
+++ b/lua/lvim/core/cmp.lua
@@ -22,20 +22,6 @@ local function feedkeys(key, mode)
end
M.methods.feedkeys = feedkeys
----checks if emmet_ls is available and active in the buffer
----@return boolean true if available, false otherwise
-local is_emmet_active = function()
- local clients = vim.lsp.buf_get_clients()
-
- for _, client in pairs(clients) do
- if client.name == "emmet_ls" then
- return true
- end
- end
- return false
-end
-M.methods.is_emmet_active = is_emmet_active
-
---when inside a snippet, seeks to the nearest luasnip field if possible, and checks if it is jumpable
---@param dir number 1 for forward, -1 for backward; defaults to 1
---@return boolean true if a jumpable luasnip field is found while inside a snippet
@@ -257,7 +243,6 @@ M.config = function()
["<C-j>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
- -- TODO: potentially fix emmet nonsense
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
@@ -267,8 +252,6 @@ M.config = function()
luasnip.jump(1)
elseif check_backspace() then
fallback()
- elseif is_emmet_active() then
- return vim.fn["cmp#complete"]()
else
fallback()
end