Compare commits

...

7 Commits

Author SHA1 Message Date
941e3031d7 update 2024-07-14 17:38:22 -05:00
efbcfbc4bf update 2024-07-14 11:53:45 -05:00
4dd21cbf9d update 2024-07-14 07:05:18 -05:00
42ce12e24a add goland and ideavim 2024-07-14 07:03:21 -05:00
a303cfe3ad update 2024-07-14 05:42:54 -05:00
1fe10c4c4f update 2024-07-07 09:06:00 -05:00
58ec74b798 update 2024-07-06 16:45:50 -05:00
10 changed files with 204 additions and 11 deletions

View File

@@ -18,8 +18,20 @@ profile {
}
profile {
output DP-6 enable position 3440,0
output DP-7 enable position 0,0
output DP-9 enable position 0,1440
output DP-8 enable position 0,0
output eDP-1 disable
}
profile {
output DP-7 enable position 0,1440
output DP-6 enable position 0,0
output eDP-1 disable
}
profile {
output DP-5 enable position 0,1440
output DP-6 enable position 0,0
output eDP-1 disable
}

View File

@@ -42,8 +42,5 @@ vim.opt.guicursor = ""
vim.opt.nu = true
vim.opt.relativenumber = true
vim.api.nvim_set_keymap("n", "<C-d>", "<C-d>zz", { noremap = true })
vim.api.nvim_set_keymap("n", "<C-u>", "<C-u>zz", { noremap = true })
vim.api.nvim_set_keymap("n", "n", "nzzzv", { noremap = true })
vim.api.nvim_set_keymap("n", "N", "Nzzzv", { noremap = true })
vim.api.nvim_set_option("clipboard", "unnamedplus")
vim.api.nvim_set_option("clipboard", "unnamedplus")
vim.opt_local.conceallevel = 2

View File

@@ -42,3 +42,7 @@ end, { noremap = true })
map("n", "<leader>P", function()
require("powershell").toggle_term()
end, { noremap = true })
-- Obsidian
map("", "<leader>of", "<cmd> ObsidianFollowLink <CR>", { desc = "Follow Link" })
map("", "<leader>ol", "<cmd> ObsidianLinks <CR>", { desc = "Show All Links" })

View File

@@ -120,4 +120,21 @@ return {
end
end,
},
{
"epwalsh/obsidian.nvim",
version = "*",
lazy = true,
ft = "markdown",
dependencies = {
"nvim-lua/plenary.nvim",
},
opts = {
workspaces = {
{
name = "vault",
path = "~/Documents/obsidian"
},
},
},
},
}

View File

@@ -0,0 +1,17 @@
return {
"epwalsh/obsidian.nvim",
version = "*",
lazy = true,
ft = "markdown",
dependencies = {
"nvim-lua/plenary.nvim",
},
opts = {
workspaces = {
{
name = "vault",
path = "~/Documents/obsidian"
},
},
},
}

View File

@@ -30,6 +30,14 @@ $tokens = @(
name = "GITLAB_TOKEN"
value = "cli-gitlab"
}
@{
name = "GITHUB_TOKEN"
value = "cli-github"
}
@{
name = "GITEA_TOKEN"
value = "cli-gitea"
}
)
function unlockbw

View File

@@ -39,12 +39,19 @@ input "1267:12573:ELAN0412:00_04F3:311D_Touchpad" {
middle_emulation enabled
}
input "type:pointer" {
accel_profile "flat"
pointer_accel 0
}
# Notification Daemon
exec_always swaync
# Toggle control center
bindsym $mod+Shift+n exec swaync-client -t -sw
# Start IDE
bindsym $mod+Shift+i exec /opt/goland/bin/goland.sh
### Key bindings
# Basics:
@@ -62,7 +69,7 @@ bindsym $mod+Shift+n exec swaync-client -t -sw
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier control normal
#floating_modifier control normal
# Reload the configuration file
bindsym $mod+Shift+c reload

113
.ideavimrc Normal file
View File

