Fix wsl detection

This commit is contained in:
Martin Pander
2025-07-11 07:39:57 +02:00
parent 606e5bed8e
commit 6a651c6a3d
3 changed files with 13 additions and 1 deletions

View File

@ -56,6 +56,11 @@
export CARGO_HOME="$HOME/.cargo"
[ -f "$CARGO_HOME/env" ] && . "$CARGO_HOME/env"
fi;
if [[ "$(uname -r)" == *Microsoft* ]]; then
if command -v tmuxp &> /dev/null && [ -z "$TMUX" ]; then
tmuxp load --yes misc
fi
fi;
'';
};

View File

@ -170,3 +170,4 @@ vim.cmd([[highlight DiagnosticUnderlineError gui=undercurl guifg=Red]])
vim.cmd([[highlight DiagnosticUnderlineWarn gui=undercurl guifg=Yellow]])
vim.cmd([[highlight DiagnosticUnderlineInfo gui=undercurl guifg=Blue]])
vim.cmd([[highlight DiagnosticUnderlineHint gui=undercurl guifg=Cyan]])

View File

@ -10,6 +10,10 @@ require('mini.move').setup()
require('flash').setup()
require('ts-comments').setup()
local function is_wsl_env()
return os.getenv("WSL_DISTRO_NAME") ~= nil or os.getenv("WSL_INTEROP") ~= nil
end
vim.g.tagbar_left=1
vim.g.tagbar_autoclose=1
vim.g.tagbar_autofocus=1
@ -317,7 +321,9 @@ if vim.fn.has("mac") then
default_tags = { "journal" },
template = "daily.md"
}
elseif vim.fn.has("win32") then
end
if is_wsl_env() then
workspaces = {
{
name = "work",