disable plymouth, change kernel, update neovim config
This commit is contained in:
@@ -111,6 +111,5 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -50,7 +50,17 @@ in {
|
||||
val = " Find file";
|
||||
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
|
||||
opts = {
|
||||
shortcut = "nf";
|
||||
keymap = [
|
||||
"n"
|
||||
"f"
|
||||
":Telescope find_files <CR>"
|
||||
{
|
||||
noremap = true;
|
||||
silent = true;
|
||||
nowait = true;
|
||||
}
|
||||
];
|
||||
shortcut = "f";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
@@ -64,7 +74,17 @@ in {
|
||||
val = " New file";
|
||||
on_press.__raw = "function() vim.cmd[[ene]] end";
|
||||
opts = {
|
||||
shortcut = "nn";
|
||||
keymap = [
|
||||
"n"
|
||||
"n"
|
||||
":ene <CR>"
|
||||
{
|
||||
noremap = true;
|
||||
silent = true;
|
||||
nowait = true;
|
||||
}
|
||||
];
|
||||
shortcut = "n";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
@@ -78,7 +98,17 @@ in {
|
||||
val = " NixOs Config";
|
||||
on_press.__raw = "function() vim.cmd[[Neotree ${configDir}]] end";
|
||||
opts = {
|
||||
shortcut = "nc";
|
||||
keymap = [
|
||||
"n"
|
||||
"c"
|
||||
":Neotree ${configDir} <CR>"
|
||||
{
|
||||
noremap = true;
|
||||
silent = true;
|
||||
nowait = true;
|
||||
}
|
||||
];
|
||||
shortcut = "c";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
@@ -93,7 +123,17 @@ in {
|
||||
on_press.__raw =
|
||||
"function() vim.cmd[[e ${configDir}/docs/KEYBINDINGS.md]] end";
|
||||
opts = {
|
||||
shortcut = "nc";
|
||||
keymap = [
|
||||
"n"
|
||||
"b"
|
||||
":e ${configDir}/docs/KEYBINDINGS.md <CR>"
|
||||
{
|
||||
noremap = true;
|
||||
silent = true;
|
||||
nowait = true;
|
||||
}
|
||||
];
|
||||
shortcut = "b";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
@@ -107,7 +147,17 @@ in {
|
||||
val = " Recently used";
|
||||
on_press.__raw = "function() vim.cmd[[Telescope oldfiles]] end";
|
||||
opts = {
|
||||
shortcut = "no";
|
||||
keymap = [
|
||||
"n"
|
||||
"o"
|
||||
":Telescope oldfiles <CR>"
|
||||
{
|
||||
noremap = true;
|
||||
silent = true;
|
||||
nowait = true;
|
||||
}
|
||||
];
|
||||
shortcut = "o";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
@@ -121,7 +171,17 @@ in {
|
||||
val = " Find text";
|
||||
on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end";
|
||||
opts = {
|
||||
shortcut = "nt";
|
||||
keymap = [
|
||||
"n"
|
||||
"t"
|
||||
":Telescope live_grep <CR>"
|
||||
{
|
||||
noremap = true;
|
||||
silent = true;
|
||||
nowait = true;
|
||||
}
|
||||
];
|
||||
shortcut = "t";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
@@ -135,7 +195,17 @@ in {
|
||||
val = " Quit Neovim";
|
||||
on_press.__raw = "function() vim.cmd[[qa]] end";
|
||||
opts = {
|
||||
shortcut = "nq";
|
||||
keymap = [
|
||||
"n"
|
||||
"q"
|
||||
":qa <CR>"
|
||||
{
|
||||
noremap = true;
|
||||
silent = true;
|
||||
nowait = true;
|
||||
}
|
||||
];
|
||||
shortcut = "q";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
|
||||
31
home/programs/nvim/plugins/lualine.nix
Normal file
31
home/programs/nvim/plugins/lualine.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
programs.nixvim.plugins.lualine = {
|
||||
enable = true;
|
||||
settings = {
|
||||
options.disabled_filetypes.statusline =
|
||||
[ "dashboard" "alpha" "neo-tree" ];
|
||||
|
||||
alwaysDivideMiddle = true;
|
||||
globalstatus = true;
|
||||
ignoreFocus = [ "neo-tree" ];
|
||||
extensions = [ "fzf" ];
|
||||
theme = "auto";
|
||||
componentSeparators = {
|
||||
left = "|";
|
||||
right = "|";
|
||||
};
|
||||
sectionSeparators = {
|
||||
left = ""; #
|
||||
right = ""; #
|
||||
};
|
||||
sections = {
|
||||
lualine_a = [ "mode" ];
|
||||
lualine_b = [ "branch" "diff" "diagnostics" ];
|
||||
lualine_c = [ "filename" ];
|
||||
lualine_x = [ "filetype" ];
|
||||
lualine_y = [ "progress" "selectioncount" ];
|
||||
lualine_z = [ ''" " .. os.date("%R")'' ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
# The render-markdown.nvim plugin is a plugin that renders markdown files in a neovim in a more readable way.
|
||||
{ config, ... }:
|
||||
let
|
||||
accent = "#${config.lib.stylix.colors.base0D}";
|
||||
@@ -11,7 +10,6 @@ in {
|
||||
plugins.mkdnflow = {
|
||||
enable = true;
|
||||
modules = { conceal = false; };
|
||||
|
||||
toDo.symbols = [ " " "-" "x" "!" "/" ];
|
||||
mappings = {
|
||||
MkdnCreateLink = false;
|
||||
@@ -132,8 +130,9 @@ in {
|
||||
RenderMarkdownH4.fg = accent-alt;
|
||||
RenderMarkdownH5.fg = accent-alt;
|
||||
RenderMarkdownH6.fg = accent-alt;
|
||||
RenderMarkdownTodo.fg = muted;
|
||||
RenderMarkdownWarning.fg = accent;
|
||||
RenderMarkdownTodo.fg = "#f78c6c";
|
||||
RenderMarkdownWarning.fg = "#ff5370";
|
||||
RenderMarkdownDone.fg = muted;
|
||||
};
|
||||
plugins.headlines = {
|
||||
enable = true;
|
||||
@@ -156,6 +155,7 @@ in {
|
||||
settings = {
|
||||
heading = {
|
||||
icons = [ "# " " " " " " " " " " " ];
|
||||
sign = false;
|
||||
backgrounds = [ "RenderMarkdownBg" ];
|
||||
foregrounds = [
|
||||
"RenderMarkdownH1"
|
||||
@@ -168,7 +168,7 @@ in {
|
||||
};
|
||||
checkbox = {
|
||||
unchecked = { highlight = "RenderMarkdownTodo"; };
|
||||
checked = { highlight = "RenderMarkdownTodo"; };
|
||||
checked = { highlight = "RenderMarkdownDone"; };
|
||||
custom = {
|
||||
pending = {
|
||||
raw = "[-]";
|
||||
@@ -177,13 +177,13 @@ in {
|
||||
};
|
||||
important = {
|
||||
raw = "[!]";
|
||||
rendered = " ";
|
||||
rendered = " ";
|
||||
highlight = "RenderMarkdownWarning";
|
||||
};
|
||||
cancel = {
|
||||
raw = "[/]";
|
||||
rendered = " ";
|
||||
highlight = "RenderMarkdownTodo";
|
||||
highlight = "RenderMarkdownWarning";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,54 +1,13 @@
|
||||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs; [ ctags ];
|
||||
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
lualine = {
|
||||
enable = true;
|
||||
settings = {
|
||||
options.disabled_filetypes.statusline =
|
||||
[ "dashboard" "alpha" "neo-tree" ];
|
||||
|
||||
alwaysDivideMiddle = true;
|
||||
globalstatus = true;
|
||||
ignoreFocus = [ "neo-tree" ];
|
||||
extensions = [ "fzf" ];
|
||||
theme = "auto";
|
||||
componentSeparators = {
|
||||
left = "|";
|
||||
right = "|";
|
||||
};
|
||||
sectionSeparators = {
|
||||
left = ""; #
|
||||
right = ""; #
|
||||
};
|
||||
sections = {
|
||||
lualine_a = [ "mode" ];
|
||||
lualine_b = [ "branch" "diff" "diagnostics" ];
|
||||
lualine_c = [ "filename" ];
|
||||
lualine_x = [ "filetype" ];
|
||||
lualine_y = [ "progress" "selectioncount" ];
|
||||
lualine_z = [ ''" " .. os.date("%R")'' ];
|
||||
};
|
||||
};
|
||||
};
|
||||
web-devicons.enable = true;
|
||||
noice.enable = true;
|
||||
notify = {
|
||||
enable = true;
|
||||
level = "warn";
|
||||
};
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
settings.current_line_blame = false;
|
||||
};
|
||||
trouble.enable = true;
|
||||
indent-blankline.enable = true;
|
||||
colorizer.enable = true;
|
||||
tagbar = {
|
||||
enable = true;
|
||||
tagsPackage = pkgs.universal-ctags;
|
||||
};
|
||||
programs.nixvim.plugins = {
|
||||
web-devicons.enable = true;
|
||||
noice.enable = true;
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
settings.current_line_blame = false;
|
||||
};
|
||||
trouble.enable = true;
|
||||
bufferline.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
tmux-navigator.enable = true;
|
||||
comment.enable = true;
|
||||
nvim-autopairs.enable = true;
|
||||
friendly-snippets.enable = true;
|
||||
todo-comments.enable = true;
|
||||
harpoon = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user