add config
This commit is contained in:
7
config/plugins/utils/extras.nix
Normal file
7
config/plugins/utils/extras.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
plugins = {
|
||||
web-devicons.enable = true;
|
||||
which-key.enable = true;
|
||||
fidget.enable = true;
|
||||
};
|
||||
}
|
36
config/plugins/utils/telescope.nix
Normal file
36
config/plugins/utils/telescope.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
|
||||
extensions = {
|
||||
file-browser.enable = true;
|
||||
fzf-native.enable = true;
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
";" = {
|
||||
action = "find_files";
|
||||
options.desc = "Find project files";
|
||||
};
|
||||
|
||||
"<leader>g" = {
|
||||
action = "live_grep";
|
||||
options.desc = "Grep from root dir";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
extraConfigLua =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
require("telescope").setup{
|
||||
pickers = {
|
||||
colorscheme = {
|
||||
enable_preview = true
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
}
|
23
config/plugins/utils/toggleterm.nix
Normal file
23
config/plugins/utils/toggleterm.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
plugins.toggleterm = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
size = 20;
|
||||
close_on_exit = false;
|
||||
hide_numbers = true;
|
||||
shade_terminals = true;
|
||||
shading_factor = 1;
|
||||
start_in_insert = true;
|
||||
persist_size = true;
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n" "i"];
|
||||
key = "<c-\>";
|
||||
action = "<cmd>ToggleTerm direction=horizontal<cr>";
|
||||
options.desc = "Toggle Horizontal Terminal Window";
|
||||
}
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user