refactor: complete rewrite
This commit is contained in:
parent
19a4bbda3c
commit
8e81943cf9
399 changed files with 3396 additions and 8042 deletions
5
outputs/pkgs/ook-vim/plugins/cmp.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/cmp.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.autocomplete.nvim-cmp = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/plugins/comments.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/comments.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.comments = {
|
||||
comment-nvim.enable = true;
|
||||
};
|
||||
}
|
||||
15
outputs/pkgs/ook-vim/plugins/default.nix
Normal file
15
outputs/pkgs/ook-vim/plugins/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
imports = [
|
||||
./telescope.nix
|
||||
./filetree.nix
|
||||
./cmp.nix
|
||||
./terminal.nix
|
||||
./git.nix
|
||||
./projects.nix
|
||||
./utility.nix
|
||||
./ui.nix
|
||||
./languages
|
||||
./statusline.nix
|
||||
./snippets.nix
|
||||
];
|
||||
}
|
||||
17
outputs/pkgs/ook-vim/plugins/filetree.nix
Normal file
17
outputs/pkgs/ook-vim/plugins/filetree.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
vim.filetree = {
|
||||
neo-tree = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
filesystem = {
|
||||
hijack_netrw_behavior = "open_current";
|
||||
follow_current_file.enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
vim.maps.normal."<C-e>" = {
|
||||
desc = "Toggle Tree";
|
||||
action = "<cmd>Neotree toggle reveal<cr>";
|
||||
};
|
||||
}
|
||||
9
outputs/pkgs/ook-vim/plugins/git.nix
Normal file
9
outputs/pkgs/ook-vim/plugins/git.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
vim.git = {
|
||||
enable = true;
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
codeActions.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/plugins/languages/bash.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/languages/bash.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.bash = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
6
outputs/pkgs/ook-vim/plugins/languages/css.nix
Normal file
6
outputs/pkgs/ook-vim/plugins/languages/css.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
vim.languages.css = {
|
||||
enable = true;
|
||||
format.enable = true;
|
||||
};
|
||||
}
|
||||
19
outputs/pkgs/ook-vim/plugins/languages/default.nix
Normal file
19
outputs/pkgs/ook-vim/plugins/languages/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
imports = [
|
||||
./nix.nix
|
||||
./lsp.nix
|
||||
./bash.nix
|
||||
./treesitter.nix
|
||||
./html.nix
|
||||
./ts.nix
|
||||
];
|
||||
|
||||
vim.languages = {
|
||||
enableLSP = true;
|
||||
enableTreesitter = true;
|
||||
enableFormat = true;
|
||||
enableExtraDiagnostics = true;
|
||||
|
||||
typst.enable = true;
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/plugins/languages/html.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/languages/html.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.html = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
8
outputs/pkgs/ook-vim/plugins/languages/lsp.nix
Normal file
8
outputs/pkgs/ook-vim/plugins/languages/lsp.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
vim.lsp = {
|
||||
formatOnSave = true;
|
||||
lspkind.enable = true;
|
||||
lspSignature.enable = true;
|
||||
trouble = {enable = true;};
|
||||
};
|
||||
}
|
||||
11
outputs/pkgs/ook-vim/plugins/languages/markdown.nix
Normal file
11
outputs/pkgs/ook-vim/plugins/languages/markdown.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
vim = {
|
||||
languages.markdown = {
|
||||
enable = true;
|
||||
format = true;
|
||||
};
|
||||
utility = {
|
||||
preview.markdownPreview = {enable = true;};
|
||||
};
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/plugins/languages/nix.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/languages/nix.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.nix = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
11
outputs/pkgs/ook-vim/plugins/languages/treesitter.nix
Normal file
11
outputs/pkgs/ook-vim/plugins/languages/treesitter.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
vim.treesitter = {
|
||||
enable = true;
|
||||
fold = true;
|
||||
grammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
|
||||
kdl
|
||||
regex
|
||||
fish
|
||||
];
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/plugins/languages/ts.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/languages/ts.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.ts = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
16
outputs/pkgs/ook-vim/plugins/projects.nix
Normal file
16
outputs/pkgs/ook-vim/plugins/projects.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
vim.projects = {
|
||||
project-nvim = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
manualMode = false;
|
||||
detectionMethods = ["lsp" "pattern"];
|
||||
patterns = [
|
||||
".git"
|
||||
"index.*"
|
||||
"flake.nix"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/plugins/snippets.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/snippets.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.snippets.luasnip = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
52
outputs/pkgs/ook-vim/plugins/statusline.nix
Normal file
52
outputs/pkgs/ook-vim/plugins/statusline.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
vim.statusline.lualine = {
|
||||
enable = true;
|
||||
activeSection = {
|
||||
a = [
|
||||
#lua
|
||||
''
|
||||
{
|
||||
"mode",
|
||||
icons_enabled = true,
|
||||
seperator = {left = "", right = " ", }
|
||||
}
|
||||
''
|
||||
#lua
|
||||
''
|
||||
{
|
||||
draw_empty = true,
|
||||
seperator = { left = " ", right = " " }
|
||||
}
|
||||
''
|
||||
];
|
||||
b = [
|
||||
#lua
|
||||
''
|
||||
{
|
||||
"",
|
||||
draw_empty = true,
|
||||
}
|
||||
''
|
||||
];
|
||||
c = ["filename"];
|
||||
x = [
|
||||
# lua
|
||||
''
|
||||
{
|
||||
"diagnostics",
|
||||
sources = {'nvim_lsp', 'nvim_diagnostic', 'nvim_diagnostic', 'vim_lsp'},
|
||||
symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '},
|
||||
colored = true,
|
||||
update_in_insert = false,
|
||||
always_visible = false,
|
||||
diagnostics_color = {
|
||||
color_error = { fg = 'red' },
|
||||
color_warn = { fg = 'yellow' },
|
||||
color_info = { fg = 'cyan' },
|
||||
}
|
||||
}
|
||||
''
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
16
outputs/pkgs/ook-vim/plugins/telescope.nix
Normal file
16
outputs/pkgs/ook-vim/plugins/telescope.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
vim.telescope = {
|
||||
enable = true;
|
||||
mappings = {
|
||||
findFiles = "<leader>ff";
|
||||
liveGrep = "<leader>/";
|
||||
|
||||
open = null;
|
||||
gitCommits = null;
|
||||
gitBufferCommits = null;
|
||||
gitBranches = null;
|
||||
gitStatus = null;
|
||||
gitStash = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
11
outputs/pkgs/ook-vim/plugins/terminal.nix
Normal file
11
outputs/pkgs/ook-vim/plugins/terminal.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
vim.terminal = {
|
||||
toggleterm = {
|
||||
enable = true;
|
||||
lazygit = {
|
||||
enable = true;
|
||||
direction = "float";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
outputs/pkgs/ook-vim/plugins/ui.nix
Normal file
35
outputs/pkgs/ook-vim/plugins/ui.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
vim = {
|
||||
ui = {
|
||||
borders = {
|
||||
enable = true;
|
||||
globalStyle = "single";
|
||||
};
|
||||
|
||||
# better cmd line
|
||||
noice.enable = true;
|
||||
|
||||
colorizer.enable = true;
|
||||
illuminate.enable = true;
|
||||
};
|
||||
# < https://github.com/NotAShelf/nvf/tree/main/modules/plugins/visuals >
|
||||
visuals = {
|
||||
enable = true;
|
||||
|
||||
# icons that other plugins depend on.
|
||||
nvimWebDevicons.enable = true;
|
||||
fidget-nvim.enable = true;
|
||||
|
||||
# indent lines
|
||||
indentBlankline = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
scope = {
|
||||
enabled = false;
|
||||
injected_languages = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/plugins/utility.nix
Normal file
5
outputs/pkgs/ook-vim/plugins/utility.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.binds.whichKey = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue