Added back removed plugins

This commit is contained in:
EsVagy42 2025-03-03 19:08:34 +00:00
parent 6988bb2719
commit a9d85b6a80
8 changed files with 124 additions and 95 deletions

View file

@ -1,6 +1,14 @@
{
# Import all your configuration modules here
imports = [ ./mini.nix ];
imports = [
./mini.nix
./undotree.nix
./treesitter-textobjects.nix
./treesitter-context.nix
./treesitter.nix
./lsp-format.nix
./lsp.nix
];
opts = {
number = true;
relativenumber = true;

1
config/lsp-format.nix Normal file
View file

@ -0,0 +1 @@
{ plugins = { lsp-format = { enable = true; }; }; }

14
config/lsp.nix Normal file
View file

@ -0,0 +1,14 @@
{
plugins = {
lsp = {
enable = true;
servers = {
clangd.enable = true;
bashls.enable = true;
nixd.enable = true;
marksman.enable = true;
lua_ls.enable = true;
};
};
};
}

View file

@ -1,5 +1,4 @@
{lib, ...}:
{
{ lib, ... }: {
plugins = {
mini = {
enable = true;
@ -51,11 +50,7 @@
animate = { };
cursorword = { };
icons = { };
indentscope = {
options = {
try_as_border = true;
};
};
indentscope = { options = { try_as_border = true; }; };
notify = { };
starter = { };
statusline = { };
@ -64,7 +59,7 @@
luaConfig.post = ''
local miniclue = require('mini.clue')
miniclue.setup({
miniclue.setup({
triggers = {
-- Leader triggers
{ mode = 'n', keys = '<Leader>' },
@ -126,10 +121,10 @@ miniclue.setup({
scroll_down = '<C-d>';
scroll_up = '<C-u>';
},
})
})
local hipatterns = require('mini.hipatterns')
hipatterns.setup({
local hipatterns = require('mini.hipatterns')
hipatterns.setup({
highlighters = {
-- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
fixme = { pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' },
@ -140,7 +135,7 @@ hipatterns.setup({
-- Highlight hex color strings (`#rrggbb`) using that color
hex_color = hipatterns.gen_highlighter.hex_color(),
},
})
})
'';
};
};

View file

@ -0,0 +1 @@
{ plugins = { treesitter-context = { enable = true; }; }; }

View file

@ -0,0 +1 @@
{ plugins = { treesitter-textobjects = { enable = true; }; }; }

8
config/treesitter.nix Normal file
View file

@ -0,0 +1,8 @@
{
plugins = {
treesitter = {
enable = true;
settings = { highlight.enable = true; };
};
};
}

1
config/undotree.nix Normal file
View file

@ -0,0 +1 @@
{ plugins = { undotree = { enable = true; }; }; }