@@ -0,0 +1,113 @@
set number relativenumber
set ideajoin
set linenumber
set showmode
set showcmd
set incsearch
set hlsearch
set scrolloff=10
set visualbell
set ignorecase
set smartcase
set notimeout
set clipboard+=unnamed
" 3rd party
set which-key
set surround
set highlightedyank
" Which Key
let g:WhichKey_FontSize = 16
let g:WhichKey_CommandColor = "#41ead4"
let g:WhichKey_PrefixColor = "#f335b2"
let g:WhichKey_SortOrder = "by_key_prefix_first"
" NerdTree
Plug 'preservim/nerdtree'
nnoremap <C-n> :NERDTree<CR>
let g:NERDTreeWinSize=30
let g:NERDTreeMapPreview=0
let g:NERDTreeMapActivateNode='l'
let g:NERDTreeMapJumpParent='h'
let mapleader=' '
noremap <leader>lr :action ExtractMethod<CR>
" Manage Projects
noremap <C-Space>s :action ManageRecentProjects<CR>
" Tab Navigation
noremap <Tab> :action NextTab<CR>
noremap <S-Tab> :action PreviousTab<CR>
" Pane Navigation
noremap <C-h> <C-w>h
noremap <C-l> <C-w>l
noremap <C-k> <C-w>k
noremap <C-j> <C-w>j
" File Navigation
map <leader>ff <action>(GoToFile)
map <leader><leader> <action>(RecentFiles)
map <leader>fl <action>(RecentLocations)
map <leader>fs <action>(NewScratchFile)
" Center Screen with Page up and down
nnoremap <C-d> <C-d>zz
nnoremap <C-u> <C-u>zz
" Window Management
map <leader>% <action>(SplitVertically)
map <leader>" <action>(SplitHorizontally)
map <leader>x <action>(CloseContent)
map <leader>wm <action>(MoveEditorToOppositeTabGroup)
" Popup Navigation
inoremap <C-j> <Action>(PopupMenu-selectNext)
inoremap <C-k> <Action>(PopupMenu-selectPrev)
" Debug options
map <leader>dd <action>(Debug)
map <leader>db <action>(ToggleLineBreakpoint)
" Actions
map <leader>am <action>(ShowIntentionActions)
map <leader>as <action>(SearchEverywhere)
" Refactoring
map <leader>rn <action>(RenameElement)
map <leader>re <action>(ExtractMethod)
map <leader>rv <action>(IntroduceVariable)
map <leader>rf <action>(IntroduceField)
map <leader>rs <action>(ChangeSignature)
map <leader>rr <action>(Refactorings.QuickListPopupAction)
" Go To Code
map <leader>gd <action>(GoToDeclaration)
map <leader>gy <action>(GotoTypeDeclaraton)
map <leader>gi <action>(GotoImplementation)
map <leader>gu <action>(ShowUsages)
map <leader>gt <action>(GotoTest)
map <leader>gf <action>(Back)
map <leader>gb <action>(Forward)
" Go Tag
map <leader>gt :action IntentionActionAsAction_com.goide.inspections.tag.GoTagAddKeyIntention<CR>
" Errors
map <leader>en <action>(ReSharperGotoNextErrorInSolution)
map <leader>ep <action>(ReSharperGotoPrevErrorInSolution)
" Menu
map <leader>mm <action>(MainMenu)
map <leader>ma <action>(AnalyzeMenu)
map <leader>mb <action>(BuildMenu)
map <leader>mc <action>(CodeMenu)
map <leader>mf <action>(FindMenuGroup)
map <leader>mg <action>(GoToMenu)
map <leader>ms <action>(ScopeViewPopupMenu)
map <leader>mt <action>(EditorTabPopupMenu)
map <leader>mw <action>(ToolWindowsGroup)

23
.zshrc
View File

@@ -13,7 +13,8 @@ export LS_COLORS="$(vivid generate catppuccin-mocha)"
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=none,fg=white,bold"
#eval $(thefuck --alias)
alias tf=terraform
alias tf=tofu
alias terraform=tofu
alias k=kubectl
alias ls='ls --color'
alias vim='nvim'
@@ -22,19 +23,32 @@ alias pwsh='pwsh -NoLogo'
alias pbpaste='xclip -selection clipboard -o'
alias ls='eza'
alias ll='eza -l'
alias lg='lazygit'
alias tree='eza -T'
alias cat='bat -P'
alias network='nmtui'
alias docker='podman'
alias sudo='sudo '
alias grep='rg'
alias connectvpn='sudo openvpn ~/Documents/openvpn/openvpn.ovpn'
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux attach
if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
cwd=$(pwd)
session_name="goland-$(basename "$cwd" | tr -d '.')"
if tmux has-session -t $session_name; then
tmux attach -t $session_name
else
tmux new -s $session_name
fi
fi
#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
# exec tmux attach
#fi
if [[ -f "/opt/homebrew/bin/brew" ]] then
# If you're using macOS, you'll want this enabled
eval "$(/opt/homebrew/bin/brew shellenv)"
@@ -252,3 +266,6 @@ function open_command() {
}
if [ -e /home/user/.nix-profile/etc/profile.d/nix.sh ]; then . /home/user/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
# Install Ruby Gems to ~/gems
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"

View File

@@ -41,6 +41,7 @@ required_packages_apt:
- openresolv
- podman
- brightnessctl
- pavucontrol
flatpak_remote:
- {name: 'flathub', url: "https://dl.flathub.org/repo/flathub.flatpakrepo"}