neovim: remove checks for windows

This commit is contained in:
2023-07-30 00:04:46 +03:00
parent a8dcb34ddf
commit 1f6045c794
2 changed files with 2 additions and 9 deletions

View File

@@ -31,11 +31,6 @@ local kind_icons = {
TypeParameter = "",
}
local completion_trigger = "<C-space>"
if vim.fn.has("win32") == 1 then
completion_trigger = "<C-y>"
end
cmp.setup({
snippet = {
expand = function(args)
@@ -45,7 +40,7 @@ cmp.setup({
mapping = {
["<C-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
["<C-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }),
[completion_trigger] = cmp.mapping(function(fallback)
["<C-space>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.close()
else

View File

@@ -53,6 +53,4 @@ telescope.setup({
},
})
if vim.fn.has("win32") == 0 then
require("telescope").load_extension("fzf")
end
require("telescope").load_extension("fzf")