From a33e1b478692bd45207b7ebaafbd31637046635a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 8 Feb 2024 11:31:17 +0100 Subject: [PATCH] Add nvim-spectre --- symlinks/config/nvim/lua/esensar/init/plugins.lua | 1 + symlinks/config/nvim/lua/esensar/lsp/servers.lua | 1 + symlinks/config/nvim/plugin/spectre.lua | 3 +++ symlinks/config/sway/conf.d/15_workspace_assignment | 1 + symlinks/config/ulauncher/settings.json | 2 +- symlinks/config/waybar/config | 2 +- symlinks/config/waybar/style.css | 4 ++++ 7 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 symlinks/config/nvim/plugin/spectre.lua diff --git a/symlinks/config/nvim/lua/esensar/init/plugins.lua b/symlinks/config/nvim/lua/esensar/init/plugins.lua index 8a40a38..cca55d1 100644 --- a/symlinks/config/nvim/lua/esensar/init/plugins.lua +++ b/symlinks/config/nvim/lua/esensar/init/plugins.lua @@ -38,6 +38,7 @@ return require("lazy").setup({ "j-hui/fidget.nvim", -- notifications UI "MunifTanjim/nui.nvim", -- General UI "jiangmiao/auto-pairs", -- Autoclosing of brackets and quotes + "nvim-pack/nvim-spectre", -- Find and replace -- Tools "direnv/direnv.vim", -- Integration with Direnv diff --git a/symlinks/config/nvim/lua/esensar/lsp/servers.lua b/symlinks/config/nvim/lua/esensar/lsp/servers.lua index d1601a4..032fc3e 100644 --- a/symlinks/config/nvim/lua/esensar/lsp/servers.lua +++ b/symlinks/config/nvim/lua/esensar/lsp/servers.lua @@ -71,6 +71,7 @@ local servers = { "tsserver", "vale_ls", "vimls", + "wgsl_analyzer", "zls", } for _, lsp in ipairs(servers) do diff --git a/symlinks/config/nvim/plugin/spectre.lua b/symlinks/config/nvim/plugin/spectre.lua new file mode 100644 index 0000000..18462f9 --- /dev/null +++ b/symlinks/config/nvim/plugin/spectre.lua @@ -0,0 +1,3 @@ +vim.keymap.set("n", "", function() + require("spectre").toggle() +end) diff --git a/symlinks/config/sway/conf.d/15_workspace_assignment b/symlinks/config/sway/conf.d/15_workspace_assignment index 495b938..d067c3d 100644 --- a/symlinks/config/sway/conf.d/15_workspace_assignment +++ b/symlinks/config/sway/conf.d/15_workspace_assignment @@ -6,6 +6,7 @@ assign [class="discord"] $chat_workspace assign [instance="element"] $chat_workspace assign [class="Gvim"] $editor_workspace assign [class="jetbrains-idea-ce"] $ide_workspace +assign [class="jetbrains-idea"] $ide_workspace assign [class="libreoffice"] $note_workspace assign [class="jetbrains-studio"] $ide_workspace assign [class="jetbrains-rider"] $ide_workspace diff --git a/symlinks/config/ulauncher/settings.json b/symlinks/config/ulauncher/settings.json index 39570e7..9ba9367 100644 --- a/symlinks/config/ulauncher/settings.json +++ b/symlinks/config/ulauncher/settings.json @@ -1,7 +1,7 @@ { "blacklisted-desktop-dirs": "/usr/share/locale:/usr/share/app-install:/usr/share/kservices5:/usr/share/fk5:/usr/share/kservicetypes5:/usr/share/applications/screensavers:/usr/share/kde4:/usr/share/mimelnk", "clear-previous-query": true, - "disable-desktop-filters": false, + "disable-desktop-filters": true, "grab-mouse-pointer": false, "hotkey-show-app": "Super_Lspace", "render-on-screen": "mouse-pointer-monitor", diff --git a/symlinks/config/waybar/config b/symlinks/config/waybar/config index 576cfaa..64a6c64 100644 --- a/symlinks/config/waybar/config +++ b/symlinks/config/waybar/config @@ -125,7 +125,7 @@ "sway/workspaces": { "all-outputs": false, "disable-scroll": true, - "persistent_workspaces": { + "persistent-workspaces": { "": [] }, "format": "{icon}{name}", diff --git a/symlinks/config/waybar/style.css b/symlinks/config/waybar/style.css index d660ed6..3921ea5 100644 --- a/symlinks/config/waybar/style.css +++ b/symlinks/config/waybar/style.css @@ -56,6 +56,10 @@ font-size: 14px; } +#workspaces { + font-family: SauceCodePro Nerd Font; +} + /* Each module */ #battery, #clock,