nvf getting better

This commit is contained in:
Vali 2024-07-06 18:17:02 +02:00
commit a9a0264011
12 changed files with 24 additions and 41 deletions

View file

@ -1,10 +1,6 @@
{ {
description = "My NixOS config flake"; description = "My NixOS config flake";
outputs = inputs @ { outputs = inputs @ {nixpkgs, ...}: {
self,
nixpkgs,
...
}: {
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
nixosConfigurations = import ./hosts {inherit inputs;}; nixosConfigurations = import ./hosts {inherit inputs;};
}; };

View file

@ -36,10 +36,7 @@
}; };
}; };
}; };
# boot.kernelModules = [ "v4l2loopback" ];
boot.kernelPackages = pkgs.linuxPackages_xanmod_stable; boot.kernelPackages = pkgs.linuxPackages_xanmod_stable;
# boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
# services.picom.enable = true;
modules = { modules = {
other = { other = {
system = { system = {

View file

@ -4,10 +4,11 @@
# General # General
"<leader>fd".action = ":lua vim.g.formatsave = not vim.g.formatsave<CR>"; "<leader>fd".action = ":lua vim.g.formatsave = not vim.g.formatsave<CR>";
"<leader>zt".action = ":<C-U>let g:default_terminal = v:count1<CR>"; "<leader>zt".action = ":<C-U>let g:default_terminal = v:count1<CR>";
"<leader>e".action = ":NvimTreeToggle<CR>"; "<leader>e".action = ":<leader>tf";
"<leader>ld".action = ":lua vim.diagnostic.setqflist({open = true})<CR>"; "<leader>ld".action = ":lua vim.diagnostic.setqflist({open = true})<CR>";
"<leader>lf".action = ":lua vim.lsp.buf.format()<CR>"; "<leader>lf".action = ":lua vim.lsp.buf.format()<CR>";
"<leader>li".action = ":lua vim.lsp.buf.implementation()<CR>"; "<leader>li".action = ":lua vim.lsp.buf.implementation()<CR>";
"<leader>;".action = "A;<esc>"; # Append #
# Diffview # Diffview
"<leader>gdq".action = ":DiffviewClose<CR>"; "<leader>gdq".action = ":DiffviewClose<CR>";
@ -27,6 +28,11 @@
"<leader>gD".action = "<cmd>Gitsigns diffthis HEAD<CR>"; "<leader>gD".action = "<cmd>Gitsigns diffthis HEAD<CR>";
"<leader>gw".action = "<cmd>Gitsigns toggle_word_diff<CR>"; "<leader>gw".action = "<cmd>Gitsigns toggle_word_diff<CR>";
# Movement
"<C-h>".action = "<C-W>h";
"<C-j>".action = "<C-W>j";
"<C-k>".action = "<C-W>k";
"<C-l>".action = "<C-W>l";
# Telescope # Telescope
"<M-f>".action = ":Telescope resume<CR>"; "<M-f>".action = ":Telescope resume<CR>";
"<leader>fq".action = ":Telescope quickfix<CR>"; "<leader>fq".action = ":Telescope quickfix<CR>";

View file

@ -1,6 +1,4 @@
{config, ...}: let _:{
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
assistant.copilot = { assistant.copilot = {
enable = true; enable = true;

View file

@ -1,6 +1,4 @@
{config, ...}: let _:{
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
autocomplete = { autocomplete = {
enable = true; enable = true;
@ -12,6 +10,7 @@ in {
previous = "<C-p>"; previous = "<C-p>";
scrollDocsDown = "<C-j>"; scrollDocsDown = "<C-j>";
scrollDocsUp = "<C-k>"; scrollDocsUp = "<C-k>";
}; };
}; };
}; };

View file

@ -1,10 +1,8 @@
{config, ...}: let _:{
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
binds = { binds = {
whichKey.enable = true; whichKey.enable = true;
cheatsheet.enable = false; cheatsheet.enable = true;
}; };
}; };
} }

View file

@ -8,7 +8,7 @@ in {
openOnSetup = true; openOnSetup = true;
mappings = { mappings = {
toggle = "<C-w>"; #toggle = "<C-w>";
}; };
setupOpts = { setupOpts = {

View file

@ -1,6 +1,4 @@
{config, ...}: let _:{
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
git = { git = {
enable = true; enable = true;

View file

@ -1,11 +1,4 @@
{ _:{
config,
pkgs,
lib,
...
}: let
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
languages = { languages = {
enableLSP = true; enableLSP = true;
@ -14,7 +7,6 @@ in {
enableExtraDiagnostics = true; enableExtraDiagnostics = true;
markdown.enable = true; markdown.enable = true;
nix.enable = true;
html.enable = true; html.enable = true;
css.enable = true; css.enable = true;
tailwind.enable = true; tailwind.enable = true;
@ -33,6 +25,10 @@ in {
lsp.neodev.enable = true; lsp.neodev.enable = true;
}; };
nix = {
enable = true;
lsp.enable = true;
};
rust = { rust = {
enable = true; enable = true;
crates.enable = true; crates.enable = true;

View file

@ -1,6 +1,4 @@
{config, ...}: let _:{
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
lsp = { lsp = {
formatOnSave = true; formatOnSave = true;

View file

@ -1,6 +1,4 @@
{config, ...}: let _: {
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
telescope.enable = true; telescope.enable = true;
}; };

View file

@ -1,6 +1,4 @@
{config, ...}: let _:{
inherit (config.modules.other.system) username;
in {
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
terminal = { terminal = {
toggleterm = { toggleterm = {
@ -12,6 +10,7 @@ in {
lazygit = { lazygit = {
enable = true; enable = true;
direction = "tab"; direction = "tab";
mappings.open = "<leader>gg";
}; };
}; };
}; };