Fix and add some plugins
* rest.nvim * winshift.nvim
This commit is contained in:
parent
23bbab50e9
commit
a7dcacdd91
@ -11,6 +11,11 @@ end
|
||||
|
||||
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)
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
@ -220,7 +225,6 @@ return require('packer').startup(function(use)
|
||||
require('plugins.gruvbox')
|
||||
end,
|
||||
}
|
||||
use { 'shaunsingh/oxocarbon.nvim', run = './install.sh' }
|
||||
use {
|
||||
'akinsho/toggleterm.nvim',
|
||||
tag = '*',
|
||||
@ -348,13 +352,12 @@ return require('packer').startup(function(use)
|
||||
end,
|
||||
}
|
||||
use {
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
'jose-elias-alvarez/null-ls.nvim',
|
||||
config = function()
|
||||
require("plugins.null-ls-nvim")
|
||||
require('plugins.null-ls-nvim')
|
||||
end,
|
||||
requires = { "nvim-lua/plenary.nvim" },
|
||||
requires = { 'nvim-lua/plenary.nvim' },
|
||||
}
|
||||
use 'dhruvasagar/vim-zoom'
|
||||
use {
|
||||
'rmagatti/auto-session',
|
||||
config = function()
|
||||
@ -374,6 +377,19 @@ return require('packer').startup(function(use)
|
||||
require('plugins.true-zen-nvim')
|
||||
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 {
|
||||
'folke/which-key.nvim',
|
||||
config = function()
|
||||
|
@ -3,5 +3,5 @@ vim.o.sessionoptions='blank,buffers,curdir,folds,help,tabpages,winsize,winpos,te
|
||||
require('auto-session').setup({
|
||||
log_level = 'error',
|
||||
auto_session_suppress_dirs = { '~/', '~/workspace', '~/Downloads', '/'},
|
||||
auto_session_enable_last_session = true,
|
||||
auto_session_enable_last_session = false,
|
||||
})
|
||||
|
@ -1,7 +1,12 @@
|
||||
require('lualine').setup({
|
||||
sections = {
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
|
7
lua/plugins/rest-nvim.lua
Normal file
7
lua/plugins/rest-nvim.lua
Normal 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 })
|
11
lua/plugins/winshift-nvim.lua
Normal file
11
lua/plugins/winshift-nvim.lua
Normal 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 })
|
Loading…
Reference in New Issue
Block a user