Added back removed plugins
This commit is contained in:
parent
6988bb2719
commit
a9d85b6a80
8 changed files with 124 additions and 95 deletions
|
|
@ -1,6 +1,14 @@
|
||||||
{
|
{
|
||||||
# Import all your configuration modules here
|
# 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 = {
|
opts = {
|
||||||
number = true;
|
number = true;
|
||||||
relativenumber = true;
|
relativenumber = true;
|
||||||
|
|
|
||||||
1
config/lsp-format.nix
Normal file
1
config/lsp-format.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{ plugins = { lsp-format = { enable = true; }; }; }
|
||||||
14
config/lsp.nix
Normal file
14
config/lsp.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{lib, ...}:
|
{ lib, ... }: {
|
||||||
{
|
|
||||||
plugins = {
|
plugins = {
|
||||||
mini = {
|
mini = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -51,11 +50,7 @@
|
||||||
animate = { };
|
animate = { };
|
||||||
cursorword = { };
|
cursorword = { };
|
||||||
icons = { };
|
icons = { };
|
||||||
indentscope = {
|
indentscope = { options = { try_as_border = true; }; };
|
||||||
options = {
|
|
||||||
try_as_border = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
notify = { };
|
notify = { };
|
||||||
starter = { };
|
starter = { };
|
||||||
statusline = { };
|
statusline = { };
|
||||||
|
|
@ -64,7 +59,7 @@
|
||||||
|
|
||||||
luaConfig.post = ''
|
luaConfig.post = ''
|
||||||
local miniclue = require('mini.clue')
|
local miniclue = require('mini.clue')
|
||||||
miniclue.setup({
|
miniclue.setup({
|
||||||
triggers = {
|
triggers = {
|
||||||
-- Leader triggers
|
-- Leader triggers
|
||||||
{ mode = 'n', keys = '<Leader>' },
|
{ mode = 'n', keys = '<Leader>' },
|
||||||
|
|
@ -126,10 +121,10 @@ miniclue.setup({
|
||||||
scroll_down = '<C-d>';
|
scroll_down = '<C-d>';
|
||||||
scroll_up = '<C-u>';
|
scroll_up = '<C-u>';
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
local hipatterns = require('mini.hipatterns')
|
local hipatterns = require('mini.hipatterns')
|
||||||
hipatterns.setup({
|
hipatterns.setup({
|
||||||
highlighters = {
|
highlighters = {
|
||||||
-- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
|
-- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
|
||||||
fixme = { pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' },
|
fixme = { pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' },
|
||||||
|
|
@ -140,7 +135,7 @@ hipatterns.setup({
|
||||||
-- Highlight hex color strings (`#rrggbb`) using that color
|
-- Highlight hex color strings (`#rrggbb`) using that color
|
||||||
hex_color = hipatterns.gen_highlighter.hex_color(),
|
hex_color = hipatterns.gen_highlighter.hex_color(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
1
config/treesitter-context.nix
Normal file
1
config/treesitter-context.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{ plugins = { treesitter-context = { enable = true; }; }; }
|
||||||
1
config/treesitter-textobjects.nix
Normal file
1
config/treesitter-textobjects.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{ plugins = { treesitter-textobjects = { enable = true; }; }; }
|
||||||
8
config/treesitter.nix
Normal file
8
config/treesitter.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
plugins = {
|
||||||
|
treesitter = {
|
||||||
|
enable = true;
|
||||||
|
settings = { highlight.enable = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
1
config/undotree.nix
Normal file
1
config/undotree.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{ plugins = { undotree = { enable = true; }; }; }
|
||||||
Loading…
Add table
Add a link
Reference in a new issue