diff --git a/flake.nix b/flake.nix index 1ecda3f..ac70a0f 100644 --- a/flake.nix +++ b/flake.nix @@ -45,10 +45,7 @@ (editor == "nano")) then "exec " + term + " -e " + editor else - (if (editor == "neovide") then - "neovide -- --listen /tmp/nvimsocket" - else - editor)); + editor); }; # create patched nixpkgs diff --git a/user/app/browser/qutebrowser.nix b/user/app/browser/qutebrowser.nix index 91b3a25..2eb099c 100644 --- a/user/app/browser/qutebrowser.nix +++ b/user/app/browser/qutebrowser.nix @@ -115,7 +115,6 @@ if (os.path.isfile(secretFile)): import qutesecrets secretsExists = True -config.set('scrolling.smooth',True) config.set('qt.args',['ignore-gpu-blacklist','enable-gpu-rasterization','enable-native-gpu-memory-buffers','num-raster-threads=4']) config.load_autoconfig(True) diff --git a/user/app/doom-emacs/doom.nix b/user/app/doom-emacs/doom.nix index dde3ddf..c516fbe 100644 --- a/user/app/doom-emacs/doom.nix +++ b/user/app/doom-emacs/doom.nix @@ -48,6 +48,9 @@ in home.packages = (with pkgs-emacs; [ emacs-lsp-booster + nil + nixfmt + kotlin-language-server file wmctrl jshon diff --git a/user/app/nvim/init.lua b/user/app/nvim/init.lua index 1c842e2..64d8655 100644 --- a/user/app/nvim/init.lua +++ b/user/app/nvim/init.lua @@ -11,8 +11,6 @@ if vim.g.neovide then vim.g.neovide_transparency = 0.8 vim.g.neovide_floating_blur_amount_x = 8.0 vim.g.neovide_floating_blur_amount_y = 8.0 - vim.g.neovide_refresh_rate = 120 - vim.g.neovide_cursor_vfx_mode = "pixiedust" end vim.g.neovide_scale_factor = 1.0 diff --git a/user/app/nvim/lua/chadrc.lua b/user/app/nvim/lua/chadrc.lua index 0a54e69..5fd0c74 100644 --- a/user/app/nvim/lua/chadrc.lua +++ b/user/app/nvim/lua/chadrc.lua @@ -14,19 +14,4 @@ M.base46 = { -- }, } -M.ui = { - theme = "stylix", - nvdash = { - load_on_startup = true, - buttons = { - { " Find File", "Spc .", "Telescope find_files" }, - { "󰙅 Nvimtree", "SPC e", "NvimTreeToggle" }, - { " Projects ", "Spc p p", "Telescope workspaces" }, - { "󰯌 Vsplit ", "Spc w v", "vsplit" }, - { "󰯋 Split ", "Spc w s", "split" }, - { "󰋗 Help", "Spc c h", "NvCheatsheet" }, - }, - } -} - return M diff --git a/user/app/nvim/lua/configs/lspconfig.lua b/user/app/nvim/lua/configs/lspconfig.lua index ea9e812..478df01 100644 --- a/user/app/nvim/lua/configs/lspconfig.lua +++ b/user/app/nvim/lua/configs/lspconfig.lua @@ -4,7 +4,7 @@ require("nvchad.configs.lspconfig").defaults() local lspconfig = require "lspconfig" -- EXAMPLE -local servers = { "html", "cssls", "nil_ls", "marksman", "clangd", "pylsp", "ts_ls", "java_language_server", "dockerls", "docker_compose_language_service", "jsonls", "kotlin_language_server", "bashls", "yamlls", "sqls" } +local servers = { "html", "cssls" } local nvlsp = require "nvchad.configs.lspconfig" -- lsps with default config @@ -15,9 +15,6 @@ for _, lsp in ipairs(servers) do capabilities = nvlsp.capabilities, } end -lspconfig.gdscript.setup { - cmd = { "ncat", "localhost", "6005"} -} -- configuring single server, example: typescript -- lspconfig.ts_ls.setup { diff --git a/user/app/nvim/lua/mappings.lua b/user/app/nvim/lua/mappings.lua index 412948f..17f4517 100644 --- a/user/app/nvim/lua/mappings.lua +++ b/user/app/nvim/lua/mappings.lua @@ -17,30 +17,10 @@ vim.keymap.set("n", "", function() end) map("n", ";", ":", { desc = "CMD enter command mode" }) -map({"n", "t", "v", "i"}, "", ":", { desc = "CMD enter command mode" }) -map({"n", "t", "v", "i"}, "", "", { desc = "up" }) -map({"n", "t", "v", "i"}, "", "", { desc = "down" }) -map({"n", "t", "v", "i"}, "", "h", { desc = "switch window left" }) -map({"n", "t", "v", "i"}, "", "l", { desc = "switch window right" }) -map({"n", "t", "v", "i"}, "", "j", { desc = "switch window down" }) -map({"n", "t", "v", "i"}, "", "k", { desc = "switch window up" }) +map({"n", "v", "i"}, "", ":", { desc = "CMD enter command mode" }) map("n", ".", "Telescope find_files", { desc = "telescope find files" }) -map("n", "/", "Telescope live_grep", { desc = "telescope live grep" }) map("n", "gg", "Neogit", { desc = "Neogit status buffer" }) -map("n", "c", "gcc", { desc = "Toggle Comment", remap = true }) -map("v", "c", "gc", { desc = "Toggle comment", remap = true }) map("n", "pp", "Telescope workspaces", { desc = "telescope workspaces" }) -map("n", "pf", "Telescope find_files", { desc = "telescope find files" }) -map("n", "", "q", { desc = "quit" }) -map("n", "wd>", "q", { desc = "quit" }) -map("n", "ws", "split", { desc = "horizontal split" }) -map("n", "wS", "split", { desc = "horizontal split" }) -map("n", "wv", "vsplit", { desc = "vertical split" }) -map("n", "wV", "vsplit", { desc = "vertical split" }) -map({ "n", "t", "i", "v" }, "", "NvimTreeToggle", { desc = "nvimtree toggle window" }) -map({ "n", "t", "i", "v" }, "", function() - require("nvchad.term").toggle { pos = "sp", id = "htoggleTerm" } -end, { desc = "terminal toggleable horizontal term" }) map("i", "jk", "") -- map({ "n", "i", "v" }, "", " w ") diff --git a/user/app/nvim/lua/plugins/init.lua b/user/app/nvim/lua/plugins/init.lua index 69c205e..a433f1b 100644 --- a/user/app/nvim/lua/plugins/init.lua +++ b/user/app/nvim/lua/plugins/init.lua @@ -18,7 +18,7 @@ return { opts = { ensure_installed = { "vim", "lua", "vimdoc", - "html", "css", 'gdscript' + "html", "css" }, }, }, diff --git a/user/app/nvim/nvim.nix b/user/app/nvim/nvim.nix index 6944c74..4d41d0a 100644 --- a/user/app/nvim/nvim.nix +++ b/user/app/nvim/nvim.nix @@ -3,28 +3,9 @@ { home.packages = with pkgs; [ neovim - neovim-remote neovide lua-language-server - vscode-langservers-extracted - nil - clang-tools - marksman - python311Packages.python-lsp-server - typescript-language-server - java-language-server - dockerfile-language-server-nodejs - docker-compose-language-service - kotlin-language-server - bash-language-server - yaml-language-server - sqls - nmap ]; - programs.neovim = { - viAlias = true; - vimAlias = true; - }; home.file.".config/nvim".source = ./.; home.file.".config/nvim".recursive = true; home.file.".config/nvim/lua/themes/stylix.lua".source = config.lib.stylix.colors { diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 4df342e..078820e 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -49,6 +49,7 @@ in exec-once = hyprprofile Default + exec-once = emacs --daemon exec-once = ydotoold #exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent exec-once = nm-applet @@ -549,7 +550,14 @@ in if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null; then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi '') - ]) + (pkgs.makeDesktopItem { + name = "emacsclientnewframe"; + desktopName = "Emacs Client New Frame"; + exec = "emacsclient -c -a emacs"; + terminal = false; + icon = "emacs"; + type = "Application"; + })]) ++ (with pkgs-hyprland; [ ]) ++ (with pkgs-nwg-dock-hyprland; [ @@ -600,7 +608,7 @@ in home.file.".config/nwg-dock-pinned".text = '' nwggrid Alacritty - neovide + emacsclientnewframe qutebrowser brave-browser writer