diff --git a/.config/nvim/lua/user/keymaps.lua b/.config/nvim/lua/user/keymaps.lua index fa36832..ab0c4a9 100644 --- a/.config/nvim/lua/user/keymaps.lua +++ b/.config/nvim/lua/user/keymaps.lua @@ -49,5 +49,8 @@ keymap("n", "", ":tabprevious", opts) -- Copy to clipboard keymap("v", "", "\"+y", opts) +-- Copy relative path of current ile to clipboard +keymap("n", "", ":let @+ = expand(\"%\")", opts) + --Close buffer -- keymap("n", "", ":bd | bp ", opts) diff --git a/.config/nvim/lua/user/plugins/snipptes.lua b/.config/nvim/lua/user/plugins/snipptes.lua index caefdc5..070fd31 100644 --- a/.config/nvim/lua/user/plugins/snipptes.lua +++ b/.config/nvim/lua/user/plugins/snipptes.lua @@ -1,11 +1,18 @@ return { { "L3MON4D3/LuaSnip", - event = "VeryLazy", - config = true, + lazy = false, + opts = { + region_check_events = "CursorHold,InsertLeave,InsertEnter", + -- those are for removing deleted snippets, also a common problem + delete_check_events = "TextChanged,InsertEnter", + }, + config = function(_, opts) + local luasnip = require("luasnip") + luasnip.setup(opts) + end, dependencies = { "rafamadriz/friendly-snippets", - -- "dsznajder/vscode-es7-javascript-react-snippets", } } } diff --git a/.config/proxy/config.pac b/.config/proxy/config.pac index 74ae5e9..ff0e418 100644 --- a/.config/proxy/config.pac +++ b/.config/proxy/config.pac @@ -2,8 +2,8 @@ function FindProxyForURL(url, host) { // Proxy server (customize this line) var proxy = "PROXY 91.199.147.158:3128"; - // Domains related to ChatGPT/OpenAI var proxy_domains = [ + // Domains related to ChatGPT/OpenAI "chatgpt.com", "chat.openai.com", "openai.com", @@ -11,6 +11,7 @@ function FindProxyForURL(url, host) { "platform.openai.com", "auth0.openai.com", + // Youtube related domains "*.youtube.com", "youtube.com", "*.googlevideo.com", diff --git a/.zprofile b/.zprofile index ec25ec9..8a9e448 100644 --- a/.zprofile +++ b/.zprofile @@ -3,6 +3,8 @@ export PATH=~/.local/bin:~/.cargo/bin:$PATH export EDITOR=nvim export SUDO_EDITOR=/usr/bin/nvim export XDG_CURRENT_DESKTOP=Sway +export XDG_SESSION_DESKTOP=sway +export XDG_SESSION_TYPE=wayland export HOMEBREW_NO_AUTO_UPDATE=true export ELECTRON_OZONE_PLATFORM_HINT=auto # Created by `pipx` on 2024-10-08 14:33:09 @@ -13,6 +15,10 @@ export PATH="$PATH:/Users/nikitabykov/Library/Application Support/Coursier/bin" # <<< coursier install directory <<< eval "$(/opt/homebrew/bin/brew shellenv)" +if command -v dbus-update-activation-environment >/dev/null; then + dbus-update-activation-environment XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE +fi + if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then exec sway fi diff --git a/.zshrc b/.zshrc index a118a0b..73ae62a 100644 --- a/.zshrc +++ b/.zshrc @@ -31,6 +31,7 @@ alias toggle_vpn='sudo toggle_vpn' alias rr='ranger' # naviagtion aliases +alias masters='cd /home/nikita/Documents/woopvault/University/masters/indicators_monitoring' alias dots='cd ~/dotfiles' alias notes='cd ~/Documents/woopvault/' alias work='cd ~/Code/maxim/'