Compare commits
4 Commits
d1d68a2865
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a61ac5437 | ||
|
|
3311977bf4 | ||
| 652f21f2e9 | |||
| e0909040eb |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -3,10 +3,15 @@ glab-cli/config.yml
|
||||
glab-cli/**/mr.json
|
||||
**/.DS_Store
|
||||
**/lazy-lock.json
|
||||
github-copilot/hosts.json
|
||||
github-copilot/
|
||||
omz-custom/plugins
|
||||
omz-custom/vrm.sh
|
||||
omz
|
||||
testDir
|
||||
tmuxinator/*.yml
|
||||
!tmuxinator/template.yml.temp
|
||||
uv/
|
||||
gcloud/
|
||||
htop/
|
||||
mcphub
|
||||
spicetify
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"copilot.lua":"1.384.0"}
|
||||
{"copilot.lua":"1.393.0"}
|
||||
|
||||
@@ -4,9 +4,13 @@ return {
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("copilot").setup({
|
||||
-- get the node path from env variable $NODE_PATH if it's set
|
||||
-- copilot_node_command = "/Users/oliverhnat/.nvm/versions/node/v22.21.1/bin/node",
|
||||
copilot_node_command = os.getenv("NODE_PATH"),
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
debounce = 150, -- Add debounce to reduce API calls
|
||||
keymap = {
|
||||
accept = "…",
|
||||
},
|
||||
@@ -17,6 +21,14 @@ return {
|
||||
filetypes = {
|
||||
["."] = false,
|
||||
},
|
||||
server_opts_overrides = {
|
||||
-- Reduce timeout-related errors
|
||||
settings = {
|
||||
advanced = {
|
||||
inlineSuggestCount = 3,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -19,6 +19,9 @@ local PACKAGES = {
|
||||
"pyright",
|
||||
"typescript-language-server",
|
||||
"yaml-language-server",
|
||||
"vue-language-server",
|
||||
"ts_ls",
|
||||
"typescript-tools",
|
||||
-- Format
|
||||
"black",
|
||||
"flake8",
|
||||
@@ -93,22 +96,22 @@ local function syncPackages(ensurePacks)
|
||||
end)
|
||||
|
||||
-- Auto-clean unused packages
|
||||
local installedPackages = masonReg.get_installed_package_names()
|
||||
vim.iter(installedPackages):each(function(packName)
|
||||
-- Check if installed package is in our ensure list (without version suffix)
|
||||
local isEnsured = vim.iter(ensurePacks):any(function(ensurePack)
|
||||
local name = ensurePack:match("([^@]+)")
|
||||
return name == packName
|
||||
end)
|
||||
|
||||
if not isEnsured then
|
||||
masonReg.get_package(packName):uninstall()
|
||||
local msg = ("[%s] uninstalled."):format(packName)
|
||||
vim.defer_fn(function()
|
||||
vim.notify(msg, nil, { title = "Mason", icon = "" })
|
||||
end, 0)
|
||||
end
|
||||
end)
|
||||
-- local installedPackages = masonReg.get_installed_package_names()
|
||||
-- vim.iter(installedPackages):each(function(packName)
|
||||
-- -- Check if installed package is in our ensure list (without version suffix)
|
||||
-- local isEnsured = vim.iter(ensurePacks):any(function(ensurePack)
|
||||
-- local name = ensurePack:match("([^@]+)")
|
||||
-- return name == packName
|
||||
-- end)
|
||||
--
|
||||
-- if not isEnsured then
|
||||
-- masonReg.get_package(packName):uninstall()
|
||||
-- local msg = ("[%s] uninstalled."):format(packName)
|
||||
-- vim.defer_fn(function()
|
||||
-- vim.notify(msg, nil, { title = "Mason", icon = "" })
|
||||
-- end, 0)
|
||||
-- end
|
||||
-- end)
|
||||
end
|
||||
|
||||
masonReg.refresh(refreshCallback)
|
||||
@@ -183,7 +186,12 @@ return {
|
||||
},
|
||||
})
|
||||
|
||||
vim.lsp.config("ts_ls", { on_attach = on_attach, capabilities = capabilities })
|
||||
vim.lsp.config("ts_ls", {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
vim.lsp.enable("ts_ls")
|
||||
|
||||
vim.lsp.config("pyright", { on_attach = on_attach, capabilities = capabilities })
|
||||
vim.lsp.config("html", { on_attach = on_attach, capabilities = capabilities })
|
||||
vim.lsp.config("cssls", { on_attach = on_attach, capabilities = capabilities })
|
||||
@@ -201,6 +209,11 @@ return {
|
||||
},
|
||||
})
|
||||
vim.lsp.config("eslint", { on_attach = on_attach, capabilities = capabilities })
|
||||
vim.lsp.config("vue_ls", {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
vim.lsp.enable("vue_ls")
|
||||
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
@@ -213,6 +226,7 @@ return {
|
||||
"yamlls",
|
||||
"intelephense",
|
||||
"eslint",
|
||||
"vue_ls",
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
|
||||
@@ -42,3 +42,7 @@ vim.opt.foldenable = false
|
||||
vim.opt.foldlevel = 99
|
||||
-- g.markdown_folding = 1 -- enable markdown folding
|
||||
|
||||
-- Set LSP log level to WARN to reduce log spam (was filling 107MB!)
|
||||
-- Options: "trace", "debug", "info", "warn", "error", "off"
|
||||
vim.lsp.set_log_level("warn")
|
||||
|
||||
|
||||
@@ -402,10 +402,6 @@ function gpla() {
|
||||
echo "Finished fetching branches."
|
||||
}
|
||||
|
||||
# source the tmux-sessions.sh in the same folder
|
||||
source $(dirname "$0")/tmux-sessions.sh
|
||||
<<<<<<< HEAD
|
||||
|
||||
function aoc() {
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: aoc <day> [year]"
|
||||
@@ -450,4 +446,6 @@ function aoc() {
|
||||
echo " - $dir/example.in"
|
||||
}
|
||||
|
||||
# source the tmux-sessions.sh in the same folder
|
||||
source $(dirname "$0")/tmux-sessions.sh
|
||||
source $(dirname "$0")/completion.sh
|
||||
|
||||
1
tmux/plugins/tmux-fzf
Submodule
1
tmux/plugins/tmux-fzf
Submodule
Submodule tmux/plugins/tmux-fzf added at 1547f18083
Submodule tmux/plugins/tmux-sessionx updated: 42c18389e7...c2eb0e19bf
Submodule tmux/plugins/tmux-which-key updated: 1f419775ca...545831eb95
Reference in New Issue
Block a user