Fix and add some plugins

* rest.nvim
* winshift.nvim
This commit is contained in:
Tyler Hallada 2022-10-21 13:39:52 -04:00
parent 5093691502
commit ad34eb82f3
5 changed files with 47 additions and 8 deletions

View File

@ -11,6 +11,11 @@ end
local packer_bootstrap = ensure_packer() local packer_bootstrap = ensure_packer()
-- https://github.com/wbthomason/packer.nvim/issues/202
require('packer').init({
max_jobs = 50
})
return require('packer').startup(function(use) return require('packer').startup(function(use)
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
@ -220,7 +225,6 @@ return require('packer').startup(function(use)
require('plugins.gruvbox') require('plugins.gruvbox')
end, end,
} }
use { 'shaunsingh/oxocarbon.nvim', run = './install.sh' }
use { use {
'akinsho/toggleterm.nvim', 'akinsho/toggleterm.nvim',
tag = '*', tag = '*',
@ -348,13 +352,12 @@ return require('packer').startup(function(use)
end, end,
} }
use { use {
"jose-elias-alvarez/null-ls.nvim", 'jose-elias-alvarez/null-ls.nvim',
config = function() config = function()
require("plugins.null-ls-nvim") require('plugins.null-ls-nvim')
end, end,
requires = { "nvim-lua/plenary.nvim" }, requires = { 'nvim-lua/plenary.nvim' },
} }
use 'dhruvasagar/vim-zoom'
use { use {
'rmagatti/auto-session', 'rmagatti/auto-session',
config = function() config = function()
@ -374,6 +377,19 @@ return require('packer').startup(function(use)
require('plugins.true-zen-nvim') require('plugins.true-zen-nvim')
end end
} }
use {
'sindrets/winshift.nvim',
config = function()
require('plugins.winshift-nvim')
end,
}
use {
'NTBBloodbath/rest.nvim',
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require('plugins.rest-nvim')
end,
}
use { use {
'folke/which-key.nvim', 'folke/which-key.nvim',
config = function() config = function()

View File

@ -3,5 +3,5 @@ vim.o.sessionoptions='blank,buffers,curdir,folds,help,tabpages,winsize,winpos,te
require('auto-session').setup({ require('auto-session').setup({
log_level = 'error', log_level = 'error',
auto_session_suppress_dirs = { '~/', '~/workspace', '~/Downloads', '/'}, auto_session_suppress_dirs = { '~/', '~/workspace', '~/Downloads', '/'},
auto_session_enable_last_session = true, auto_session_enable_last_session = false,
}) })

View File

@ -1,7 +1,12 @@
require('lualine').setup({ require('lualine').setup({
sections = { sections = {
lualine_c = { lualine_c = {
require('auto-session-library').current_session_name require('auto-session-library').current_session_name,
} {
'filename',
file_status = true, -- displays file status (readonly status, modified status)
path = 1, -- 0 = just filename, 1 = relative path, 2 = absolute path
},
},
} }
}) })

View File

@ -0,0 +1,7 @@
require('rest-nvim').setup({
skip_ssl_verification = true,
})
vim.keymap.set('n', '<leader>rd', [[<Plug>RestNvim]], { noremap = false, silent = true })
vim.keymap.set('n', '<leader>ry', [[<Plug>RestNvimPreview]], { noremap = false, silent = true })
vim.keymap.set('n', '<leader>ri', [[<Plug>RestNvimLast]], { noremap = false, silent = true })

View File

@ -0,0 +1,11 @@
require('winshift').setup()
vim.keymap.set('n', '<C-W><C-M>', [[<Cmd>WinShift<CR>]], { noremap = true, silent = true })
vim.keymap.set('n', '<C-W>m', [[<Cmd>WinShift<CR>]], { noremap = true, silent = true })
vim.keymap.set('n', '<C-W>X', [[<Cmd>WinShift swap<CR>]], { noremap = true, silent = true })
vim.keymap.set('n', '<C-M-H>', [[<Cmd>WinShift left<CR>]], { noremap = true, silent = true })
vim.keymap.set('n', '<C-M-J>', [[<Cmd>WinShift down<CR>]], { noremap = true, silent = true })
vim.keymap.set('n', '<C-M-K>', [[<Cmd>WinShift up<CR>]], { noremap = true, silent = true })
vim.keymap.set('n', '<C-M-L>', [[<Cmd>WinShift right<CR>]], { noremap = true, silent = true })