chore: separate nixos & home-manager configuration into own directories
This commit is contained in:
parent
39cd2bc920
commit
70131093c3
21 changed files with 0 additions and 0 deletions
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
plugins.bufferline = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
clipboard = {
|
||||
providers.xsel.enable = true;
|
||||
register = "unnamedplus";
|
||||
};
|
||||
}
|
||||
|
|
@ -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'}))";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
plugins.nix.enable = true;
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
plugins.oil = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
opts = {
|
||||
number = true;
|
||||
};
|
||||
|
||||
globals.mapleader = " ";
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue