better support for fresh headless servers

This commit is contained in:
wooshings
2026-03-24 11:14:52 -07:00
parent cbc77f627f
commit 6d7b4cf0b1
4 changed files with 19 additions and 4 deletions
+2 -1
View File
@@ -45,5 +45,6 @@
"coc.source.OmniSharp.shortcut": "󰆧 ",
"pyright.inlayHints.variableTypes": false,
"pyright.inlayHints.parameterTypes": false,
"pyright.inlayHints.functionReturnTypes": false
"pyright.inlayHints.functionReturnTypes": false,
"python.formatting.provider": "null"
}
+1 -2
View File
@@ -3,7 +3,7 @@ require("config.keymap")
require("config.run")
require("plugins")
local lsp = "coc"
local lsp = "mason"
-- PLUGINS
require("lazy").setup({
@@ -16,7 +16,6 @@ require("lazy").setup({
{ import = "plugins.tmux_navigator" },
{ import = "plugins.lualine" },
{ import = "plugins.autopairs" },
{ import = "plugins.nvim-tree" },
{ import = "plugins.which-key" },
{ import = "plugins.telescope" },
{ import = "plugins.omnisharp" },
+11
View File
@@ -30,3 +30,14 @@ new_run_command("go run .", "go", "Run Go Project")
new_run_command("cargo run", "rust", "Cargo run")
new_run_command("uv run main.py", "python", "Run Python Project")
new_run_command("dotnet run Project.cs", "cs", "Run Dotnet Project")
vim.api.nvim_create_autocmd("BufRead", {
pattern = "*.jsx",
command = "set filetype=javascriptreact"
})
vim.api.nvim_create_autocmd("BufRead", {
pattern = "*.tsx",
command = "set filetype=typescriptreact"
})
+4
View File
@@ -8,7 +8,11 @@ eval "$(starship init zsh)"
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
if command -v yazi &>/dev/null; then
yazi "$@" --cwd-file="$tmp"
else
nvim .
fi
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
fi