better support for fresh headless servers
This commit is contained in:
@@ -45,5 +45,6 @@
|
|||||||
"coc.source.OmniSharp.shortcut": " ",
|
"coc.source.OmniSharp.shortcut": " ",
|
||||||
"pyright.inlayHints.variableTypes": false,
|
"pyright.inlayHints.variableTypes": false,
|
||||||
"pyright.inlayHints.parameterTypes": 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("config.run")
|
||||||
require("plugins")
|
require("plugins")
|
||||||
|
|
||||||
local lsp = "coc"
|
local lsp = "mason"
|
||||||
|
|
||||||
-- PLUGINS
|
-- PLUGINS
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
@@ -16,7 +16,6 @@ require("lazy").setup({
|
|||||||
{ import = "plugins.tmux_navigator" },
|
{ import = "plugins.tmux_navigator" },
|
||||||
{ import = "plugins.lualine" },
|
{ import = "plugins.lualine" },
|
||||||
{ import = "plugins.autopairs" },
|
{ import = "plugins.autopairs" },
|
||||||
{ import = "plugins.nvim-tree" },
|
|
||||||
{ import = "plugins.which-key" },
|
{ import = "plugins.which-key" },
|
||||||
{ import = "plugins.telescope" },
|
{ import = "plugins.telescope" },
|
||||||
{ import = "plugins.omnisharp" },
|
{ 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("cargo run", "rust", "Cargo run")
|
||||||
new_run_command("uv run main.py", "python", "Run Python Project")
|
new_run_command("uv run main.py", "python", "Run Python Project")
|
||||||
new_run_command("dotnet run Project.cs", "cs", "Run Dotnet 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"
|
||||||
|
})
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ eval "$(starship init zsh)"
|
|||||||
|
|
||||||
function yy() {
|
function yy() {
|
||||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
|
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
|
||||||
|
if command -v yazi &>/dev/null; then
|
||||||
yazi "$@" --cwd-file="$tmp"
|
yazi "$@" --cwd-file="$tmp"
|
||||||
|
else
|
||||||
|
nvim .
|
||||||
|
fi
|
||||||
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||||
cd -- "$cwd"
|
cd -- "$cwd"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user