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
tmux
tree
watch
wget
zoxide
zsh

View File

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

View File

@@ -178,81 +178,58 @@ call plug#end()
lua<<EOF
local opts = { noremap=true, silent=true }
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities()
local lspconfig = require('lspconfig')
-- capabilities for nvim-cmp
local capabilities = require('cmp_nvim_lsp').default_capabilities()
local on_attach = function(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
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
-- Prefer LspAttach instead of per-server on_attach
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args)
local bufnr = args.buf
-- LSP settings (for overriding per client)
local handlers = {
["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {border = border}),
["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {border = border }),
}
vim.bo[bufnr].omnifunc = 'v:lua.vim.lsp.omnifunc'
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
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,
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,
flags = {
debounce_text_changes = 150,
}
}
end
handlers = {
["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = border }),
["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = border }),
},
})
-- 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{
-- Server-specific overrides
vim.lsp.config('yamlls', {
settings = {
json = {
schemas = {
["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://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml"
["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml",
}
},
yaml = {
keyOrdering = false
yaml = { keyOrdering = false },
},
}
}
})
-- Setup GoLang
require'lspconfig'.gopls.setup {
vim.lsp.config('gopls', {
cmd = {"gopls", "serve"},
filetypes = { "go", "gomod", "gowork", "gotmpl" },
on_attach = on_attach,
handlers=handlers,
capabilities = capabilities,
settings = {
gopls = {
analyses = {
unusedparams = true,
},
analyses = { unusedparams = true },
staticcheck = true,
linksInHover = false,
codelenses = {
@@ -265,91 +242,25 @@ require'lspconfig'.gopls.setup {
},
completeUnimported = true,
usePlaceholders = true,
analyses = {
unusedparams = true,
},
},
},
}
})
-- Setup Python (ruff)
require('lspconfig').ruff.setup({})
vim.lsp.config('ruff', {}) -- keep as you had it
-- luasnip setup
local luasnip = require 'luasnip'
-- Finally, enable servers (this replaces the setup() loop)
vim.lsp.enable({
'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph',
'terraformls', 'tflint', 'marksman', 'rust_analyzer', 'ruff',
})
-- nvim-cmp setup
local cmp = require 'cmp'
cmp.setup {
snippet = {
expand = function(args)
luasnip.lsp_expand(args.body)
end,
},
local cmp = require('cmp')
cmp.setup({
mapping = cmp.mapping.preset.insert({
['<C-a>'] = cmp.mapping.scroll_docs(-4),
['<C-s>'] = cmp.mapping.scroll_docs(4),
['<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 = {
{ 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' }
})
sources = { { name = 'buffer' } },
})
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
" 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
# Path to the zsh folder
@@ -17,7 +17,7 @@ NC='\033[0m'
TERRAFORM_VERSION="1.5.7"
# Python
if which python3 > /dev/null 2>&1; then
if which python3 >/dev/null 2>&1; then
python="python3"
pip="pip3"
else
@@ -62,7 +62,7 @@ function err() {
function command_start() {
timestamp "Command $* has been started."
if ! "$*"; then
if ! "$@"; then
err "---------"
err "Command $* went wrong."
err "---------"
@@ -72,7 +72,7 @@ function command_start() {
}
function command_exists() {
if command -v "$1" > /dev/null 2>&1; then
if command -v "$1" >/dev/null 2>&1; then
timestamp "Command $1 has been found"
else
err "Command $1 has been NOT found"
@@ -387,16 +387,27 @@ function install_rust() {
function install_tss_client() {
# Install tss
TSS_VERSION_STABLE="$1"
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
TSSDOCS="https://docs.delinea.com/online-help/secret-server/api-scripting/sdk-devops/sdk-downloads/index.htm"
LINK=""
REMOTE_VERSION=""
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)
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-osx' | sed 's/-osx//g')
fi
else
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')
@@ -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)
for i in "${LIST_OF_PROGRAMS[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --force
fi
done
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --cask --force
fi
@@ -579,22 +588,22 @@ function install_font_terminess() {
}
function main() {
command_start update_pip
command_start install_neovim_module_for_python
command_start install_node
command_start install_go
# command_start install_pyright
command_start install_mdformat
command_start install_ruff
command_start install_lazy
command_start install_dlv
command_start install_bash-language-server
command_start install_yaml-language-server
command_start install_marksman
command_start install_shfmt
command_start install_shellcheck
command_start install_gopls
# command_start install_terraform
# command_start update_pip
# command_start install_neovim_module_for_python
# command_start install_node
# command_start install_go
# # command_start install_pyright
# command_start install_mdformat
# command_start install_ruff
# command_start install_lazy
# command_start install_dlv
# command_start install_bash-language-server
# command_start install_yaml-language-server
# command_start install_marksman
# command_start install_shfmt
# command_start install_shellcheck
# command_start install_gopls
# # command_start install_terraform
command_start install_terraform_stable
command_start install_terragrunt
command_start install_azure_cli
@@ -609,7 +618,7 @@ function main() {
command_start install_gh_cli
command_start install_kubernetes
command_start install_rust
command_start install_tss_client
command_start install_tss_client "1.5.9"
command_start install_taplo
command_start install_precommit
command_start install_streamlink

View File

@@ -1,13 +1,23 @@
#!/bin/bash
~/.local/bin/sidebar-restore-macos
open -gj "afp://10.0.0.14/Downloads"
sleep 10
open -gj "afp://10.0.0.14/Anime"
sleep 2
open -gj "afp://10.0.0.14/Music"
sleep 2
open -gj "afp://10.0.0.14/Video"
sleep 2
open -gj "afp://10.0.0.14/Series"
sleep 2
open -gj "afp://10.0.0.14/Photos"
sleep 2
open -gj "afp://10.0.0.14/Backups"
sleep 2
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/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/Photos/
/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
/usr/local/bin/mysides remove all
/usr/local/bin/mysides add yorune file:///Users/yorune/
/usr/local/bin/mysides add Git file:///Users/yorune/git/
/usr/local/bin/mysides add Linux file:///Users/yorune/MEGA/Systems/Linux/
/usr/local/bin/mysides add Downloads file:///Users/yorune/Downloads/
/usr/local/bin/mysides add Aplikacje file:///Applications/
/usr/local/bin/mysides add Pictures file:///Users/yorune/Pictures/
/usr/local/bin/mysides add Screenshots file:///Users/yorune/Screenshots/
/usr/local/bin/mysides add Movies file:///Users/yorune/Movies/
/usr/local/bin/mysides add Desktop file:///Users/yorune/Desktop/
/usr/local/bin/mysides add Home file://"$HOME"/
/usr/local/bin/mysides add Git file://"$HOME"/git/
/usr/local/bin/mysides add Linux file://"$HOME"/MEGA/Systems/Linux/
/usr/local/bin/mysides add Downloads file://"$HOME"/Downloads/
# /usr/local/bin/mysides add Aplications file:///Applications/
# /usr/local/bin/mysides add Aplications file:///"$HOME"/Applications/
/usr/local/bin/mysides add Screenshots file://"$HOME"/Screenshots/
/usr/local/bin/mysides add Desktop file://"$HOME"/Desktop/

12
.zshrc
View File

@@ -162,7 +162,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
alias ls="ls -Gh"
alias mpv="mpv --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo+bestaudio/best'"
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 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"
@@ -172,13 +172,13 @@ if [[ "$(uname)" == "Darwin" ]]; then
# Terraform
export TFENV_ARCH=amd64
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 |
tail -n1)
head -n1)
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 |
tail -n1)
head -n1)
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
# Unset browser
@@ -229,7 +229,7 @@ alias neofetch=fastfetch
[ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'}
# 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
setopt +o nomatch