mirror of
https://github.com/webgefrickel/dotfiles
synced 2024-11-19 03:25:33 +00:00
Full screen
This commit is contained in:
parent
93b858a882
commit
1f9db07f43
@ -65,6 +65,18 @@ local function moveMouse()
|
||||
hs.mouse.absolutePosition(pt)
|
||||
end
|
||||
|
||||
local function fullSize()
|
||||
local w = win.focusedWindow()
|
||||
local f = w:frame()
|
||||
local max = w:screen():frame()
|
||||
|
||||
f.x = max.x
|
||||
f.y = max.y
|
||||
f.w = max.w
|
||||
f.h = max.h
|
||||
w:setFrame(f)
|
||||
end
|
||||
|
||||
-- Window management
|
||||
--------------------
|
||||
|
||||
@ -83,7 +95,7 @@ hotkey.bind(hyper, 'n', function() layout.apply(layoutSingle) end)
|
||||
hotkey.bind(hyper, 'p', function() layout.apply(layoutDouble) end)
|
||||
|
||||
-- Moving window around / navigating windows
|
||||
hotkey.bind(hyper, 'z', function() win.focusedWindow():toggleFullScreen(); moveMouse() end)
|
||||
hotkey.bind(hyper, 'z', function() fullSize(); moveMouse() end)
|
||||
hotkey.bind(hyper, '[', function() win.focusedWindow():moveOneScreenNorth(); moveMouse() end)
|
||||
hotkey.bind(hyper, ']', function() win.focusedWindow():moveOneScreenSouth(); moveMouse() end)
|
||||
hotkey.bind(hyper, 'h', function() win.focusedWindow():focusWindowWest(); moveMouse() end)
|
||||
|
@ -7,7 +7,6 @@ Plug 'rktjmp/lush.nvim'
|
||||
Plug 'npxbr/gruvbox.nvim'
|
||||
|
||||
" Plugins
|
||||
Plug 'akinsho/nvim-bufferline.lua'
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
Plug 'easymotion/vim-easymotion'
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
@ -27,6 +26,10 @@ Plug 'wellle/targets.vim'
|
||||
Plug 'wellle/tmux-complete.vim'
|
||||
Plug 'wincent/terminus'
|
||||
|
||||
" Stuff to try out...
|
||||
Plug 'akinsho/nvim-bufferline.lua'
|
||||
Plug 'folke/which-key.nvim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" load the default config and mappings
|
||||
|
@ -23,6 +23,11 @@ require('bufferline').setup {
|
||||
}
|
||||
EOF
|
||||
|
||||
" which key
|
||||
lua << EOF
|
||||
require('which-key').setup {}
|
||||
EOF
|
||||
|
||||
nnoremap <silent> <leader>, :BufferLinePick<cr>
|
||||
nnoremap <silent> <leader>] :BufferLineCycleNext<CR>
|
||||
nnoremap <silent> <leader>[ :BufferLineCyclePrev<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user