diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index 42e3e03..5b0ae31 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -27,7 +27,7 @@ $menu = wofi
exec-once = swaync # notifications
exec-once = [workspace 1 silent] firefox
-exec-once = [workspace 3 silent] slack & clickup
+exec-once = [workspace 3 silent] slack
exec-once = waybar
exec-once = kdeconnectd
exec-once = copyq --start-server
@@ -36,7 +36,10 @@ exec-once = systemctl --user start hypepolkitagent # allows elevated requests vi
exec-once = hyprpaper
exec-once = hypridle
exec-once = udiskie # automount USB
-exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
+exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
+exec-once = systemctl --user start pipewire wireplumber
+exec-once = systemctl --user start xdg-desktop-portal-hyprland
+exec-once = systemctl --user start xdg-desktop-portal
#############################
### ENVIRONMENT VARIABLES ###
@@ -101,7 +104,7 @@ decoration {
}
-layerrule = ignorezero, wofi
+# layerrule = ignorezero, wofi
# https://wiki.hyprland.org/Configuring/Variables/#animations
@@ -151,6 +154,7 @@ dwindle {
misc {
force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
+ disable_splash_rendering = true
}
@@ -175,10 +179,6 @@ input {
}
}
-# https://wiki.hyprland.org/Configuring/Variables/#gestures
-gestures {
- workspace_swipe = false
-}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
@@ -199,7 +199,7 @@ $mainMod = SUPER # Sets "Windows/GUI" key as main modifier
bind = $mainMod, return, exec, $terminal
bind = $mainMod, Y, exec, $fileManager
bind = $mainMod, space, exec, $menu
-bind = $mainMod, n, exec, hyprlock
+bind = $mainMod SHIFT, Backspace, exec, hyprlock
bind = $mainMod, b, exec, firefox
bind = $mainMod, p, exec, grim -g "$(slurp)" - | swappy -f -
@@ -264,27 +264,39 @@ bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
### WINDOWS AND WORKSPACES ###
##############################
-# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
-# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
-
-#workspace rules
workspace = special:scratchpad, on-created-empty:[float] $terminal -e nvim /home/stunwin/Obsidian/vimvault/notes-home.md
-windowrulev2 = size 1800 800, center, workspace:special:scratchpad, class:^(kitty)$
-
+windowrule {
+ name = scratchpad
+ size = 1000 1300
+ center = on
+ match:workspace = special:scratchpad
+ match:class = ^(kitty)$
+}
# apps what float
-windowrule = float, class:^(zoom)$
-windowrule = float, class:^(hu.irl.cameractrls)$
-windowrule = float, class:^(showmethekey-gtk)$
-
-# Example windowrule v2
-# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
-
-# slack always lives on ws3
-windowrulev2 = workspace 3 silent, class:^(Slack)$
+windowrule = match:title Cameractrls, float 1
+windowrule = match:class zoom, float 1
+windowrule = match:class ^(showmethekey-gtk)$, float 1
+
+windowrule {
+ name = slack_to_3
+ workspace = 3 silent
+ match:class = ^(Slack)$
+}
+windowrule {
+ name = ignore_maximize
+ suppress_event = maximize
+ match:class = .*
+}
-# Ignore maximize requests from apps. You'll probably like this.
-windowrulev2 = suppressevent maximize, class:.*
-# Fix some dragging issues with XWayland
-windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
+windowrule {
+ name = fix_dragging_wayland
+ no_focus = on
+ match:class = ^$
+ match:title = ^$
+ match:xwayland = 1
+ match:float = 1
+ match:fullscreen = 0
+ match:pin = 0
+}
diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf
index 1cf480a..8810126 100644
--- a/.config/hypr/hyprlock.conf
+++ b/.config/hypr/hyprlock.conf
@@ -9,7 +9,7 @@
source = /home/stunwin/.config/hypr/colors.conf
$font = JetBrainsMono-NF-Medium
-$fightme = we'll be right back...
+$fightme = don't panic!
general {
hide_cursor = false
@@ -100,7 +100,7 @@ label {
label {
monitor =
text = $fightme
- font_size = 65
+ font_size = 100
font_family = $font
color = $fg
diff --git a/.config/hypr/hyprpaper.conf b/.config/hypr/hyprpaper.conf
index c01589e..bec87b4 100644
--- a/.config/hypr/hyprpaper.conf
+++ b/.config/hypr/hyprpaper.conf
@@ -1,3 +1,9 @@
+# preload = /home/stunwin/.config/hypr/pexels-cmonphotography-1809644.jpg
+# wallpaper = , /home/stunwin/.config/hypr/pexels-cmonphotography-1809644.jpg
-preload = /home/stunwin/.config/hypr/pexels-cmonphotography-1809644.jpg
-wallpaper = , /home/stunwin/.config/hypr/pexels-cmonphotography-1809644.jpg
+
+wallpaper {
+monitor = DP-4
+path = ~/.config/hypr/pexels-cmonphotography-1809644.jpg
+}
+splash = false
diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json
index e8d9949..a95f32a 100644
--- a/.config/nvim/lazy-lock.json
+++ b/.config/nvim/lazy-lock.json
@@ -1,16 +1,16 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
- "blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" },
+ "blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
"conform.nvim": { "branch": "master", "commit": "b4aab989db276993ea5dcb78872be494ce546521" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
- "fidget.nvim": { "branch": "main", "commit": "4d5858bd4c471c895060e1b9f3575f1551184dc5" },
+ "fidget.nvim": { "branch": "main", "commit": "3f5475949679953af6d78654db29b944fa826e6a" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" },
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
- "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
+ "lazydev.nvim": { "branch": "main", "commit": "258d2a5ef4a3e3d6d9ba9da72c9725c53e9afcbd" },
"lilguys.nvim": { "branch": "main", "commit": "885d3a490029c19273103772b2005ef235d77c17" },
- "mason-lspconfig.nvim": { "branch": "main", "commit": "1ec4da522fa49dcecee8d190efda273464dd2192" },
+ "mason-lspconfig.nvim": { "branch": "main", "commit": "a1067cf84b4ff81b66d2bf4d01f4cbdb5de40bd0" },
"mason-nvim-dap.nvim": { "branch": "main", "commit": "86389a3dd687cfaa647b6f44731e492970034baa" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
"mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" },
@@ -18,22 +18,22 @@
"mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" },
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
- "nvim-dap": { "branch": "master", "commit": "968f89f8aac11b6bdbfc942c71d3436658c1435f" },
+ "nvim-dap": { "branch": "master", "commit": "7367cec8e8f7a0b1e4566af9a7ef5959d11206a7" },
"nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
- "nvim-lint": { "branch": "master", "commit": "f126af5345c7472e9a0cdbe1d1a29209be72c4c4" },
- "nvim-lspconfig": { "branch": "master", "commit": "52364267cd7edbc0e9b25ab3bfb1c8f45dd58fde" },
+ "nvim-lint": { "branch": "master", "commit": "0864f81c681e15d9bdc1156fe3a17bd07db5a3ed" },
+ "nvim-lspconfig": { "branch": "master", "commit": "aafecf5b8bc0a768f1a97e3a6d5441e64dee79f9" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
- "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
- "nvim-web-devicons": { "branch": "master", "commit": "4ae47f4fb18e85b80e84b729974fe65483b06aaf" },
+ "nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
+ "nvim-web-devicons": { "branch": "master", "commit": "6e51ca170563330e063720449c21f43e27ca0bc1" },
"obsidian.nvim": { "branch": "main", "commit": "705cc9b4f66eca1e54040ac819102e80a32896d3" },
"one-small-step-for-vimkind": { "branch": "main", "commit": "91b4e0fb0d640def73812aceb22dafb99261dd67" },
"onedark.nvim": { "branch": "master", "commit": "de495fabe171d48aed5525f002d14414efcecbb2" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"quick-scope": { "branch": "master", "commit": "6cee1d9e0b9ac0fbffeb538d4a5ba9f5628fabbc" },
"render-markdown.nvim": { "branch": "main", "commit": "c3012098bd44381e3b96bbbbbcc21a54d45a286c" },
- "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
+ "snacks.nvim": { "branch": "main", "commit": "d67a47739dfc652cfcf66c59e929c704a854b37a" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
@@ -41,5 +41,5 @@
"toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" },
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" },
- "yazi.nvim": { "branch": "main", "commit": "66a659291f85517994886bb641567ce7c7d5368b" }
+ "yazi.nvim": { "branch": "main", "commit": "4561da5c81900212a425a40cf5385679dd8e61c1" }
}
diff --git a/.config/nvim/lua/autocmd.lua b/.config/nvim/lua/autocmd.lua
index fb94f12..ad64fa1 100644
--- a/.config/nvim/lua/autocmd.lua
+++ b/.config/nvim/lua/autocmd.lua
@@ -23,7 +23,7 @@ vim.api.nvim_create_autocmd({ 'BufWinEnter' }, {
vim.api.nvim_create_autocmd('FileType', {
pattern = 'markdown',
callback = function()
- vim.keymap.set('n', 'j', 'gj')
- vim.keymap.set('n', 'k', 'gk')
+ vim.keymap.set({ 'n', 'v' }, 'j', 'gj')
+ vim.keymap.set({ 'n', 'v' }, 'k', 'gk')
end,
})
diff --git a/.config/nvim/lua/keys.lua b/.config/nvim/lua/keys.lua
index d14250a..26d4db9 100644
--- a/.config/nvim/lua/keys.lua
+++ b/.config/nvim/lua/keys.lua
@@ -1,23 +1,17 @@
-- Set highlight on search, but clear on pressing in normal mode
vim.keymap.set('n', '', 'nohlsearch')
--- Diagnostic keymaps
-vim.keymap.set('n', 'tl', function()
- vim.diagnostic.enable(not vim.diagnostic.is_enabled())
-end, { desc = '[T]oggle [L]SP Diagnostics' })
-
-vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' })
-vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
-
--- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
--- or just use to exit terminal mode
vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' })
-- set default go-to-mark behavior for ' to jump to the cursor position
vim.keymap.set('n', "'", '`', { noremap = true })
-- actual shortcuts
-vim.keymap.set({ 'n', 'v' }, 'w', ':w', { noremap = true })
+vim.keymap.set({ 'n', 'v' }, 'w', ':w', { noremap = true, desc = '[W]rite File' })
+vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' })
+vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
+vim.keymap.set('n', 'nt', 'sp|te10_', { desc = '[N]ew [T]erminal' })
+vim.keymap.set('n', 'zz', 'za', { noremap = true, silent = true, desc = 'Toggle fold under cursor' })
-- See `:help wincmd` for a list of all window commands
vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' })
@@ -25,10 +19,18 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win
vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' })
+-- NOTE: TOGGLES below here
+vim.keymap.set('n', 'tl', function()
+ vim.diagnostic.enable(not vim.diagnostic.is_enabled())
+end, { desc = '[T]oggle [L]SP Diagnostics' })
+
vim.keymap.set('n', 't', '', { desc = '[T]oggles' })
-vim.keymap.set('n', 'ta', 'Hardtime toggle', { desc = '[T]oggle H[a]rdtime' })
-vim.keymap.set('n', 'nt', 'sp|te', { desc = '[N]ew [T]erminal' })
+vim.keymap.set('n', 'ta', 'Hardtime toggle', { desc = '[T]oggle H[a]rdtime' })
+vim.keymap.set('n', 'o', '', { desc = '[O]bsidian' })
+vim.keymap.set('n', 'oo', 'Obsidian', { desc = '[O]bsidian menu' })
+vim.keymap.set('n', 'on', 'Obsidian new', { desc = '[N]ew obsidian note' })
+vim.keymap.set('n', 'ot', 'Obsidian toc', { desc = '[T]able of contents' })
-- NOTE: this lil chunk here is to disable autoformatting when working on files with
-- weirdly-formatted arrays like keymaps
@@ -51,8 +53,6 @@ end
vim.keymap.set('n', 'tf', toggle_format, { noremap = true, silent = true, desc = '[T]oggle Auto[F]ormatting' })
-vim.keymap.set('n', 'zz', 'za', { noremap = true, silent = true, desc = 'Toggle fold under cursor' })
-
vim.api.nvim_create_user_command('FormatDisable', function(args)
if args.bang then
-- FormatDisable! will disable formatting just for this buffer
diff --git a/.config/nvim/lua/plugins/conform.lua b/.config/nvim/lua/plugins/conform.lua
index 791b45f..7d1f4d9 100644
--- a/.config/nvim/lua/plugins/conform.lua
+++ b/.config/nvim/lua/plugins/conform.lua
@@ -30,6 +30,9 @@ return { -- Autoformat
markdown = { 'markdownlint' },
gdscript = { 'gdformat' },
json = { 'fixjson' },
+ sql = { 'sqlfmt' },
+ css = { 'prettier' },
+ c = { 'clang-format' },
},
},
}
diff --git a/.config/nvim/lua/plugins/harpoon.lua b/.config/nvim/lua/plugins/harpoon.lua
index 4b7a2c2..abf191f 100644
--- a/.config/nvim/lua/plugins/harpoon.lua
+++ b/.config/nvim/lua/plugins/harpoon.lua
@@ -1,5 +1,6 @@
return {
'ThePrimeagen/harpoon',
+ enabled = true,
branch = 'harpoon2',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
diff --git a/.config/nvim/lua/plugins/lilguys.lua b/.config/nvim/lua/plugins/lilguys.lua
index ed2ef57..2a53135 100644
--- a/.config/nvim/lua/plugins/lilguys.lua
+++ b/.config/nvim/lua/plugins/lilguys.lua
@@ -1,5 +1,5 @@
return {
- 'stunwin/lilguys.nvim',
+ 'https://tangled.org/@stunwin.com/lilguys.nvim',
opts = {
keybind = '.', -- toggles a lil guy in at the front of the line. Respects whitespace.
insert_keybind = ',', -- adds a lil guy and a space right before your curor
diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua
index 08853fb..2c5686a 100644
--- a/.config/nvim/lua/plugins/lspconfig.lua
+++ b/.config/nvim/lua/plugins/lspconfig.lua
@@ -20,50 +20,60 @@ return { -- LSP Configuration & Plugins
--
-- In this case, we create a function that lets us more easily define mappings specific
-- for LSP related items. It sets the mode, buffer and description for us each time.
- local map = function(keys, func, desc)
- vim.keymap.set('n', keys, func, { buffer = event.buf, desc = 'LSP: ' .. desc })
+ local map = function(keys, func, desc, mode)
+ mode = mode or 'n'
+ vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = 'LSP: ' .. desc })
end
- -- Jump to the definition of the word under your cursor.
- -- This is where a variable was first declared, or where a function is defined, etc.
- -- To jump back, press .
- map('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
+ -- Rename the variable under your cursor.
+ -- Most Language Servers support renaming across files, etc.
+ map('grn', vim.lsp.buf.rename, '[R]e[n]ame')
+
+ -- Execute a code action, usually your cursor needs to be on top of an error
+ -- or a suggestion from your LSP for this to activate.
+ map('gra', vim.lsp.buf.code_action, '[G]oto Code [A]ction', { 'n', 'x' })
-- Find references for the word under your cursor.
- map('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
+ map('grr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
-- Jump to the implementation of the word under your cursor.
-- Useful when your language has ways of declaring types without an actual implementation.
- map('gI', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation')
+ map('gri', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation')
- -- Jump to the type of the word under your cursor.
- -- Useful when you're not sure what type a variable is and you want to see
- -- the definition of its *type*, not where it was *defined*.
- map('D', require('telescope.builtin').lsp_type_definitions, 'Type [D]efinition')
+ -- Jump to the definition of the word under your cursor.
+ -- This is where a variable was first declared, or where a function is defined, etc.
+ -- To jump back, press .
+ map('grd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
+
+ -- WARN: This is not Goto Definition, this is Goto Declaration.
+ -- For example, in C this would take you to the header.
+ map('grD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
-- Fuzzy find all the symbols in your current document.
-- Symbols are things like variables, functions, types, etc.
- map('ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
+ map('gO', require('telescope.builtin').lsp_document_symbols, 'Open Document Symbols')
-- Fuzzy find all the symbols in your current workspace.
-- Similar to document symbols, except searches over your entire project.
- map('ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
+ map('gW', require('telescope.builtin').lsp_dynamic_workspace_symbols, 'Open Workspace Symbols')
- -- Rename the variable under your cursor.
- -- Most Language Servers support renaming across files, etc.
- map('rn', vim.lsp.buf.rename, '[R]e[n]ame')
-
- -- Execute a code action, usually your cursor needs to be on top of an error
- -- or a suggestion from your LSP for this to activate.
- map('ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
-
- -- Opens a popup that displays documentation about the word under your cursor
- -- See `:help K` for why this keymap.
- map('K', vim.lsp.buf.hover, 'Hover Documentation')
-
- -- WARN: This is not Goto Definition, this is Goto Declaration.
- -- For example, in C this would take you to the header.
- map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
+ -- Jump to the type of the word under your cursor.
+ -- Useful when you're not sure what type a variable is and you want to see
+ -- the definition of its *type*, not where it was *defined*.
+ map('grt', require('telescope.builtin').lsp_type_definitions, '[G]oto [T]ype Definition')
+
+ -- This function resolves a difference between neovim nightly (version 0.11) and stable (version 0.10)
+ ---@param client vim.lsp.Client
+ ---@param method vim.lsp.protocol.Method
+ ---@param bufnr? integer some lsp support methods only in specific files
+ ---@return boolean
+ local function client_supports_method(client, method, bufnr)
+ if vim.fn.has 'nvim-0.11' == 1 then
+ return client:supports_method(method, bufnr)
+ else
+ return client.supports_method(method, { bufnr = bufnr })
+ end
+ end
-- The following two autocommands are used to highlight references of the
-- word under your cursor when your cursor rests there for a little while.
@@ -71,7 +81,7 @@ return { -- LSP Configuration & Plugins
--
-- When you move your cursor, the highlights will be cleared (the second autocommand).
local client = vim.lsp.get_client_by_id(event.data.client_id)
- if client and client.server_capabilities.documentHighlightProvider then
+ if client and client_supports_method(client, vim.lsp.protocol.Methods.textDocument_documentHighlight, event.buf) then
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
buffer = event.buf,
@@ -84,73 +94,75 @@ return { -- LSP Configuration & Plugins
group = highlight_augroup,
callback = vim.lsp.buf.clear_references,
})
+
+ vim.api.nvim_create_autocmd('LspDetach', {
+ group = vim.api.nvim_create_augroup('kickstart-lsp-detach', { clear = true }),
+ callback = function(event2)
+ vim.lsp.buf.clear_references()
+ vim.api.nvim_clear_autocmds { group = 'kickstart-lsp-highlight', buffer = event2.buf }
+ end,
+ })
end
- -- The following autocommand is used to enable inlay hints in your
+ -- The following code creates a keymap to toggle inlay hints in your
-- code, if the language server you are using supports them
--
-- This may be unwanted, since they displace some of your code
- if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
+ if client and client_supports_method(client, vim.lsp.protocol.Methods.textDocument_inlayHint, event.buf) then
map('th', function()
- vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
+ vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf })
end, '[T]oggle Inlay [H]ints')
end
end,
})
- vim.api.nvim_create_autocmd('LspDetach', {
- group = vim.api.nvim_create_augroup('kickstart-lsp-detach', { clear = true }),
- callback = function(event)
- vim.lsp.buf.clear_references()
- vim.api.nvim_clear_autocmds { group = 'kickstart-lsp-highlight', buffer = event.buf }
- end,
- })
-
local capabilities = vim.lsp.protocol.make_client_capabilities()
-- add autocomplete capes for cmp or blink
capabilities = vim.tbl_deep_extend('force', capabilities, require('blink.cmp').get_lsp_capabilities())
- -- godot
- require('lspconfig').gdscript.setup(capabilities)
-
- -- manually adding gleam LSP because it's not in mason
- require('lspconfig').gleam.setup {}
-
- local servers =
- {
- -- gleam = { mason = false },
- pyright = {
- settings = {
- python = {
- diagnostics = {
- disable = { 'reportArgumentType', 'reportAssignmentType' },
- },
+ -- trying some new stuff for 0.11
+ -- old config is:
+ -- require('lspconfig').gleam.setup {}
+ -- new config:
+ -- these are lsp servers that, for one reason or another, don't work with mason
+ local manual_servers = { 'gleam', 'gdscript', 'zig' }
+ for _, server in ipairs(manual_servers) do
+ vim.lsp.config(server, { capabilities = capabilities })
+ vim.lsp.enable(server)
+ end
+
+ local servers = {
+ -- gleam = { mason = false },
+ pyright = {
+ settings = {
+ python = {
+ diagnostics = {
+ disable = { 'reportArgumentType', 'reportAssignmentType' },
},
},
},
+ },
- lua_ls = {
- settings = {
- Lua = {
- completion = {
- callSnippet = 'Replace',
- },
- diagnostics = {
- disable = { 'lowercase-global' },
- },
- -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
- -- diagnostics = { disable = { 'missing-fields' } },
+ lua_ls = {
+ settings = {
+ Lua = {
+ completion = {
+ callSnippet = 'Replace',
+ },
+ diagnostics = {
+ disable = { 'lowercase-global' },
},
+ -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
+ -- diagnostics = { disable = { 'missing-fields' } },
},
},
- }, require('mason').setup()
+ },
+ }
-- You can add other tools here that you want Mason to install
-- for you, so that they are available from within Neovim.
local ensure_installed = vim.tbl_keys(servers or {})
- vim.list_extend(ensure_installed, {
- 'stylua', -- Used to format Lua code
- })
+ vim.list_extend(ensure_installed, {})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
require('mason-lspconfig').setup {
diff --git a/.config/nvim/lua/plugins/micropython.lua b/.config/nvim/lua/plugins/micropython.lua
index ea017b7..3edda39 100644
--- a/.config/nvim/lua/plugins/micropython.lua
+++ b/.config/nvim/lua/plugins/micropython.lua
@@ -1,5 +1,6 @@
return {
'jim-at-jibba/micropython.nvim',
+ enabled = false,
dependencies = { 'akinsho/toggleterm.nvim', 'stevearc/dressing.nvim' },
keys = {
{
diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua
index 329dfc1..d4f1442 100644
--- a/.config/nvim/lua/plugins/telescope.lua
+++ b/.config/nvim/lua/plugins/telescope.lua
@@ -42,12 +42,13 @@ return { -- Fuzzy Finder (files, lsp, etc)
-- See `:help telescope.builtin`
local builtin = require 'telescope.builtin'
+ vim.keymap.set('n', 's', '', { desc = '[S]earch...' })
vim.keymap.set('n', 'sh', builtin.help_tags, { desc = '[S]earch [H]elp' })
vim.keymap.set('n', 'sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' })
vim.keymap.set('n', 'sf', builtin.find_files, { desc = '[S]earch [F]iles' })
vim.keymap.set('n', 'ss', builtin.builtin, { desc = '[S]earch [S]elect Telescope' })
vim.keymap.set('n', 'sw', builtin.grep_string, { desc = '[S]earch current [W]ord' })
- vim.keymap.set('n', 'sg', builtin.live_grep, { desc = '[S]earch by [G]rep' })
+ vim.keymap.set('n', 'sg', builtin.git_files, { desc = '[S]earch in [G]it repo' })
vim.keymap.set('n', 'sd', builtin.diagnostics, { desc = '[S]earch [D]iagnostics' })
vim.keymap.set('n', 'sr', builtin.resume, { desc = '[S]earch [R]esume' })
vim.keymap.set('n', 's.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
diff --git a/.config/nvim/lua/plugins/which-key.lua b/.config/nvim/lua/plugins/which-key.lua
index 3f2b02a..b6f96e5 100644
--- a/.config/nvim/lua/plugins/which-key.lua
+++ b/.config/nvim/lua/plugins/which-key.lua
@@ -4,23 +4,23 @@ return { -- Useful plugin to show you pending keybinds.
config = function() -- This is the function that runs, AFTER loading
require('which-key').setup()
- -- Document existing key chains
- keys = {
- { 'c', group = '[C]ode' },
- { 'c_', hidden = true },
- { 'd', group = '[D]ocument' },
- { 'd_', hidden = true },
- { 'h', group = 'Git [H]unk' },
- { 'h_', hidden = true },
- { 'r', group = '[R]ename' },
- { 'r_', hidden = true },
- { 's', group = '[S]earch' },
- { 's_', hidden = true },
- { 't', group = '[T]oggle' },
- { 't_', hidden = true },
- { 'w', group = '[W]orkspace' },
- { 'w_', hidden = true },
- }
+ -- -- Document existing key chains
+ -- keys = {
+ -- { 'c', group = '[C]ode' },
+ -- { 'c_', hidden = true },
+ -- { 'd', group = '[D]ocument' },
+ -- { 'd_', hidden = true },
+ -- { 'h', group = 'Git [H]unk' },
+ -- { 'h_', hidden = true },
+ -- { 'r', group = '[R]ename' },
+ -- { 'r_', hidden = true },
+ -- { 's', group = '[S]earch' },
+ -- { 's_', hidden = true },
+ -- { 't', group = '[T]oggle' },
+ -- { 't_', hidden = true },
+ -- { 'w', group = '[W]orkspace' },
+ -- { 'w_', hidden = true },
+ -- }
-- visual mode
-- require('which-key').register({
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua
index 9d90577..c4f2500 100644
--- a/.config/nvim/lua/settings.lua
+++ b/.config/nvim/lua/settings.lua
@@ -22,7 +22,7 @@ vim.opt.smartcase = true
-- Keep signcolumn on by default
vim.opt.signcolumn = 'yes'
--- Decrease update time
+-- Swap file refresh time
vim.opt.updatetime = 250
-- Decrease mapped sequence wait time
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
index 8ad3eb9..c02d6f2 100644
--- a/.config/waybar/config.jsonc
+++ b/.config/waybar/config.jsonc
@@ -91,7 +91,7 @@
},
"custom/paru": {
- "format": "{} ",
+ "format": "{} ",
"tooltip-format": "There are {} packages with available updates. Click to make it happen.",
"interval": 3600,
"exec": "paru -Qu | wc -l",
diff --git a/.config/waybar/custom/player.sh b/.config/waybar/custom/player.sh
index 8a61642..19d85ff 100755
--- a/.config/waybar/custom/player.sh
+++ b/.config/waybar/custom/player.sh
@@ -6,7 +6,7 @@ player=${player:-$(playerctl -l 2>/dev/null | head -n 1)}
# If no player found
if [ -z "$player" ]; then
- echo "{\"text\": \" No media\", \"tooltip\": \"Nothing playing\"}"
+ echo "{\"text\": \" No media\", \"tooltip\": \"Nothing playing\"}"
exit
fi
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
index 2b6cb18..51de376 100644
--- a/.config/waybar/style.css
+++ b/.config/waybar/style.css
@@ -1,188 +1,182 @@
@import url("colors.css");
* {
- /* `otf-font-awesome` is required to be installed for icons */
- font-family: FontAwesome, JetBrainsMono-NF-Medium;
- font-size: 18px;
+ /* `otf-font-awesome` is required to be installed for icons */
+ /* font-family: FontAwesome, JetBrainsMono-NF-Medium; */
+ font-family: "Monaspace Nerd Font";
+ font-size: 18px;
}
window#waybar {
- /* margin-top: 5px; */
- /* border-top: 2px solid @fg; */
- background-color: @bg;
- border-bottom: 3px solid @bg_d;
- color: @fg;
- transition-property: background-color;
- transition-duration: .5s;
+ /* margin-top: 5px; */
+ /* border-top: 2px solid @fg; */
+ background-color: @bg;
+ border-bottom: 3px solid @bg_d;
+ color: @fg;
+ transition-property: background-color;
+ transition-duration: 0.5s;
}
window#waybar.hidden {
- opacity: 0.2;
+ opacity: 0.2;
}
-
window#waybar.termite {
- background-color: #3F3F3F;
+ background-color: #3f3f3f;
}
window#waybar.chromium {
- background-color: #000000;
- border: none;
+ background-color: #000000;
+ border: none;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
- margin-left: 0;
+ margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
- margin-right: 0;
+ margin-right: 0;
}
button {
- /* Use box-shadow instead of border so the text isn't offset */
- box-shadow: inset 0 -3px transparent;
- /* Avoid rounded borders under each button name */
- border: none;
- border-radius: 0;
+ /* Use box-shadow instead of border so the text isn't offset */
+ box-shadow: inset 0 -3px transparent;
+ /* Avoid rounded borders under each button name */
+ border: none;
+ border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
- background: inherit;
- box-shadow: inset 0 -3px @fg;
+ background: inherit;
+ box-shadow: inset 0 -3px @fg;
}
/* you can set a style on hover for any module like this */
#workspaces button {
- padding: 0 10px;
- background-color: transparent;
- color: @fg;
+ padding: 0 10px;
+ background-color: transparent;
+ color: @fg;
}
#workspaces button.active {
- padding: 0 20px;
- background-color: @bg_blue;
- color: @bg;
- transition-property: padding, background-color;
- transition-duration: .5s;
+ padding: 0 20px;
+ background-color: @bg_blue;
+ color: @bg;
+ transition-property: padding, background-color;
+ transition-duration: 0.5s;
}
#workspaces button:hover {
- box-shadow: inset 0 -3px @fg;
+ box-shadow: inset 0 -3px @fg;
}
#workspaces button.focused {
- background-color: @grey;
- box-shadow: inset 0 -3px @fg;
+ background-color: @grey;
+ box-shadow: inset 0 -3px @fg;
}
#workspaces button.urgent {
- border-bottom: 3px solid @red;
- color: @fg;
+ border-bottom: 3px solid @red;
+ color: @fg;
}
#workspaces button.empty {
- color: @grey;
+ color: @grey;
}
-
#clock,
#battery,
#pulseaudio,
#custom-media,
#custom-paru,
#tray {
- padding: 0 10px;
- color: @white;
- border-bottom: 3px solid @bg_d;
+ padding: 0 10px;
+ color: @white;
+ border-bottom: 3px solid @bg_d;
}
-
#window,
#workspaces,
#custom-player {
- background-color: @bgl;
- padding: 0px 10px;
- margin: 0 4px;
+ background-color: @bgl;
+ padding: 0px 10px;
+ margin: 0 4px;
}
#custom-player {
- margin: 0 0px;
- border-bottom: 3px solid @red;
-
+ margin: 0 0px;
+ border-bottom: 3px solid @red;
}
#custom-player:hover {
- background-color: @red;
- color: @bg;
-
+ background-color: @red;
+ color: @bg;
}
#clock {
- background-color: @bg;
+ background-color: @bg;
}
#cpu {
- background-color: @green;
- color: @bg;
+ background-color: @green;
+ color: @bg;
}
#memory {
- background-color: @purple;
- color: @bg;
+ background-color: @purple;
+ color: @bg;
}
-
#network {
- background-color: @bg_blue;
- color: @bg;
+ background-color: @bg_blue;
+ color: @bg;
}
#network:hover {
- background-color: @blue;
+ background-color: @blue;
}
#network.disconnected {
- background-color: @red;
+ background-color: @red;
}
#pulseaudio {
- background-color: @bgl;
- border-bottom: 3px solid @bg_yellow;
- color: @fg;
+ background-color: @bgl;
+ border-bottom: 3px solid @bg_yellow;
+ color: @fg;
}
#pulseaudio:hover {
- background-color: @bg_yellow;
- color: @bg;
+ background-color: @bg_yellow;
+ color: @bg;
}
#pulseaudio.muted {
- background-color: #90b1b1;
- color: #2a5c45;
+ background-color: #90b1b1;
+ color: #2a5c45;
}
#tray {
- background-color: @bgl;
- color: @fg;
+ background-color: @bgl;
+ color: @fg;
}
#tray > .passive {
- -gtk-icon-effect: dim;
+ -gtk-icon-effect: dim;
}
#tray > .needs-attention {
- -gtk-icon-effect: highlight;
- background-color: @red;
+ -gtk-icon-effect: highlight;
+ background-color: @red;
}
-
#custom-paru {
- background-color: @bgl;
- border-bottom: 3px solid @bg_blue;
- color: @fg;
+ background-color: @bgl;
+ border-bottom: 3px solid @bg_blue;
+ color: @fg;
}
#custom-paru:hover {
- background-color: @bg_blue;
- color: @bg;
+ background-color: @bg_blue;
+ color: @bg;
}
diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml
index b0e5eb6..f1f60b1 100644
--- a/.config/yazi/keymap.toml
+++ b/.config/yazi/keymap.toml
@@ -272,6 +272,11 @@ keymap = [
"y",
], run = "cd ~/.config/yazi/", desc = "Go to the [y]azi directory" },
+ { on = [
+ "g",
+ "k",
+ ], run = "cd ~/qmk_firmware/keyboards", desc = "Go to QMK [k]eymap directory" },
+
{ on = [
"g",
"",
diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml
index c25206a..a390fdc 100644
--- a/.config/yazi/yazi.toml
+++ b/.config/yazi/yazi.toml
@@ -28,7 +28,7 @@ ueberzug_offset = [0, 0, 0, 0]
[opener]
edit = [
- { run = '${EDITOR:=nvim} "$@"', desc = "$EDITOR", block = true, for = "unix" },
+ { run = '${EDITOR:=nvim} "$@"', desc = "nvim", block = true, for = "unix" },
{ run = 'code %*', orphan = true, desc = "code", for = "windows" },
{ run = 'code -w %*', block = true, desc = "code (block)", for = "windows" },
]
@@ -114,6 +114,7 @@ rules = [
# Fallback
{ name = "*", use = [
"open",
+ "edit",
"reveal",
] },
]
diff --git a/.zshrc b/.zshrc
index aa01d39..1229a28 100644
--- a/.zshrc
+++ b/.zshrc
@@ -102,6 +102,12 @@ alias py="python3"
alias jpgconvert="~/Scripts/jpgconvert.sh"
alias ls="lsd"
alias lkj="exit"
+alias sunshineserver="systemctl enable avahi-daemon"
+alias adb="/home/stunwin/echo_show/platform-tools/adb"
+
+gleport() {
+cd ~/code/gleport && gleam run -- "$@"
+}
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
@@ -118,3 +124,4 @@ function yy() {
rm -f -- "$tmp"
}
+export PATH="$HOME/.npm-global/bin:$PATH"