mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-11-19 04:31:15 +01:00
Compare commits
6
Commits
5fd871e764
...
cfaa8988ed
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfaa8988ed
|
||
|
|
7001937931
|
||
|
|
3895dbb14f
|
||
|
|
0625c46fab
|
||
|
|
79f073f007
|
||
|
|
44b4a40772
|
No files matched your search
+10
-1
@@ -6,7 +6,16 @@
|
|||||||
./plugins
|
./plugins
|
||||||
];
|
];
|
||||||
|
|
||||||
colorschemes.catppuccin.enable = true;
|
colorscheme = "catppuccin";
|
||||||
|
|
||||||
|
colorschemes = {
|
||||||
|
onedark.enable = true;
|
||||||
|
nord.enable = true;
|
||||||
|
dracula.enable = true;
|
||||||
|
gruvbox.enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
clipboard = {
|
clipboard = {
|
||||||
register = "unnamedplus";
|
register = "unnamedplus";
|
||||||
providers.wl-copy.enable = true;
|
providers.wl-copy.enable = true;
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
./cmp.nix
|
./cmp.nix
|
||||||
./comment.nix
|
./comment.nix
|
||||||
./cursorline.nix
|
./cursorline.nix
|
||||||
|
./fzf-lua.nix
|
||||||
./gitsigns.nix
|
./gitsigns.nix
|
||||||
./lsp.nix
|
./lsp.nix
|
||||||
./lualine.nix
|
./lualine.nix
|
||||||
./telescope.nix
|
|
||||||
./which-key.nix
|
./which-key.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -18,7 +18,12 @@
|
|||||||
bufferline.enable = true;
|
bufferline.enable = true;
|
||||||
notify.enable = true;
|
notify.enable = true;
|
||||||
toggleterm.enable = true;
|
toggleterm.enable = true;
|
||||||
treesitter.enable = true;
|
treesitter = {
|
||||||
|
enable = true;
|
||||||
|
highlight.enable = true;
|
||||||
|
indent.enable = true;
|
||||||
|
folding.enable = false;
|
||||||
|
};
|
||||||
todo-comments.enable = true;
|
todo-comments.enable = true;
|
||||||
fidget.enable = true;
|
fidget.enable = true;
|
||||||
blink-indent.enable = true;
|
blink-indent.enable = true;
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
mkMap =
|
||||||
|
action: desc:
|
||||||
|
{
|
||||||
|
inherit action;
|
||||||
|
options = {
|
||||||
|
silent = true;
|
||||||
|
inherit desc;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
plugins.fzf-lua = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
winopts = {
|
||||||
|
height = 0.85;
|
||||||
|
width = 0.9;
|
||||||
|
};
|
||||||
|
# fzf_opts = {
|
||||||
|
# "--layout" = "reverse";
|
||||||
|
# };
|
||||||
|
git_icons = true;
|
||||||
|
defaults.file_icons = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
keymaps = {
|
||||||
|
# Files and search
|
||||||
|
"<Space>f" = mkMap "files" "Fzf-Lua Files";
|
||||||
|
"<Space>F" = mkMap "oldfiles" "Fzf-Lua Old Files";
|
||||||
|
"<Space>g" = mkMap "live_grep" "Fzf-Lua Live Grep";
|
||||||
|
|
||||||
|
# Buffers and windows
|
||||||
|
"<Space>b" = mkMap "buffers" "Fzf-Lua Buffers";
|
||||||
|
"<Space>w" = mkMap "tabs" "Fzf-Lua Tabs";
|
||||||
|
|
||||||
|
# Discoverability
|
||||||
|
"<Space>m" = mkMap "keymaps" "Fzf-Lua Keymaps";
|
||||||
|
"<Space>c" = mkMap "colorschemes" "Fzf-Lua Colorschemes";
|
||||||
|
|
||||||
|
# Git
|
||||||
|
"<Space>gs" = mkMap "git_status" "Fzf-Lua Git Status";
|
||||||
|
"<Space>gf" = mkMap "git_files" "Fzf-Lua Git Files";
|
||||||
|
"<Space>gl" = mkMap "git_log" "Fzf-Lua Git Log";
|
||||||
|
"<Space>gc" = mkMap "git_commits" "Fzf-Lua Git Commits";
|
||||||
|
"<Space>gb" = mkMap "git_bcommits" "Fzf-Lua Git Buffer Commits";
|
||||||
|
|
||||||
|
# LSP
|
||||||
|
"<Space>l" = mkMap "lsp_document_symbols" "Fzf-Lua Document Symbols";
|
||||||
|
"<Space>lr" = mkMap "lsp_references" "Fzf-Lua References";
|
||||||
|
"<Space>ld" = mkMap "lsp_definitions" "Fzf-Lua Definitions";
|
||||||
|
"<Space>la" = mkMap "lsp_code_actions" "Fzf-Lua Code Actions";
|
||||||
|
"<Space>lw" = mkMap "lsp_workspace_symbols" "Fzf-Lua Workspace Symbols";
|
||||||
|
|
||||||
|
# Diagnostics
|
||||||
|
"<Space>x" = mkMap "diagnostics_document" "Fzf-Lua Diagnostics";
|
||||||
|
"<Space>X" = mkMap "diagnostics_workspace" "Fzf-Lua Diagnostics Workspace";
|
||||||
|
|
||||||
|
# Resume
|
||||||
|
"<Space>z" = mkMap "resume" "Fzf-Lua Resume";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -25,13 +25,16 @@
|
|||||||
qmlls.enable = true;
|
qmlls.enable = true;
|
||||||
ruff.enable = true;
|
ruff.enable = true;
|
||||||
slint_lsp.enable = true;
|
slint_lsp.enable = true;
|
||||||
pylsp.enable = true;
|
zuban.enable = true;
|
||||||
};
|
};
|
||||||
keymaps = {
|
keymaps = {
|
||||||
lspBuf = {
|
lspBuf = {
|
||||||
"<Space>k" = "hover";
|
"<Space>k" = "hover";
|
||||||
"<Space>r" = "rename";
|
"<Space>r" = "rename";
|
||||||
"<Space>a" = "code_action";
|
"<Space>a" = "code_action";
|
||||||
|
"<Space>R" = "references";
|
||||||
|
"<Space>d" = "definition";
|
||||||
|
"<Space>D" = "type_definition";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
plugins.telescope = {
|
|
||||||
enable = true;
|
|
||||||
keymaps = {
|
|
||||||
"<Space>f" = "find_files";
|
|
||||||
"<Space>g" = "live_grep";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user