mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
change nixvim config
This commit is contained in:
@@ -42,7 +42,13 @@
|
|||||||
action = "<cmd>lua vim.lsp.buf.hover()<cr>";
|
action = "<cmd>lua vim.lsp.buf.hover()<cr>";
|
||||||
options.desc = "LSP Hover";
|
options.desc = "LSP Hover";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "<C-tab>";
|
||||||
|
action = "<cmd>bnext<cr>";
|
||||||
|
options.desc = "Next Buffer";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Tmux
|
||||||
{
|
{
|
||||||
key = "<C-h>";
|
key = "<C-h>";
|
||||||
action = "<cmd>TmuxNavigateLeft<cr>";
|
action = "<cmd>TmuxNavigateLeft<cr>";
|
||||||
|
|||||||
@@ -7,13 +7,12 @@
|
|||||||
icons = { };
|
icons = { };
|
||||||
# TODO: Learn how to use this
|
# TODO: Learn how to use this
|
||||||
bracketed = { };
|
bracketed = { };
|
||||||
tabline = { };
|
git = { };
|
||||||
statusline = { };
|
diff = { };
|
||||||
starter = { };
|
starter = { };
|
||||||
pairs = { };
|
pairs = { };
|
||||||
notify = { lsp_progress.enable = false; };
|
notify = { lsp_progress.enable = false; };
|
||||||
indentscope = { };
|
indentscope = { };
|
||||||
git = { };
|
|
||||||
cursorword = { };
|
cursorword = { };
|
||||||
comment = { };
|
comment = { };
|
||||||
starter = { };
|
starter = { };
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
{
|
{ config, ... }: {
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
|
highlightOverride = {
|
||||||
|
SnacksPicker = {
|
||||||
|
bg = "none";
|
||||||
|
nocombine = true;
|
||||||
|
};
|
||||||
|
SnacksPickerBorder = {
|
||||||
|
bg = "none";
|
||||||
|
fg = "#${config.lib.stylix.colors.base0D}";
|
||||||
|
};
|
||||||
|
SnacksPickerTree = { bg = "#${config.lib.stylix.colors.base00}"; };
|
||||||
|
FloatBorder = {
|
||||||
|
bg = "#${config.lib.stylix.colors.base00}";
|
||||||
|
fg = "#${config.lib.stylix.colors.base0D}";
|
||||||
|
};
|
||||||
|
NormalFloat = { bg = "#${config.lib.stylix.colors.base00}"; };
|
||||||
|
};
|
||||||
plugins = {
|
plugins = {
|
||||||
snacks.settings = {
|
snacks.settings = {
|
||||||
picker.enable = true;
|
picker.enable = true;
|
||||||
@@ -133,6 +149,11 @@
|
|||||||
action = "<cmd>lua Snacks.picker.lines()<cr>";
|
action = "<cmd>lua Snacks.picker.lines()<cr>";
|
||||||
options.desc = "Buffer Lines";
|
options.desc = "Buffer Lines";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>st";
|
||||||
|
action = "<cmd>TodoLocList<cr>";
|
||||||
|
options.desc = "Todos";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
key = "<leader>sB";
|
key = "<leader>sB";
|
||||||
action = "<cmd>lua Snacks.picker.grep_buffers()<cr>";
|
action = "<cmd>lua Snacks.picker.grep_buffers()<cr>";
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
quickfile.enable = true;
|
quickfile.enable = true;
|
||||||
statuscolumn.enable = true;
|
statuscolumn.enable = true;
|
||||||
zen.enable = true;
|
zen.enable = true;
|
||||||
|
bufdelete.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -29,6 +30,11 @@
|
|||||||
action = "<cmd>lua Snacks.dim.disable()<cr>";
|
action = "<cmd>lua Snacks.dim.disable()<cr>";
|
||||||
options.desc = "Undim";
|
options.desc = "Undim";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>wc";
|
||||||
|
action = "<cmd>lua Snacks.bufdelete.all()<cr>";
|
||||||
|
options.desc = "Close all buffers";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,13 +2,15 @@
|
|||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
nixpkgs.config.allowUnfree = true; # For copilot
|
nixpkgs.config.allowUnfree = true; # For copilot
|
||||||
highlightOverride = {
|
highlightOverride = {
|
||||||
FloatBorder.fg = "#${config.lib.stylix.colors.base0D}";
|
WhichKeySeparator.bg = "#${config.lib.stylix.colors.base00}";
|
||||||
};
|
};
|
||||||
plugins = {
|
plugins = {
|
||||||
|
bufferline.enable = true;
|
||||||
copilot-vim.enable = true;
|
copilot-vim.enable = true;
|
||||||
flash.enable = true;
|
flash.enable = true;
|
||||||
tmux-navigator.enable = true;
|
tmux-navigator.enable = true;
|
||||||
todo-comments.enable = true;
|
todo-comments.enable = true;
|
||||||
|
lualine = { enable = true; };
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nixGrammars = true;
|
nixGrammars = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user