mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2025-03-05 00:50:21 +01:00
switch to pears
This commit is contained in:
parent
0a5458ddd4
commit
7171685ebe
4 changed files with 14 additions and 18 deletions
|
@ -29,14 +29,6 @@ function shift_tab_completion()
|
|||
end
|
||||
end
|
||||
|
||||
function cr_completion()
|
||||
if vim.fn.pumvisible() > 0 then
|
||||
return vim.fn["coc#_select_confirm"]()
|
||||
else
|
||||
return escape_keycode("<CR>")
|
||||
end
|
||||
end
|
||||
|
||||
-- Getting stuck in ~~vim~~ terminal
|
||||
map("t", "<Esc>", "<C-\\><C-n>", {})
|
||||
|
||||
|
@ -59,7 +51,6 @@ map("n", "*d", "\"*d", { noremap = true })
|
|||
|
||||
map("i", "<TAB>", "v:lua.tab_completion()", { expr = true })
|
||||
map("i", "<S-TAB>", "v:lua.shift_tab_completion()", { expr = true })
|
||||
map("i", "<CR>", "v:lua.cr_completion()", { expr = true })
|
||||
|
||||
-- symbol renaming
|
||||
map("n", "-n", "<Plug>(coc-rename)", { silent = true })
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
local g = vim.g
|
||||
|
||||
g.AutoPairsShortcutFastWrap = "<C-e>"
|
||||
g.AutoPairsShortcutJump = "<C-n>"
|
||||
|
10
.config/nvim/lua/pluginconf/nvim_pears.lua
Normal file
10
.config/nvim/lua/pluginconf/nvim_pears.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
require "pears".setup(function(conf)
|
||||
conf.on_enter(function(pears_handle)
|
||||
if vim.fn.pumvisible() == 1 then
|
||||
return vim.fn["coc#_select_confirm"]()
|
||||
else
|
||||
pears_handle()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
|
@ -21,10 +21,6 @@ return require("packer").startup(function(use)
|
|||
"dracula/vim",
|
||||
as = "dracula"
|
||||
}
|
||||
use {
|
||||
"jiangmiao/auto-pairs",
|
||||
config = pconf("autopairs")
|
||||
}
|
||||
use "vimwiki/vimwiki"
|
||||
use {
|
||||
"glacambre/firenvim",
|
||||
|
@ -75,5 +71,9 @@ return require("packer").startup(function(use)
|
|||
config = pconf("telescope")
|
||||
}
|
||||
use "gluon-lang/vim-gluon"
|
||||
use {
|
||||
"steelsojka/pears.nvim",
|
||||
config = pconf("nvim_pears")
|
||||
}
|
||||
end)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue