Skip to content

Commit

Permalink
Remove asyncrun.vim, asynctasks.vim and telescope-asynctasks.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Oct 30, 2021
1 parent 7e4df06 commit 5249bee
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 30 deletions.
12 changes: 0 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@
path = pack/plugins/start/quickfix-reflector.vim
url = git@github.com:stefandtw/quickfix-reflector.vim.git
ignore = dirty
[submodule "pack/plugins/start/asyncrun.vim"]
path = pack/plugins/start/asyncrun.vim
url = git@github.com:skywind3000/asyncrun.vim.git
ignore = dirty
[submodule "pack/plugins/start/vim-cool"]
path = pack/plugins/start/vim-cool
url = git@github.com:romainl/vim-cool.git
Expand Down Expand Up @@ -142,14 +138,6 @@
path = pack/plugins/start/nvim-colorizer.lua
url = git@github.com:norcalli/nvim-colorizer.lua.git
ignore = dirty
[submodule "pack/plugins/start/asynctasks.vim"]
path = pack/plugins/start/asynctasks.vim
url = git@github.com:skywind3000/asynctasks.vim.git
ignore = dirty
[submodule "pack/plugins/start/telescope-asynctasks.nvim"]
path = pack/plugins/start/telescope-asynctasks.nvim
url = git@github.com:GustavoKatel/telescope-asynctasks.nvim.git
ignore = dirty
[submodule "pack/plugins/start/neovim-session-manager"]
path = pack/plugins/start/neovim-session-manager
url = git@github.com:Shatur/neovim-session-manager.git
Expand Down
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ vim.api.nvim_command('command! -complete=dir -nargs=* Terminal lua require("conf
-- Delete buffer with saving the current layout (except special buffers)
vim.api.nvim_command('command! -nargs=? -bang BDelete lua require("config_utils.buffers").close_current_buffer(<q-args>, <q-bang>)')

-- Toggle quickfix list
vim.api.nvim_command('command! Cftoggle lua require("config_utils.buffers").toggle_quickfix()')

-- Update all plugins and commit changes
vim.api.nvim_command('command! -nargs=? UpdatePlugins lua require("config_utils.updater").update_plugins(<args>)')

Expand Down Expand Up @@ -152,6 +155,8 @@ vim.api.nvim_set_keymap('t', '<C-q>', '<Esc><Cmd>BDelete<CR>', { noremap = true
vim.api.nvim_set_keymap('', '<C-x>', '<Cmd>w<CR><Cmd>BDelete<CR>', { noremap = true })
vim.api.nvim_set_keymap('i', '<C-x>', '<Esc><Cmd>w<CR><Cmd>BDelete<CR>', { noremap = true })
vim.api.nvim_set_keymap('', '<Backspace>', '<Cmd>buffer #<CR>', { noremap = true })
vim.api.nvim_set_keymap('', '<F3>', '<Cmd>Cftoggle<CR>', { noremap = true })
vim.api.nvim_set_keymap('i', '<F3>', '<Cmd>Cftoggle<CR>', { noremap = true })

-- Tab control
vim.api.nvim_set_keymap('', '<A-q>', '<Cmd>tabclose<CR>', { noremap = true })
Expand Down
10 changes: 10 additions & 0 deletions lua/config_utils/buffers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,14 @@ function buffers.close_current_buffer(buffer, force)
vim.api.nvim_command('bdelete' .. force .. ' ' .. buffer)
end

function buffers.toggle_quickfix()
for _, win in pairs(vim.fn.getwininfo()) do
if win.quickfix == 1 then
vim.api.nvim_command('cclose')
return
end
end
vim.api.nvim_command('copen')
end

return buffers
1 change: 0 additions & 1 deletion pack/plugins/start/asyncrun.vim
Submodule asyncrun.vim deleted from 168d6b
1 change: 0 additions & 1 deletion pack/plugins/start/asynctasks.vim
Submodule asynctasks.vim deleted from 5bf9e3
1 change: 0 additions & 1 deletion pack/plugins/start/telescope-asynctasks.nvim
Submodule telescope-asynctasks.nvim deleted from 80bd65
12 changes: 0 additions & 12 deletions plugin/asyncrun.lua

This file was deleted.

3 changes: 0 additions & 3 deletions plugin/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ telescope.setup({
})

telescope.load_extension('dap')
telescope.load_extension('asynctasks')
telescope.load_extension('cmake')
telescope.load_extension('sessions')

Expand All @@ -78,8 +77,6 @@ vim.api.nvim_set_keymap('', '<A-c>', '<Cmd>Telescope git_commits<CR>', { noremap
vim.api.nvim_set_keymap('i', '<A-c>', '<Cmd>Telescope git_commits<CR>', { noremap = true })
vim.api.nvim_set_keymap('', '<A-s>', '<Cmd>Telescope git_stash<CR>', { noremap = true })
vim.api.nvim_set_keymap('i', '<A-s>', '<Cmd>Telescope git_stash<CR>', { noremap = true })
vim.api.nvim_set_keymap('', '<A-t>', '<Cmd>Telescope asynctasks all theme=get_dropdown<CR>', { noremap = true })
vim.api.nvim_set_keymap('i', '<A-t>', '<Cmd>Telescope asynctasks all theme=get_dropdown<CR>', { noremap = true })
vim.api.nvim_set_keymap('', '<A-p>', '<Cmd>Telescope sessions save_current=true<CR>', { noremap = true })
vim.api.nvim_set_keymap('i', '<A-p>', '<Cmd>Telescope sessions save_current=true<CR>', { noremap = true })
if vim.fn.has('win32') == 1 then
Expand Down

0 comments on commit 5249bee

Please sign in to comment.