neovim: remove checks for windows
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -53,6 +53,4 @@ telescope.setup({
|
||||
},
|
||||
})
|
||||
|
||||
if vim.fn.has("win32") == 0 then
|
||||
require("telescope").load_extension("fzf")
|
||||
end
|
||||
require("telescope").load_extension("fzf")
|
||||
|
||||
Reference in New Issue
Block a user