Skip to content

Commit c506383

Browse files
authored
Merge pull request #82 from RustLover2910/main
Changed the old plugins naming structure to the new one
2 parents 7d692c8 + 4ccfd21 commit c506383

File tree

9 files changed

+87
-75
lines changed

9 files changed

+87
-75
lines changed

config/completion/cmp.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
cmp-cmdline = {enable = false;}; # autocomplete for cmdline
99
cmp = {
1010
enable = true;
11-
autoEnableSources = true;
12-
extraOptions = {
11+
autoEnableSources = false;
12+
settings = {
1313
experimental = {
1414
ghost_text = true;
1515
};

config/git/gitsigns.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
plugins.gitsigns = {
33
enable = true;
4-
trouble = true;
5-
currentLineBlame = false;
4+
settings = {
5+
trouble = true;
6+
currentLineBlame = false;
7+
};
68
};
79
keymaps = [
810
{

config/sets.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
...
66
}: {
77
config = {
8-
options = {
8+
opts = {
99
# Enable relative line numbers
1010
number = true;
1111
relativenumber = true;

config/telescope/telescope.nix

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
22
plugins.telescope = {
33
enable = true;
4+
45
extensions = {
56
fzf-native = {
67
enable = true;
78
};
8-
project-nvim = {
9-
enable = true;
10-
};
119
ui-select = {
1210
settings = {
1311
specific_opts = {
@@ -20,14 +18,16 @@
2018
};
2119
};
2220
# If you'd prefer Telescope not to enter a normal-like mode when hitting escape (and instead exiting), you can map <Esc> to do so via:
23-
defaults = {
24-
mappings = {
25-
i = {
26-
"<esc>" = {
27-
__raw = ''
28-
function(...)
29-
return require("telescope.actions").close(...)
30-
end'';
21+
settings = {
22+
defaults = {
23+
mappings = {
24+
i = {
25+
"<esc>" = {
26+
__raw = ''
27+
function(...)
28+
return require("telescope.actions").close(...)
29+
end'';
30+
};
3131
};
3232
};
3333
};

config/ui/indent-blankline.nix

+24-22
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,30 @@
22
plugins = {
33
indent-blankline = {
44
enable = true;
5-
indent = {
6-
char = "│"; # "│" or "▎"
7-
};
8-
scope = {
9-
enabled = true;
10-
showStart = true;
11-
};
12-
exclude = {
13-
buftypes = ["terminal" "nofile"];
14-
filetypes = [
15-
"help"
16-
"alpha"
17-
"dashboard"
18-
"neo-tree"
19-
"Trouble"
20-
"trouble"
21-
"lazy"
22-
"mason"
23-
"notify"
24-
"toggleterm"
25-
"lazyterm"
26-
];
5+
settings = {
6+
indent = {
7+
char = "│"; # "│" or "▎"
8+
};
9+
scope = {
10+
enabled = true;
11+
show_start = true;
12+
};
13+
exclude = {
14+
buftypes = ["terminal" "nofile"];
15+
filetypes = [
16+
"help"
17+
"alpha"
18+
"dashboard"
19+
"neo-tree"
20+
"Trouble"
21+
"trouble"
22+
"lazy"
23+
"mason"
24+
"notify"
25+
"toggleterm"
26+
"lazyterm"
27+
];
28+
};
2729
};
2830
};
2931
};

config/utils/markdown-preview.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
plugins.markdown-preview = {
33
enable = true;
4-
browser = "floorp";
5-
theme = "dark";
4+
settings = {
5+
browser = "floorp";
6+
theme = "dark";
7+
};
68
};
79
keymaps = [
810
{

config/utils/oil.nix

+36-33
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,43 @@
11
{
22
plugins.oil = {
33
enable = true;
4-
useDefaultKeymaps = true;
5-
deleteToTrash = true;
6-
viewOptions = {
7-
showHidden = true;
8-
};
9-
float = {
10-
padding = 2;
11-
maxWidth = 0; # ''math.ceil(vim.o.lines * 0.8 - 4)'';
12-
maxHeight = 0; # ''math.ceil(vim.o.columns * 0.8)'';
13-
border = "rounded"; # 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open
14-
winOptions = {
15-
winblend = 0;
4+
settings = {
5+
useDefaultKeymaps = true;
6+
deleteToTrash = true;
7+
viewOptions = {
8+
showHidden = true;
9+
};
10+
preview = {
11+
border = "rounded";
12+
};
13+
14+
float = {
15+
padding = 2;
16+
maxWidth = 0; # ''math.ceil(vim.o.lines * 0.8 - 4)'';
17+
maxHeight = 0; # ''math.ceil(vim.o.columns * 0.8)'';
18+
border = "rounded"; # 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open
19+
winOptions = {
20+
winblend = 0;
21+
};
22+
};
23+
keymaps = {
24+
"g?" = "actions.show_help";
25+
"<CR>" = "actions.select";
26+
"<C-\\>" = "actions.select_vsplit";
27+
"<C-enter>" = "actions.select_split"; # this is used to navigate left
28+
"<C-t>" = "actions.select_tab";
29+
"<C-p>" = "actions.preview";
30+
"<C-c>" = "actions.close";
31+
"<C-r>" = "actions.refresh";
32+
"-" = "actions.parent";
33+
"_" = "actions.open_cwd";
34+
"`" = "actions.cd";
35+
"~" = "actions.tcd";
36+
"gs" = "actions.change_sort";
37+
"gx" = "actions.open_external";
38+
"g." = "actions.toggle_hidden";
39+
"q" = "actions.close";
1640
};
17-
};
18-
preview = {
19-
border = "rounded";
20-
};
21-
keymaps = {
22-
"g?" = "actions.show_help";
23-
"<CR>" = "actions.select";
24-
"<C-\\>" = "actions.select_vsplit";
25-
"<C-enter>" = "actions.select_split"; # this is used to navigate left
26-
"<C-t>" = "actions.select_tab";
27-
"<C-p>" = "actions.preview";
28-
"<C-c>" = "actions.close";
29-
"<C-r>" = "actions.refresh";
30-
"-" = "actions.parent";
31-
"_" = "actions.open_cwd";
32-
"`" = "actions.cd";
33-
"~" = "actions.tcd";
34-
"gs" = "actions.change_sort";
35-
"gx" = "actions.open_external";
36-
"g." = "actions.toggle_hidden";
37-
"q" = "actions.close";
3841
};
3942
};
4043
keymaps = [

config/utils/project-nvim.nix

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
plugins.project-nvim = {
33
enable = true;
4+
enableTelescope = true;
45
};
56
}

config/utils/undotree.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
}: {
88
plugins.undotree = {
99
enable = true;
10-
autoOpenDiff = true;
11-
focusOnToggle = true;
10+
settings = {
11+
autoOpenDiff = true;
12+
focusOnToggle = true;
13+
};
1214
};
1315
keymaps = [
1416
{

0 commit comments

Comments
 (0)