chore: separate nixos & home-manager configuration into own directories

This commit is contained in:
Khaïs COLIN 2024-07-28 10:15:03 +02:00
parent 39cd2bc920
commit 70131093c3
21 changed files with 0 additions and 0 deletions

View file

@ -1,5 +0,0 @@
{
plugins.bufferline = {
enable = true;
};
}

View file

@ -1,6 +0,0 @@
{
clipboard = {
providers.xsel.enable = true;
register = "unnamedplus";
};
}

View file

@ -1,19 +0,0 @@
{
plugins.cmp = {
enable = true;
autoEnableSources = true;
settings = {
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
mapping = {
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({'i', 's'}))";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item({'i', 's'}))";
};
};
};
}

View file

@ -1,24 +0,0 @@
{
# Import all your configuration modules here
imports = [
# base config
./options.nix
./clipboard.nix
# appearence
./bufferline.nix
./lualine.nix
# file and search utilities
./telescope.nix
./oil.nix
# language support & lsp
./lsp.nix
./treesitter.nix
./nix.nix
# autocompletion
./cmp.nix
];
}

View file

@ -1,23 +0,0 @@
{
plugins.lsp = {
enable = true;
inlayHints = true;
servers = {
nixd.enable = true;
};
keymaps = {
diagnostic = {
"<C-n>" = "goto_next";
"<C-p>" = "goto_prev";
};
lspBuf = {
"K" = "hover";
"gD" = "references";
"gd" = "definition";
"gi" = "implementation";
"gt" = "type_definition";
"<C-,>" = "code_action";
};
};
};
}

View file

@ -1,5 +0,0 @@
{
plugins.lualine = {
enable = true;
};
}

View file

@ -1,3 +0,0 @@
{
plugins.nix.enable = true;
}

View file

@ -1,5 +0,0 @@
{
plugins.oil = {
enable = true;
};
}

View file

@ -1,7 +0,0 @@
{
opts = {
number = true;
};
globals.mapleader = " ";
}

View file

@ -1,57 +0,0 @@
{
plugins.telescope = {
enable = true;
extensions.file-browser.enable = true;
settings.defaults.mappings = {
i = {
# close telescope when escape pressed in insert mode
"<esc>" = "close";
};
};
keymaps = {
# files
"<leader><space>" = {
action = "find_files";
options = {
desc = "Find files in current directory";
};
};
"<leader>ff" = {
action = "file_browser";
options = {
desc = "Find files in current directory";
};
};
"<leader>fr" = {
action = "oldfiles";
options = {
desc = "Recent files";
};
};
# search
"<leader>/" = {
action = "live_grep";
options = {
desc = "Grep (root dir)";
};
};
# buffers
"<leader>b" = {
action = "buffers";
options = {
desc = "Buffer list";
};
};
# lsp
"<leader>sD" = {
action = "diagnostics";
options = {
desc = "Workspace diagnostics";
};
};
};
};
}

View file

@ -1,5 +0,0 @@
{
plugins.treesitter = {
enable = true;
};
}