Compare commits

...

4 Commits

Author SHA1 Message Date
4b10ed950c brew_cask: removed hiddenbar
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-02-06 12:09:26 +01:00
2df84ccfff nvim: change a lsp
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-02-06 12:02:45 +01:00
a8172b3aeb cask: removed qview
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-02-04 09:43:23 +01:00
9b12dfc0b9 configs: updated version
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-01-23 14:00:11 +01:00
7 changed files with 515 additions and 588 deletions

View File

@@ -22,6 +22,7 @@ telnet
texinfo texinfo
tmux tmux
tree tree
watch
wget wget
zoxide zoxide
zsh zsh

View File

@@ -1,6 +1,5 @@
akiflow
alacritty alacritty
alfred brave
chatterino chatterino
dbeaver-community dbeaver-community
discord discord
@@ -9,8 +8,6 @@ docker
firefox@nightly firefox@nightly
font-hack-nerd-font font-hack-nerd-font
gimp gimp
google-chrome
hiddenbar
karabiner-elements karabiner-elements
keepassxc keepassxc
megasync megasync
@@ -21,7 +18,6 @@ obsidian
platypus platypus
postman postman
qbittorrent qbittorrent
qview
rustdesk rustdesk
scroll-reverser scroll-reverser
signal signal
@@ -33,6 +29,6 @@ transfer
twingate twingate
visual-studio-code visual-studio-code
vlc vlc
whatsapp
winbox winbox
wine-crossover
wireshark wireshark

View File

