This commit is contained in:
Alex Davies 2024-05-26 12:57:09 -03:00
parent 67decdc3c8
commit 52727239f6
3 changed files with 34 additions and 18 deletions

View File

@ -14,6 +14,8 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixvim.url = "github:nix-community/nixvim";
plasma-manager = { plasma-manager = {
url = "github:pjones/plasma-manager"; url = "github:pjones/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -27,7 +29,6 @@
# everything match nicely? Try nix-colors! # everything match nicely? Try nix-colors!
nix-colors.url = "github:misterio77/nix-colors"; nix-colors.url = "github:misterio77/nix-colors";
nixvim.url = "github:nix-community/nixvim";
}; };
@ -35,6 +36,7 @@
self, self,
nixpkgs, nixpkgs,
home-manager, home-manager,
nixvim,
plasma-manager, plasma-manager,
ros, ros,
agenix, agenix,

View File

@ -10,14 +10,7 @@
}: { }: {
# You can import other home-manager modules here # You can import other home-manager modules here
imports = [ imports = [
# If you want to use modules your own flake exports (from modules/home-manager): inputs.nixvim.homeManagerModules.nixvim
# outputs.homeManagerModules.example
# Or modules exported from other flakes (such as nix-colors):
# inputs.nix-colors.homeManagerModules.default
# You can also split up your configuration and import pieces of it here:
# ./nvim.nix
]; ];
nixpkgs = { nixpkgs = {
@ -82,19 +75,38 @@
}; };
}; };
programs.neovim = { programs.nixvim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
vimdiffAlias = true; plugins.bufferline.enable = true;
plugins = with pkgs.vimPlugins; [ plugins.which-key.enable = true;
nvim-lspconfig globals.mapleader = " ";
nvim-treesitter.withAllGrammars keymaps = [
vim-bufferline
tokyonight-nvim
{ {
plugin = which-key-nvim; mode = "n";
key = "<C-a>c";
options = { noremap = true; desc = "Open new terminal"; };
action = "<cmd>:term<cr>";
}
{
mode = "n";
key = "<C-a>x";
options = { noremap = true; desc = "Close tab"; };
action = "<cmd>:bd<cr>";
}
{
mode = "n";
key = "<C-a>s";
options = { noremap = true; desc = "Pick buffer"; };
action = "<cmd>:BufferLinePick<CR>";
}
{
mode = "t";
key = "<Esc><Esc>";
options = { noremap = true; };
action = "<C-\\><C-n>";
} }
]; ];
}; };
@ -135,6 +147,7 @@
pkgs.wl-clipboard pkgs.wl-clipboard
pkgs.atool pkgs.atool
pkgs.zig pkgs.zig
pkgs.comma
(pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "Hack"]; }) (pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "Hack"]; })

View File

@ -19,7 +19,7 @@
# colorScheme = "BreezeDark"; # colorScheme = "BreezeDark";
# }; # };
shortcuts = { shortcuts = {
"services.org.kde.konsole.desktop"."NewWindow" = "Meta+Return"; "services/org.kde.konsole.desktop"."_launch" = ["Meta+Return" "Ctrl+Alt+T"];
"kwin"."Window Close" = ["Meta+Shift+C" "Alt+F4"]; "kwin"."Window Close" = ["Meta+Shift+C" "Alt+F4"];
"kwin"."Cube" = "Meta+C"; "kwin"."Cube" = "Meta+C";
}; };
@ -59,6 +59,7 @@
configFile = { configFile = {
"kwinrc"."Desktops"."Number"."value" = 10; "kwinrc"."Desktops"."Number"."value" = 10;
"kwinrc"."Desktops"."Rows"."value" = 2; "kwinrc"."Desktops"."Rows"."value" = 2;
"kwinrc"."Plugins"."cubeEnabled" = true;
}; };
}; };
} }