From e9abc1afd015a2fe561a9acbc6bf73905e2ade03 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 29 May 2021 22:51:54 -0500 Subject: [PATCH] Little things --- common/neovim/.gitignore | 1 + common/neovim/coc-settings.json | 9 +++++++++ common/neovim/init.vim | 9 +++++++++ common/tmux/conf | 6 +++--- host/desktop/bin/reboot-to-windows | 3 ++- os/linux/sway/config | 1 + 6 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 common/neovim/coc-settings.json diff --git a/common/neovim/.gitignore b/common/neovim/.gitignore index 9f28ab9..e103c94 100644 --- a/common/neovim/.gitignore +++ b/common/neovim/.gitignore @@ -3,3 +3,4 @@ !/init.vim !/nvim_lsp.lua !/ftplugin +!/coc-settings.json diff --git a/common/neovim/coc-settings.json b/common/neovim/coc-settings.json new file mode 100644 index 0000000..5f10bc3 --- /dev/null +++ b/common/neovim/coc-settings.json @@ -0,0 +1,9 @@ +{ + "coc.preferences.formatOnSaveFiletypes": ["ex", "exs", "elixir"], + "diagnostic-languageserver.filetypes": { + "elixir": ["mix_credo", "mix_credo_compile"], + "eelixir": ["mix_credo", "mix_credo_compile"] + }, + "elixir.pathToElixirLS": "~/.elixir-ls/release/language_server.sh", + "codeLens.enable": true +} diff --git a/common/neovim/init.vim b/common/neovim/init.vim index e39342d..b42b4ed 100644 --- a/common/neovim/init.vim +++ b/common/neovim/init.vim @@ -8,6 +8,7 @@ if empty(glob($vimdir.'/autoload/plug.vim')) autocmd VimEnter * PlugInstall --sync | source $vimdir.'init.vim' endif +" let g:coc_global_extensions = ['coc-elixir', 'coc-diagnostic'] let g:completion_enable_auto_popup = 0 let g:indent_guide_auto_colors = 1 let g:indent_guides_enable_on_vim_startup = 1 @@ -246,3 +247,11 @@ augroup END set statusline=%!StatusLine() imap (completion_trigger) + +if filereadable(expand($ENV_PATH.'/init.vim')) + source "$ENV_PATH/init.vim" +endif + +for f in glob($ENV_PATH.'/*/init.d.vim', 0, 1) + source "$f" +endfor diff --git a/common/tmux/conf b/common/tmux/conf index d08d662..8414093 100644 --- a/common/tmux/conf +++ b/common/tmux/conf @@ -35,10 +35,10 @@ set -g status-interval 5 set -g status-left-length 50 set -g window-status-style "fg=colour8 bg=colour0" set -g window-status-current-style "fg=colour8 bg=colour0" -set -g window-status-format " #I" +set -g window-status-format " #W" set -g window-status-separator "" -set -g window-status-current-format " #I" -set -g status-left "#h:#S #I" +set -g window-status-current-format " #W" +set -g status-left "#h:#S #W" set -g status-right-length 280 set -g status-right "#(kubeline && printf ' ')#{pane_current_path} #(cd '#{pane_current_path}' && git rev-parse --abbrev-ref --sq HEAD | tr -d \"'\")#{pane_current_command}" set -g message-style "fg=colour7 bg=colour18" diff --git a/host/desktop/bin/reboot-to-windows b/host/desktop/bin/reboot-to-windows index cfd84f6..6e56140 100755 --- a/host/desktop/bin/reboot-to-windows +++ b/host/desktop/bin/reboot-to-windows @@ -1,3 +1,4 @@ #!/usr/bin/env sh -sudo efibootmgr -n 0000 +# use `efibootmgr` to list boot entries +sudo efibootmgr -n 0002 sudo reboot diff --git a/os/linux/sway/config b/os/linux/sway/config index 8cf5631..679cf66 100644 --- a/os/linux/sway/config +++ b/os/linux/sway/config @@ -14,6 +14,7 @@ smart_borders on|no_gaps hide_edge_borders smart_no_gaps default_border pixel 5 focus_follows_mouse no +mouse_warping none input type:touchscreen { events disabled