better support for fresh headless servers
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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" },
|
||||
|
||||
@@ -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"
|
||||
})
|
||||
|
||||
+5
-1
@@ -8,7 +8,11 @@ eval "$(starship init zsh)"
|
||||
|
||||
function yy() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user