Fix configs
This commit is contained in:
parent
6fd034af75
commit
6c62bafb43
|
@ -229,12 +229,6 @@ in
|
|||
command = "kitty ${pkgs.haskell-dialog}/bin/hotkeys ${pkgs.writeText "hotkeys.yaml" (builtins.toJSON hotkeys)}";
|
||||
name = "Hotkeys";
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clear-notifications" =
|
||||
{
|
||||
binding = "<Super>r";
|
||||
command = "dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.panel.statusArea.dateMenu._messageList._sectionList.get_children().forEach(s => s.clear());'";
|
||||
name = "Clear Notifications";
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/standby" = {
|
||||
binding = "<Super>F5";
|
||||
command = "systemctl suspend";
|
||||
|
@ -250,7 +244,6 @@ in
|
|||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/hotkeys/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/standby/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clear-notifications/"
|
||||
];
|
||||
next = [ "<Primary><Shift>dollar" ];
|
||||
play = [ "<Primary><Shift>guillemotleft" ];
|
||||
|
|
|
@ -190,23 +190,23 @@ nnoremap <a-right> :bn<CR>
|
|||
inoremap <a-left> <ESC>:bp<CR>
|
||||
inoremap <a-right> <ESC>:bn<CR>
|
||||
|
||||
let $FZF_DEFAULT_OPTS .= '--border --layout=reverse'
|
||||
function! FloatingFZF()
|
||||
let width = float2nr(&columns * 0.9)
|
||||
let height = float2nr(&lines * 0.6)
|
||||
let opts = { 'relative': 'editor',
|
||||
\ 'row': (&lines - height) / 2,
|
||||
\ 'col': (&columns - width) / 2,
|
||||
\ 'width': width,
|
||||
\ 'height': height,
|
||||
\ 'style': 'minimal'
|
||||
\}
|
||||
|
||||
let win = nvim_open_win(nvim_create_buf(v:false, v:true), v:true, opts)
|
||||
call setwinvar(win, '&winhighlight', 'NormalFloat:TabLine')
|
||||
endfunction
|
||||
|
||||
let g:fzf_layout = { 'window': 'call FloatingFZF()' }
|
||||
"let $FZF_DEFAULT_OPTS .= '--border --layout=reverse'
|
||||
"function! FloatingFZF()
|
||||
" let width = float2nr(&columns * 0.9)
|
||||
" let height = float2nr(&lines * 0.6)
|
||||
" let opts = { 'relative': 'editor',
|
||||
" \ 'row': (&lines - height) / 2,
|
||||
" \ 'col': (&columns - width) / 2,
|
||||
" \ 'width': width,
|
||||
" \ 'height': height,
|
||||
" \ 'style': 'minimal'
|
||||
" \}
|
||||
"
|
||||
" let win = nvim_open_win(nvim_create_buf(v:false, v:true), v:true, opts)
|
||||
" call setwinvar(win, '&winhighlight', 'NormalFloat:TabLine')
|
||||
"endfunction
|
||||
"
|
||||
"let g:fzf_layout = { 'window': 'call FloatingFZF()' }
|
||||
|
||||
" Use <tab> for select selections ranges, needs server support, like: coc-tsserver, coc-python
|
||||
nmap <silent> <TAB> <Plug>(coc-range-select)
|
||||
|
|
Loading…
Reference in a new issue