@@ -178,81 +178,58 @@ call plug#end()
lua<<EOF lua<<EOF
local opts = { noremap=true, silent=true } local opts = { noremap=true, silent=true }
local capabilities = vim.lsp.protocol.make_client_capabilities() -- capabilities for nvim-cmp
capabilities = require('cmp_nvim_lsp').default_capabilities() local capabilities = require('cmp_nvim_lsp').default_capabilities()
local lspconfig = require('lspconfig')
local on_attach = function(client, bufnr) -- Prefer LspAttach instead of per-server on_attach
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') vim.api.nvim_create_autocmd('LspAttach', {
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts) callback = function(args)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts) local bufnr = args.buf
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'ge', '<cmd>lua vim.diagnostic.setqflist()<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
end
-- LSP settings (for overriding per client) vim.bo[bufnr].omnifunc = 'v:lua.vim.lsp.omnifunc'
local handlers = {
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { buffer = bufnr, silent = true })
vim.keymap.set('n', '<space>K', vim.lsp.buf.hover, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'ge', vim.diagnostic.setqflist, { buffer = bufnr, silent = true })
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, { buffer = bufnr, silent = true })
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'gr', vim.lsp.buf.references, { buffer = bufnr, silent = true })
end,
})
-- If you want borders, define one (your old code referenced `border` but never defined it)
local border = 'rounded'
vim.lsp.config('*', {
capabilities = capabilities,
handlers = {
["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = border }), ["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = border }),
["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = border }), ["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = border }),
} },
})
-- Use a loop to conveniently call 'setup' on multiple servers and -- Server-specific overrides
-- map buffer local keybindings when the language server attaches vim.lsp.config('yamlls', {
local servers = { 'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman', 'rust_analyzer' }
for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup {
on_attach = on_attach,
handlers=handlers,
capabilities = capabilities,
flags = {
debounce_text_changes = 150,
}
}
end
-- Handlers when you are in the insert mode you see the errors
vim.lsp.handlers["textDocument/publishDiagnostics"] =
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics,
{update_in_insert = true})
-- Setup a yamlls plugin
require'lspconfig'.yamlls.setup{
settings = { settings = {
json = { json = {
schemas = { schemas = {
["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"]= "conf/**/*catalog*", ["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"]= "conf/**/*catalog*",
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*", ["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml" ["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml",
} }
}, },
yaml = { yaml = { keyOrdering = false },
keyOrdering = false
}, },
} })
}
-- Setup GoLang vim.lsp.config('gopls', {
require'lspconfig'.gopls.setup {
cmd = {"gopls", "serve"}, cmd = {"gopls", "serve"},
filetypes = { "go", "gomod", "gowork", "gotmpl" }, filetypes = { "go", "gomod", "gowork", "gotmpl" },
on_attach = on_attach,
handlers=handlers,
capabilities = capabilities,
settings = { settings = {
gopls = { gopls = {
analyses = { analyses = { unusedparams = true },
unusedparams = true,
},
staticcheck = true, staticcheck = true,
linksInHover = false, linksInHover = false,
codelenses = { codelenses = {
@@ -265,91 +242,25 @@ require'lspconfig'.gopls.setup {
}, },
completeUnimported = true, completeUnimported = true,
usePlaceholders = true, usePlaceholders = true,
analyses = {
unusedparams = true,
}, },
}, },
}, })
}
-- Setup Python (ruff) vim.lsp.config('ruff', {}) -- keep as you had it
require('lspconfig').ruff.setup({})
-- luasnip setup -- Finally, enable servers (this replaces the setup() loop)
local luasnip = require 'luasnip' vim.lsp.enable({
'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph',
'terraformls', 'tflint', 'marksman', 'rust_analyzer', 'ruff',
})
-- nvim-cmp setup local cmp = require('cmp')
local cmp = require 'cmp' cmp.setup({
cmp.setup {
snippet = {
expand = function(args)
luasnip.lsp_expand(args.body)
end,
},
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<C-a>'] = cmp.mapping.scroll_docs(-4),
['<C-s>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
},
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
else
fallback()
end
end, { 'i', 's' }),
['<S-Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
end, { 'i', 's' }),
}), }),
sources = { sources = { { name = 'buffer' } },
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'vsnip' },
{ name = 'ultisnips' },
{ name = 'snippy' },
{ name = 'path' },
{ name = 'buffer' }
},
}
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
}) })
})
cmp.setup.cmdline('/', {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = 'buffer' }
}
})
require("nvim-tree").setup({
})
require'treesitter-context'.setup{}
require("nvim-autopairs").setup {}
require'lspconfig'.rust_analyzer.setup {}
EOF EOF
" Added popout window to see diagnostic " Added popout window to see diagnostic

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/opt/homebrew/opt/bash/bin/bash
# shellcheck disable=2010,2045,2086,2155 # shellcheck disable=2010,2045,2086,2155
# Path to the zsh folder # Path to the zsh folder
@@ -62,7 +62,7 @@ function err() {
function command_start() { function command_start() {
timestamp "Command $* has been started." timestamp "Command $* has been started."
if ! "$*"; then if ! "$@"; then
err "---------" err "---------"
err "Command $* went wrong." err "Command $* went wrong."
err "---------" err "---------"
@@ -387,16 +387,27 @@ function install_rust() {
function install_tss_client() { function install_tss_client() {
# Install tss # Install tss
TSS_VERSION_STABLE="$1"
CURRENT_VERSION="1.5.7" CURRENT_VERSION="1.5.7"
if [ -z "$TSS_VERSION_STABLE" ]; then
TSS_VERSION_STABLE=""
timestamp "TSS_VERSION_STABLE variable is empty, the latest version will be installed"
fi
# Example link: https://downloads.ss.thycotic.com/secretserversdk/1.5.7/secretserver-sdk-1.5.7-linux-x64.zip # Example link: https://downloads.ss.thycotic.com/secretserversdk/1.5.7/secretserver-sdk-1.5.7-linux-x64.zip
TSSDOCS="https://docs.delinea.com/online-help/secret-server/api-scripting/sdk-devops/sdk-downloads/index.htm" TSSDOCS="https://docs.delinea.com/online-help/secret-server/api-scripting/sdk-devops/sdk-downloads/index.htm"
LINK="" LINK=""
REMOTE_VERSION="" REMOTE_VERSION=""
if [ "$(uname)" == "Darwin" ]; then if [ "$(uname)" == "Darwin" ]; then
if [ -n "$TSS_VERSION_STABLE" ]; then
LINK="https://downloads.ss.thycotic.com/secretserversdk/$TSS_VERSION_STABLE/secretserver-sdk-$TSS_VERSION_STABLE-osx-x64.zip"
REMOTE_VERSION=$TSS_VERSION
else
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-osx-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1) LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-osx-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-osx' | sed 's/-osx//g') REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-osx' | sed 's/-osx//g')
fi
else else
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-linux-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1) LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-linux-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-linux' | sed 's/-linux//g') REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-linux' | sed 's/-linux//g')
@@ -449,16 +460,14 @@ function install_brew_programs() {
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable) while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
for i in "${LIST_OF_PROGRAMS[@]}"; do for i in "${LIST_OF_PROGRAMS[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \ if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
&& \
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then [[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --force brew install $i --force
fi fi
done done
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \ if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
&& \
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then [[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --cask --force brew install $i --cask --force
fi fi
@@ -579,22 +588,22 @@ function install_font_terminess() {
} }
function main() { function main() {
command_start update_pip # command_start update_pip
command_start install_neovim_module_for_python # command_start install_neovim_module_for_python
command_start install_node # command_start install_node
command_start install_go # command_start install_go
# command_start install_pyright # # command_start install_pyright
command_start install_mdformat # command_start install_mdformat
command_start install_ruff # command_start install_ruff
command_start install_lazy # command_start install_lazy
command_start install_dlv # command_start install_dlv
command_start install_bash-language-server # command_start install_bash-language-server
command_start install_yaml-language-server # command_start install_yaml-language-server
command_start install_marksman # command_start install_marksman
command_start install_shfmt # command_start install_shfmt
command_start install_shellcheck # command_start install_shellcheck
command_start install_gopls # command_start install_gopls
# command_start install_terraform # # command_start install_terraform
command_start install_terraform_stable command_start install_terraform_stable
command_start install_terragrunt command_start install_terragrunt
command_start install_azure_cli command_start install_azure_cli
@@ -609,7 +618,7 @@ function main() {
command_start install_gh_cli command_start install_gh_cli
command_start install_kubernetes command_start install_kubernetes
command_start install_rust command_start install_rust
command_start install_tss_client command_start install_tss_client "1.5.9"
command_start install_taplo command_start install_taplo
command_start install_precommit command_start install_precommit
command_start install_streamlink command_start install_streamlink

View File

@@ -1,13 +1,23 @@
#!/bin/bash #!/bin/bash
~/.local/bin/sidebar-restore-macos ~/.local/bin/sidebar-restore-macos
open -gj "afp://10.0.0.14/Downloads" open -gj "afp://10.0.0.14/Downloads"
sleep 10
open -gj "afp://10.0.0.14/Anime" open -gj "afp://10.0.0.14/Anime"
sleep 2
open -gj "afp://10.0.0.14/Music" open -gj "afp://10.0.0.14/Music"
sleep 2
open -gj "afp://10.0.0.14/Video" open -gj "afp://10.0.0.14/Video"
sleep 2
open -gj "afp://10.0.0.14/Series" open -gj "afp://10.0.0.14/Series"
sleep 2
open -gj "afp://10.0.0.14/Photos" open -gj "afp://10.0.0.14/Photos"
sleep 2
open -gj "afp://10.0.0.14/Backups" open -gj "afp://10.0.0.14/Backups"
sleep 2
open -gj "afp://10.0.0.14/Recordings" open -gj "afp://10.0.0.14/Recordings"
sleep 2
open -gj "afp://10.0.0.14/Work"
sleep 2
/usr/local/bin/mysides add Synology file:///Volumes/Recordings/ /usr/local/bin/mysides add Synology file:///Volumes/Recordings/
/usr/local/bin/mysides add Synology file:///Volumes/Backups/ /usr/local/bin/mysides add Synology file:///Volumes/Backups/
@@ -17,3 +27,4 @@ open -gj "afp://10.0.0.14/Recordings"
/usr/local/bin/mysides add Synology file:///Volumes/Series/ /usr/local/bin/mysides add Synology file:///Volumes/Series/
/usr/local/bin/mysides add Synology file:///Volumes/Photos/ /usr/local/bin/mysides add Synology file:///Volumes/Photos/
/usr/local/bin/mysides add Synology file:///Volumes/Anime/ /usr/local/bin/mysides add Synology file:///Volumes/Anime/
/usr/local/bin/mysides add Synology file:///Volumes/Work

View File

@@ -1,11 +1,10 @@
#!/bin/bash #!/bin/bash
/usr/local/bin/mysides remove all /usr/local/bin/mysides remove all
/usr/local/bin/mysides add yorune file:///Users/yorune/ /usr/local/bin/mysides add Home file://"$HOME"/
/usr/local/bin/mysides add Git file:///Users/yorune/git/ /usr/local/bin/mysides add Git file://"$HOME"/git/
/usr/local/bin/mysides add Linux file:///Users/yorune/MEGA/Systems/Linux/ /usr/local/bin/mysides add Linux file://"$HOME"/MEGA/Systems/Linux/
/usr/local/bin/mysides add Downloads file:///Users/yorune/Downloads/ /usr/local/bin/mysides add Downloads file://"$HOME"/Downloads/
/usr/local/bin/mysides add Aplikacje file:///Applications/ # /usr/local/bin/mysides add Aplications file:///Applications/
/usr/local/bin/mysides add Pictures file:///Users/yorune/Pictures/ # /usr/local/bin/mysides add Aplications file:///"$HOME"/Applications/
/usr/local/bin/mysides add Screenshots file:///Users/yorune/Screenshots/ /usr/local/bin/mysides add Screenshots file://"$HOME"/Screenshots/
/usr/local/bin/mysides add Movies file:///Users/yorune/Movies/ /usr/local/bin/mysides add Desktop file://"$HOME"/Desktop/
/usr/local/bin/mysides add Desktop file:///Users/yorune/Desktop/

12
.zshrc
View File

@@ -162,7 +162,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
alias ls="ls -Gh" alias ls="ls -Gh"
alias mpv="mpv --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo+bestaudio/best'" alias mpv="mpv --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo+bestaudio/best'"
alias code="open -a 'Visual Studio Code'" alias code="open -a 'Visual Studio Code'"
alias xclip="pbcopy" alias xclip="sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g' | pbcopy"
alias mtr="sudo /opt/homebrew/opt/mtr/sbin/mtr" alias mtr="sudo /opt/homebrew/opt/mtr/sbin/mtr"
alias sleep-lid-off="sudo pmset -b sleep 0; sudo pmset -b disablesleep 1" alias sleep-lid-off="sudo pmset -b sleep 0; sudo pmset -b disablesleep 1"
alias sleep-lid-on="sudo pmset -b sleep 5; sudo pmset -b disablesleep 0" alias sleep-lid-on="sudo pmset -b sleep 5; sudo pmset -b disablesleep 0"
@@ -172,13 +172,13 @@ if [[ "$(uname)" == "Darwin" ]]; then
# Terraform # Terraform
export TFENV_ARCH=amd64 export TFENV_ARCH=amd64
export TFENVVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/ | export TFENVVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/ |
grep -iEo '[0-9]\.[0-9]\.[0-9]' | grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
sort | sort |
tail -n1) head -n1)
export TFVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/*/versions | export TFVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/*/versions |
grep -iEo '[0-9]\.[0-9]\.[0-9]' | grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
sort | sort |
tail -n1) head -n1)
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/ export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
# Unset browser # Unset browser
@@ -229,7 +229,7 @@ alias neofetch=fastfetch
[ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'} [ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'}
# GoLang # GoLang
alias go-mod="go mod edit -go $(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u; go mod verify; go get -x -v; go mod verify; go mod tidy" alias go-mod="go mod edit -go=$(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u; go mod verify; go get -x -v; go mod verify; go mod tidy"
# Resolve problem with - zsh: no matches found # Resolve problem with - zsh: no matches found
setopt +o nomatch setopt +o nomatch