[feat] Add neovide and floating terminal
This commit is contained in:
@@ -39,7 +39,6 @@
|
|||||||
Value = true;
|
Value = true;
|
||||||
Status = "default";
|
Status = "default";
|
||||||
};
|
};
|
||||||
# "browser.compactmode.show" = { Value = true; Status = "default"; };
|
|
||||||
"browser.urlbar.suggest.calculator" = {
|
"browser.urlbar.suggest.calculator" = {
|
||||||
Value = true;
|
Value = true;
|
||||||
Status = "default";
|
Status = "default";
|
||||||
|
|||||||
@@ -3,16 +3,18 @@ let
|
|||||||
# https://mipmip.github.io/home-manager-option-search/
|
# https://mipmip.github.io/home-manager-option-search/
|
||||||
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
||||||
lazy = false;
|
lazy = false;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./wezterm.nix
|
./wezterm.nix
|
||||||
] ++ (if device.isLinux then [ ../linux ] else [ ])
|
] ++ (if device.isLinux then [ ../linux ] else [ ])
|
||||||
++ (if !lazy then [ ./nvim ] else [ ]);
|
++ (if !lazy then [ ./nvim ] else [ ]);
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[
|
[
|
||||||
|
neovide
|
||||||
sqls
|
sqls
|
||||||
vcpkg
|
vcpkg
|
||||||
# vcpkg-tool
|
# vcpkg-tool
|
||||||
@@ -35,7 +37,6 @@ in {
|
|||||||
fd
|
fd
|
||||||
nixfmt
|
nixfmt
|
||||||
dust
|
dust
|
||||||
eza
|
|
||||||
cachix
|
cachix
|
||||||
rustup
|
rustup
|
||||||
cmake
|
cmake
|
||||||
@@ -118,19 +119,19 @@ in {
|
|||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
nv = "nvim";
|
nv = "neovide";
|
||||||
g = "git";
|
g = "git";
|
||||||
yy = "yazi";
|
yy = "yazi";
|
||||||
cd = "z";
|
cd = "z";
|
||||||
ls = "exa";
|
ls = "eza";
|
||||||
t = "${start-tmux}";
|
t = "${start-tmux}";
|
||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
g = "git";
|
g = "git";
|
||||||
|
|
||||||
};
|
};
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
|
yes | fish_config theme save "Catppuccin Mocha"
|
||||||
'';
|
'';
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
${pkgs.spotify-player}/bin/spotify_player generate fish | source
|
${pkgs.spotify-player}/bin/spotify_player generate fish | source
|
||||||
@@ -160,17 +161,18 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
settings = let flavour = "mocha"; # Replace with your preferred palette
|
settings =
|
||||||
in {
|
let flavour = "mocha"; # Replace with your preferred palette
|
||||||
# Other config here
|
in {
|
||||||
format = "$all"; # Remove this line to disable the default prompt format
|
# Other config here
|
||||||
palette = "catppuccin_${flavour}";
|
format = "$all"; # Remove this line to disable the default prompt format
|
||||||
} // builtins.fromTOML (builtins.readFile
|
palette = "catppuccin_${flavour}";
|
||||||
(pkgs.catppuccinThemes.starship + /palettes/${flavour}.toml));
|
} // builtins.fromTOML (builtins.readFile
|
||||||
|
(pkgs.catppuccinThemes.starship + /palettes/${flavour}.toml));
|
||||||
};
|
};
|
||||||
eza = {
|
eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAliases = true;
|
# enableAliases = true;
|
||||||
git = true;
|
git = true;
|
||||||
icons = true;
|
icons = true;
|
||||||
};
|
};
|
||||||
@@ -219,22 +221,20 @@ in {
|
|||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
username = device.user;
|
username = device.user;
|
||||||
homeDirectory = if device.isMac then
|
homeDirectory =
|
||||||
lib.mkForce "/Users/${device.user}"
|
if device.isMac then
|
||||||
else
|
lib.mkForce "/Users/${device.user}"
|
||||||
lib.mkForce "/home/${device.user}";
|
else
|
||||||
|
lib.mkForce "/home/${device.user}";
|
||||||
|
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
|
|
||||||
file = {
|
file = {
|
||||||
".config/tmux/sessions".source = ../../tmux/sessions;
|
".config/tmux/sessions".source = ../../tmux/sessions;
|
||||||
".config/macchina".source = ../../macchina;
|
".config/macchina".source = ../../macchina;
|
||||||
|
# catppuccin themes for fish
|
||||||
|
".config/fish/themes".source = pkgs.catppuccinThemes.fish + "/themes";
|
||||||
|
|
||||||
# # You can also set the file content immediately.
|
|
||||||
# ".gradle/gradle.properties".text = ''
|
|
||||||
# org.gradle.console=verbose
|
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
|
||||||
# '';
|
|
||||||
} // (if lazy then {
|
} // (if lazy then {
|
||||||
".config/nvim/lua".source = ../../nvim/lua;
|
".config/nvim/lua".source = ../../nvim/lua;
|
||||||
".config/nvim/init.lua".source = ../../nvim/init.lua;
|
".config/nvim/init.lua".source = ../../nvim/init.lua;
|
||||||
|
|||||||
@@ -105,8 +105,8 @@
|
|||||||
mini = {
|
mini = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ai.enable = true;
|
ai.enable = true;
|
||||||
pairs.enable = true;
|
# pairs.enable = true;
|
||||||
cursorword.enable = true;
|
# cursorword.enable = true;
|
||||||
starter.enable = true;
|
starter.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -138,6 +138,10 @@
|
|||||||
"<leader>p" = "[[<cmd>bprev<cr>]]";
|
"<leader>p" = "[[<cmd>bprev<cr>]]";
|
||||||
|
|
||||||
"<C-l>" = "[[<cmd>Outline<cr>]]";
|
"<C-l>" = "[[<cmd>Outline<cr>]]";
|
||||||
|
"<C-\\\\>" = "require('FTerm').toggle";
|
||||||
|
};
|
||||||
|
terminal = {
|
||||||
|
"<C-\\\\>" = "require('FTerm').toggle";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -179,6 +183,9 @@
|
|||||||
noice-nvim
|
noice-nvim
|
||||||
nvim-web-devicons
|
nvim-web-devicons
|
||||||
|
|
||||||
|
# Utils
|
||||||
|
FTerm-nvim
|
||||||
|
|
||||||
];
|
];
|
||||||
extraConfigLua = builtins.readFile ./extraConfig.lua;
|
extraConfigLua = builtins.readFile ./extraConfig.lua;
|
||||||
package = pkgs.neovim-nightly;
|
package = pkgs.neovim-nightly;
|
||||||
|
|||||||
@@ -133,3 +133,13 @@ require("noice").setup({
|
|||||||
lsp_doc_border = true, -- add a border to hover docs and signature help
|
lsp_doc_border = true, -- add a border to hover docs and signature help
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require 'FTerm'.setup({
|
||||||
|
border = 'double',
|
||||||
|
dimensions = {
|
||||||
|
height = 0.9,
|
||||||
|
width = 0.9,
|
||||||
|
},
|
||||||
|
cmd = "fish",
|
||||||
|
blend = 10,
|
||||||
|
})
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
mkCatppuccin = { owner ? "catppuccin", version ? "0.0.1", item, rev ? "main"
|
mkCatppuccin =
|
||||||
, sha256 ? pkgs.lib.fakeSha256 }:
|
{ owner ? "catppuccin"
|
||||||
|
, version ? "0.0.1"
|
||||||
|
, item
|
||||||
|
, rev ? "main"
|
||||||
|
, sha256 ? pkgs.lib.fakeSha256
|
||||||
|
}:
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
inherit version;
|
inherit version;
|
||||||
pname = item;
|
pname = item;
|
||||||
@@ -15,7 +20,8 @@ let
|
|||||||
cp -r ./* $out/
|
cp -r ./* $out/
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
|
||||||
bat = mkCatppuccin {
|
bat = mkCatppuccin {
|
||||||
item = "bat";
|
item = "bat";
|
||||||
@@ -31,4 +37,9 @@ in {
|
|||||||
item = "starship";
|
item = "starship";
|
||||||
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0";
|
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fish = mkCatppuccin {
|
||||||
|
item = "fish";
|
||||||
|
sha256 = "sha256-Dc/zdxfzAUM5NX8PxzfljRbYvO9f9syuLO8yBr+R3qg";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user