Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed assets/screenshot.png
Binary file not shown.
9 changes: 1 addition & 8 deletions config/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
{ pkgs, ... }:
{
imports = [
./keybindings.nix
./opts.nix
./lsp.nix
./cmp.nix
./keymaps.nix
./plugins
];

colorschemes.catppuccin.enable = true;
extraPackages = with pkgs; [
wl-clipboard
];
clipboard = {
register = "unnamedplus";
providers.wl-copy.enable = true;
providers.wl-copy.package = pkgs.wl-clipboard;
providers.xclip.enable = true;
providers.xclip.package = pkgs.xclip;
};
}
52 changes: 52 additions & 0 deletions config/keybindings.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ ... }:
let
defaultOptions = {
silent = true;
};
in
{
keymaps = [
{
key = "<space>e";
action = ":Neotree toggle<CR>";
options = defaultOptions;
}
{
key = "<C-s>";
action = ":w<CR>";
}
{
key = "<S-q>";
action = ":bdelete<CR>";
options = defaultOptions;
}
{
key = "<A-l>";
action = ":bnext<CR>";
options = defaultOptions;
}
{
key = "<A-h>";
action = ":bprevious<CR>";
options = defaultOptions;
}
{
key = "<C-f>";
action = ":lua vim.lsp.buf.format()<CR>";
options = defaultOptions;
}
{
action = ":ToggleTerm direction=float<CR>";
key = "<Space>t";
}
{
action = "<C-\\><C-n>";
key = "<Esc>";
options = {
silent = true;
desc = "Exit terminal insert mode";
};
mode = "t";
}
];
}
174 changes: 0 additions & 174 deletions config/keymaps.nix

This file was deleted.

15 changes: 8 additions & 7 deletions config/opts.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{ ... }:
{
opts = {
cursorline = true;
number = true;
relativenumber = true;
signcolumn = "yes";
splitright = true;
splitbelow = true;
cursorline = true;
scrolloff = 5;
undofile = true;
ignorecase = true;
shiftwidth = 4;
signcolumn = "yes";
autoindent = true;
updatetime = 200;
smartcase = true;
gdefault = true;
ignorecase = true;
termguicolors = true;
gdefault = true;
cursorlineopt = "both";
};
}
10 changes: 10 additions & 0 deletions config/plugins/blink-indent.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ ... }:
{
plugins.guess-indent = {
enable = true;
settings = {
underline.enable = true;
static.enable = true;
};
};
}
2 changes: 2 additions & 0 deletions config/cmp.nix → config/plugins/cmp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
{ name = "path"; }
{ name = "buffer"; }
{ name = "dap"; }
{ name = "blink-emoji"; }
{ name = "blink-ripgrep"; }
];
mapping = {
"<Tab>" = "cmp.mapping.select_next_item()";
Expand Down
20 changes: 20 additions & 0 deletions config/plugins/cursorline.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ ... }:
{
plugins.cursorline = {
enable = true;
settings = {
cursorline = {
enable = true;
timeout = 0;
number = false;
};
cursorword = {
enable = true;
minLength = 3;
hl = {
underline = true;
};
};
};
};
}
66 changes: 0 additions & 66 deletions config/plugins/dap.nix

This file was deleted.

Loading
Loading