mirror of
https://github.com/zoriya/dotfiles.git
synced 2026-05-23 15:07:14 +00:00
Add gdfolds
This commit is contained in:
@@ -0,0 +1 @@
|
||||
1db66412-0a7d-4009-ac70-cbd1607db588
|
||||
@@ -49,8 +49,10 @@ return packer.startup(function(use)
|
||||
use "tpope/vim-repeat"
|
||||
use "tpope/vim-sleuth"
|
||||
use "nishigori/increment-activator"
|
||||
|
||||
use { "airblade/vim-rooter", config = function() vim.g.rooter_manual_only = 1 end }
|
||||
use { "Pocco81/AutoSave.nvim", config = function() require "autosave".setup() end }
|
||||
use { "AckslD/nvim-gfold.lua" }
|
||||
|
||||
|
||||
use "ggandor/lightspeed.nvim"
|
||||
@@ -65,8 +67,7 @@ return packer.startup(function(use)
|
||||
'stevearc/dressing.nvim',
|
||||
}
|
||||
use { "folke/trouble.nvim", requires = "kyazdani42/nvim-web-devicons" }
|
||||
use { "folke/todo-comments.nvim", requires = "nvim-lua/plenary.nvim" }
|
||||
use {'kevinhwang91/nvim-bqf', ft = 'qf'}
|
||||
use {'kevinhwang91/nvim-bqf'}
|
||||
use "folke/which-key.nvim"
|
||||
use "akinsho/toggleterm.nvim"
|
||||
use { "RRethy/vim-hexokinase", run = "make hexokinase", config = function()
|
||||
|
||||
@@ -80,6 +80,8 @@ keymap("x", "<leader>P", '"+P', opts)
|
||||
|
||||
keymap("t", "<C-W>", "<C-\\><C-N><C-W>", opts)
|
||||
|
||||
vim.cmd("autocmd FileType qf setl nolist")
|
||||
vim.cmd("syntax on")
|
||||
vim.cmd [[
|
||||
augroup highlight_yank
|
||||
autocmd!
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
local ok, gfold = pcall(require, "gfold")
|
||||
if not ok then
|
||||
return
|
||||
end
|
||||
|
||||
gfold.setup({
|
||||
picker = {
|
||||
on_select = function (repo)
|
||||
print(repo)
|
||||
if not repo then
|
||||
return
|
||||
end
|
||||
vim.cmd("cd " .. repo.path .. "|%bw|e .")
|
||||
print('toto')
|
||||
end
|
||||
}
|
||||
})
|
||||
@@ -1,2 +1,3 @@
|
||||
require "utils.gitsigns"
|
||||
require "utils.gfold"
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@ telescope.setup({
|
||||
mappings = {
|
||||
i = {
|
||||
["<esc>"] = actions.close,
|
||||
["<C-h>"] = function () vim.api.nvim_input("<C-w>") end,
|
||||
["<C-BS>"] = function () vim.api.nvim_input("<C-w>") end,
|
||||
["<A-k>"] = actions.move_selection_previous,
|
||||
["<A-j>"] = actions.move_selection_next,
|
||||
["<c-t>"] = require "trouble.providers.telescope".open_with_trouble
|
||||
|
||||
Reference in New Issue
Block a user