From 5742905cee2309da2bbb99d170db91e10874863a Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Tue, 4 Jun 2024 10:36:39 -0500 Subject: [PATCH] config lazydocker for mac oh look my first is_darwin check --- config.ini | 9 +++++++-- kitty/kitty.conf | 1 + prefs/host.py | 7 +++++++ vimrc | 3 --- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/config.ini b/config.ini index 53349aa..b6a2327 100644 --- a/config.ini +++ b/config.ini @@ -98,10 +98,15 @@ files: cargo-config.toml > .cargo/config.toml when: host.has('htop') files: .config/htop/htoprc -[home lazydocker] -when: host.has('lazydocker') +[home lazydocker-linux] +when: host.is_linux and host.has('lazydocker') files: .config/lazydocker/config.yml +[home lazydocker-mac] +when: host.is_darwin and host.has('lazydocker') +files: + .config/lazydocker/config.yml > Library/Application Support/jesseduffield/lazydocker/config.yml + [home screenrc] when: host.has('screen') files: .screenrc diff --git a/kitty/kitty.conf b/kitty/kitty.conf index f04da1e..d6e7e24 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -2216,6 +2216,7 @@ macos_traditional_fullscreen yes # map kitty_mod+f1 show_kitty_doc overview #: Toggle fullscreen +map cmd+enter toggle_fullscreen # map kitty_mod+f11 toggle_fullscreen # map ctrl+cmd+f toggle_fullscreen diff --git a/prefs/host.py b/prefs/host.py index e685fdb..2a8304d 100644 --- a/prefs/host.py +++ b/prefs/host.py @@ -37,6 +37,13 @@ class Host: """ return platform.system() == 'Windows' + @cached_property + def is_darwin(self): + """ + true if we're on MacOS + """ + return platform.system() == 'Darwin' + @cached_property def is_admin(self): """ diff --git a/vimrc b/vimrc index fdc0953..b992fbc 100644 --- a/vimrc +++ b/vimrc @@ -10,9 +10,6 @@ if has('nvim') && has('win32') endif call plug#begin() - " if !has('nvim') - " Plug 'dense-analysis/ale' " asynchronous linting engine - " endif Plug 'tpope/vim-fugitive' " integration with the git cli Plug 'tpope/vim-surround' " edits surrounding quotes and parens and the like Plug 'tpope/vim-rails' " rails project management stuff