Compare commits
22 Commits
macmini
...
d9c2fc0dd5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9c2fc0dd5 | ||
|
|
f3817cf484 | ||
|
|
0c4779db6c | ||
|
|
facda5d25c | ||
|
|
6dc71d4ae9 | ||
|
|
6d26754462 | ||
|
|
b6fe1d9f38 | ||
|
|
6650ab1d5c | ||
|
|
cb21d62153 | ||
|
|
e104c9b8ce | ||
|
|
e99901146d | ||
|
|
dc51e2b8d8 | ||
|
|
9fd41c75ef | ||
|
|
adcecd9d62 | ||
|
|
ade4c9f47c | ||
|
|
82c55b55c7 | ||
|
|
8ba5349c5d | ||
|
|
c16dc3b450 | ||
|
|
924c01282d | ||
|
|
7a7b0e3f1c | ||
|
|
cfb88473fc | ||
|
|
32760db44f |
@@ -18,11 +18,5 @@ test -r '/home/mikec/.opam/opam-init/init.sh' && . '/home/mikec/.opam/opam-init/
|
||||
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec river
|
||||
fi
|
||||
HOMEBREW_PREFIX=/opt/homebrew
|
||||
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
|
||||
export CPATH="$HOMEBREW_PREFIX/include:$CPATH"
|
||||
export LIBRARY_PATH="$HOMEBREW_PREFIX/lib:$LIBRARY_PATH"
|
||||
. "/Users/mikec/.local/share/bob/env/env.sh"
|
||||
|
||||
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
|
||||
|
||||
. "/home/mikec/.local/share/bob/env/env.sh"
|
||||
|
||||
@@ -26,5 +26,5 @@ dataSourceCommonSettings\activeState=true
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[UserFeedback]
|
||||
ApplicationStartCount=137
|
||||
ApplicationTime=622
|
||||
ApplicationStartCount=141
|
||||
ApplicationTime=705
|
||||
|
||||
@@ -26,5 +26,5 @@ dataSourceCommonSettings\activeState=true
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[UserFeedback]
|
||||
ApplicationStartCount=3
|
||||
ApplicationTime=35142
|
||||
ApplicationStartCount=72
|
||||
ApplicationTime=68724
|
||||
|
||||
@@ -23,5 +23,5 @@ dataSourceCommonSettings\activeState=true
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[UserFeedback]
|
||||
ApplicationStartCount=1
|
||||
ApplicationTime=14
|
||||
ApplicationStartCount=18
|
||||
ApplicationTime=16794
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
[UserFeedback]
|
||||
ApplicationStartCount=1
|
||||
ApplicationStartCount=18
|
||||
|
||||
@@ -26,6 +26,6 @@ dataSourceCommonSettings\activeState=true
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[UserFeedback]
|
||||
ApplicationStartCount=210
|
||||
ApplicationTime=2008695
|
||||
ApplicationStartCount=260
|
||||
ApplicationTime=2430104
|
||||
LastEncouragement=@DateTime(\0\0\0\x10\0\0\0\0\0\0%\x87}\x4\n\x84\xab\0)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -82,6 +82,6 @@ vim.lsp.config('lua_ls', {
|
||||
vim.lsp.config('tinymist', {
|
||||
settings = {
|
||||
exportPdf = "onType",
|
||||
}
|
||||
},
|
||||
})
|
||||
vim.diagnostic.config({ update_in_insert = true, float = true, virtual_lines = true})
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
# This file is written by nwg-look. Do not edit.
|
||||
[Icon Theme]
|
||||
Name=Default
|
||||
Comment=Default Cursor Theme
|
||||
Inherits=BreezeX-RosePineDawn-Linux
|
||||
|
||||
|
||||
187
config/.wezterm.lua
Normal file
187
config/.wezterm.lua
Normal file
@@ -0,0 +1,187 @@
|
||||
local wezterm = require 'wezterm'
|
||||
local config = {}
|
||||
|
||||
config.font = wezterm.font_with_fallback {
|
||||
'Iosevka Term SS12',
|
||||
'Cascadia Code'
|
||||
}
|
||||
|
||||
local appearance_themes = {
|
||||
Light = 'dawnfox',
|
||||
Dark = 'carbonfox',
|
||||
}
|
||||
|
||||
local appearance = wezterm.gui.get_appearance()
|
||||
config.color_scheme = appearance_themes[appearance] or 'carbonfox'
|
||||
config.font_size = 14
|
||||
config.enable_tab_bar = true
|
||||
config.use_fancy_tab_bar = false
|
||||
-- config.front_end = "WebGpu"
|
||||
-- config.integrated_title_button_style = "Gnome"
|
||||
|
||||
function basename(s)
|
||||
return string.gsub(s, '(.*[/\\])(.*)', '%2')
|
||||
end
|
||||
|
||||
wezterm.on(
|
||||
'format-tab-title',
|
||||
function(tab, tabs, panes, config, hover, maxwidth)
|
||||
local tab_name
|
||||
local title = tab.tab_title
|
||||
if title and #title > 0 then
|
||||
tab_name = tab.tab_id .. ':' .. title
|
||||
end
|
||||
local pane = tab.active_pane
|
||||
local name = pane.foreground_process_name
|
||||
if name then
|
||||
tab_name = tab.tab_id .. ':' .. basename(name)
|
||||
end
|
||||
if tab.is_active then
|
||||
return {
|
||||
'ResetAttributes',
|
||||
{ Text = ' ' .. tab_name .. '* '},
|
||||
}
|
||||
-- elseif tab.is_last_active then
|
||||
-- return {
|
||||
-- { Text = ' ' .. tab_name .. '- ' },
|
||||
-- }
|
||||
else
|
||||
return {
|
||||
'ResetAttributes',
|
||||
{ Text = ' ' .. tab_name .. ' ' }
|
||||
}
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
-- keys
|
||||
local act = wezterm.action
|
||||
config.leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1000 }
|
||||
config.keys = {
|
||||
{
|
||||
key = 'a',
|
||||
mods = 'LEADER|CTRL',
|
||||
action = wezterm.action.SendKey { key = 'a', mods = 'CTRL' },
|
||||
},
|
||||
{
|
||||
key = "c",
|
||||
mods = "LEADER",
|
||||
action = act.SpawnTab 'CurrentPaneDomain'
|
||||
},
|
||||
{
|
||||
key = "e",
|
||||
mods = "LEADER",
|
||||
action = act.CharSelect {
|
||||
copy_on_select = true,
|
||||
copy_to = 'ClipboardAndPrimarySelection',
|
||||
},
|
||||
},
|
||||
{
|
||||
key = "C",
|
||||
mods = "LEADER",
|
||||
action = act.SpawnTab 'CurrentPaneDomain'
|
||||
},
|
||||
{
|
||||
key = "x",
|
||||
mods = "LEADER",
|
||||
action = act.CloseCurrentPane { confirm = true }
|
||||
},
|
||||
{
|
||||
key = "p",
|
||||
mods = "LEADER",
|
||||
action = act.ActivateTabRelative(-1)
|
||||
},
|
||||
{
|
||||
key = "n",
|
||||
mods = "LEADER",
|
||||
action = act.ActivateTabRelative(1)
|
||||
},
|
||||
{
|
||||
key = "%",
|
||||
mods = "LEADER|SHIFT",
|
||||
action = act.SplitPane {
|
||||
direction = "Right"
|
||||
}
|
||||
},
|
||||
{
|
||||
key = "\"",
|
||||
mods = "LEADER|SHIFT",
|
||||
action = act.SplitPane {
|
||||
direction = "Down"
|
||||
}
|
||||
},
|
||||
{
|
||||
key = "o",
|
||||
mods = "LEADER",
|
||||
action = act.ActivatePaneDirection 'Next'
|
||||
},
|
||||
{
|
||||
key = "h",
|
||||
mods = "LEADER",
|
||||
action = act.ActivatePaneDirection 'Left'
|
||||
},
|
||||
{
|
||||
key = "l",
|
||||
mods = "LEADER",
|
||||
action = act.ActivatePaneDirection 'Right'
|
||||
},
|
||||
{
|
||||
key = "j",
|
||||
mods = "LEADER",
|
||||
action = act.ActivatePaneDirection 'Down'
|
||||
},
|
||||
{
|
||||
key = "k",
|
||||
mods = "LEADER",
|
||||
action = act.ActivatePaneDirection 'Up'
|
||||
},
|
||||
{
|
||||
key = "P",
|
||||
mods = "LEADER",
|
||||
action = act.PasteFrom 'Clipboard'
|
||||
},
|
||||
{
|
||||
key = "s",
|
||||
mods = "LEADER",
|
||||
action = act.QuickSelect
|
||||
},
|
||||
{
|
||||
key = "Y",
|
||||
mods = "LEADER",
|
||||
action = act.CopyTo 'Clipboard'
|
||||
},
|
||||
{
|
||||
key = "v",
|
||||
mods = "LEADER",
|
||||
action = act.ActivateCopyMode
|
||||
},
|
||||
{
|
||||
key = "f",
|
||||
mods = "LEADER",
|
||||
action = act.Search("CurrentSelectionOrEmptyString")
|
||||
},
|
||||
{
|
||||
key = ',',
|
||||
mods = 'LEADER',
|
||||
action = act.PromptInputLine {
|
||||
description = 'Enter new name for tab',
|
||||
action = wezterm.action_callback(function(window, pane, line)
|
||||
-- line will be `nil` if they hit escape without entering anything
|
||||
-- An empty string if they just hit enter
|
||||
-- Or the actual line of text they wrote
|
||||
if line then
|
||||
window:active_tab():set_title(line)
|
||||
end
|
||||
end),
|
||||
},
|
||||
},
|
||||
}
|
||||
for i = 1, 8 do
|
||||
-- CTRL+ALT + number to activate that tab
|
||||
table.insert(config.keys, {
|
||||
key = tostring(i),
|
||||
mods = 'LEADER',
|
||||
action = act.ActivateTab(i - 1),
|
||||
})
|
||||
end
|
||||
return config
|
||||
Reference in New Issue
Block a user