neovim: remove checks for windows
This commit is contained in:
@@ -31,11 +31,6 @@ local kind_icons = {
|
|||||||
TypeParameter = "",
|
TypeParameter = "",
|
||||||
}
|
}
|
||||||
|
|
||||||
local completion_trigger = "<C-space>"
|
|
||||||
if vim.fn.has("win32") == 1 then
|
|
||||||
completion_trigger = "<C-y>"
|
|
||||||
end
|
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
@@ -45,7 +40,7 @@ cmp.setup({
|
|||||||
mapping = {
|
mapping = {
|
||||||
["<C-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
|
["<C-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
|
||||||
["<C-k>"] = cmp.mapping.select_prev_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
|
if cmp.visible() then
|
||||||
cmp.close()
|
cmp.close()
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -53,6 +53,4 @@ telescope.setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if vim.fn.has("win32") == 0 then
|
require("telescope").load_extension("fzf")
|
||||||
require("telescope").load_extension("fzf")
|
|
||||||
end
|
|
||||||
|
|||||||
Reference in New Issue
Block a user