telescope & zsh config update
This commit is contained in:
parent
c53cb64d61
commit
770e35644c
6 changed files with 44 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
installer-iso-image
|
installer-iso-image
|
||||||
|
result
|
||||||
|
|
|
@ -54,6 +54,8 @@
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
todo-comments-nvim
|
todo-comments-nvim
|
||||||
|
|
||||||
fugitive
|
|
||||||
gitsigns-nvim
|
gitsigns-nvim
|
||||||
];
|
];
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
|
|
@ -1,2 +1,20 @@
|
||||||
local telescope = require('telescope')
|
local actions = require('telescope.actions')
|
||||||
telescope.setup {}
|
|
||||||
|
require("telescope").setup {
|
||||||
|
pickers = {
|
||||||
|
buffers = {
|
||||||
|
show_all_buffers = true,
|
||||||
|
sort_lastused = true,
|
||||||
|
--theme = "dropdown",
|
||||||
|
--previewer = false,
|
||||||
|
mappings = {
|
||||||
|
i = {
|
||||||
|
["<c-d>"] = actions.delete_buffer,
|
||||||
|
},
|
||||||
|
n = {
|
||||||
|
["<c-d>"] = actions.delete_buffer,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -6,13 +6,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" ];
|
plugins = [ "git" ];
|
||||||
};
|
};
|
||||||
zplug = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
{ name = "zsh-users/zsh-autosuggestions"; }
|
|
||||||
{ name = "zsh-users/zsh-syntax-highlighting"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "zsh-nix-shell";
|
name = "zsh-nix-shell";
|
||||||
|
@ -24,6 +17,26 @@
|
||||||
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-autosuggestion";
|
||||||
|
file = "zsh-autosuggestions.zsh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "zsh-users";
|
||||||
|
repo = "zsh-autosuggestions";
|
||||||
|
rev = "v0.7.0";
|
||||||
|
sha256 = "1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-syntax-highlighting";
|
||||||
|
file = "zsh-syntax-highlighting.zsh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "zsh-users";
|
||||||
|
repo = "zsh-syntax-highlighting";
|
||||||
|
rev = "0.8.0";
|
||||||
|
sha256 = "1yl8zdip1z9inp280sfa5byjbf2vqh2iazsycar987khjsi5d5w8";
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue