From a7e1fcd0d9f59275043ed2486e32924f1f4ac546 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 11 Oct 2024 00:46:14 +0200 Subject: [PATCH] Install some Gnome extensions Disable neovim auto formatting --- configuration.nix | 4 +++ home.nix | 14 +++++++++- modules/home-manager/neovim/none-ls.lua | 36 ++++++++++++------------- 3 files changed, 35 insertions(+), 19 deletions(-) diff --git a/configuration.nix b/configuration.nix index 9436d87..1ca77ad 100644 --- a/configuration.nix +++ b/configuration.nix @@ -82,6 +82,10 @@ pop-shell window-is-ready-remover random-wallpaper + workspaces-indicator-by-open-apps + vitals + tailscale-status + runcat ]); gnome.excludePackages = (with pkgs; [ diff --git a/home.nix b/home.nix index 463c8b2..a8d1638 100644 --- a/home.nix +++ b/home.nix @@ -300,10 +300,22 @@ disable-extension-version-validation = true; enabled-extensions = [ - "workspace-indicator@gnome-shell-extensions.gcampax.github.com" + "workspaces-by-open-apps@favo02.github.com" "pop-shell@system76.com" "windowIsReady_Remover@nunofarruca@gmail.com" "randomwallpaper@iflow.space" + "Vitals@CoreCoding.com" + "tailscale-status@maxgallup.github.com" + "runcat@kolesnikov.se" + ]; + }; + + "org/gnome/shell/extensions/vitals" = { + icon-style = 1; + + hot-sensors = [ + "_memory_usage_" + "_storage_free_" ]; }; diff --git a/modules/home-manager/neovim/none-ls.lua b/modules/home-manager/neovim/none-ls.lua index 1840b2d..afc9805 100644 --- a/modules/home-manager/neovim/none-ls.lua +++ b/modules/home-manager/neovim/none-ls.lua @@ -20,24 +20,24 @@ require("null-ls").setup({ }, -- configure format on save - on_attach = function(current_client, bufnr) - if current_client.supports_method("textDocument/formatting") then - vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr }) - vim.api.nvim_create_autocmd("BufWritePre", { - group = augroup, - buffer = bufnr, - callback = function() - vim.lsp.buf.format({ - filter = function(client) - -- only use null-ls for formatting instead of lsp server - return client.name == "null-ls" - end, - bufnr = bufnr, - }) - end, - }) - end - end, + -- on_attach = function(current_client, bufnr) + -- if current_client.supports_method("textDocument/formatting") then + -- vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr }) + -- vim.api.nvim_create_autocmd("BufWritePre", { + -- group = augroup, + -- buffer = bufnr, + -- callback = function() + -- vim.lsp.buf.format({ + -- filter = function(client) + -- -- only use null-ls for formatting instead of lsp server + -- return client.name == "null-ls" + -- end, + -- bufnr = bufnr, + -- }) + -- end, + -- }) + -- end + -- end, }) -- formatting command