some updates
This commit is contained in:
parent
db319ed5af
commit
6e8014e0b5
13 changed files with 153 additions and 14 deletions
|
|
@ -40,7 +40,7 @@
|
|||
cmp-nvim-lsp.enable = true;
|
||||
cmp-nvim-lua.enable = true;
|
||||
cmp_luasnip.enable = true;
|
||||
cmp-path.enable = true;
|
||||
# cmp-path.enable = true;
|
||||
cmp-latex-symbols.enable = true;
|
||||
cmp-buffer.enable = true;
|
||||
cmp = {
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
{name = "buffer";}
|
||||
|
||||
{name = "path";}
|
||||
# { name = "path"; }
|
||||
];
|
||||
|
||||
mapping = {
|
||||
|
|
|
|||
|
|
@ -34,5 +34,6 @@ _: {
|
|||
./which-key.nix
|
||||
./undotree.nix
|
||||
./yazi.nix
|
||||
./vimtex.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,6 +74,8 @@
|
|||
pyright.enable = true;
|
||||
hls.enable = true;
|
||||
leanls.enable = true;
|
||||
texlab.enable = true;
|
||||
html.enable = true;
|
||||
};
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
|
|
|
|||
15
home-manager/modules/neovim/plugins/vimtex.nix
Normal file
15
home-manager/modules/neovim/plugins/vimtex.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{...}: {
|
||||
programs.nixvim = {
|
||||
plugins.vimtex = {
|
||||
enable = true;
|
||||
settings = {
|
||||
compiler_method = "latexrun";
|
||||
toc_config = {
|
||||
split_pos = "vert topleft";
|
||||
split_width = 40;
|
||||
};
|
||||
view_method = "zathura";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -163,5 +163,23 @@
|
|||
tksv = "tmux kill-server";
|
||||
tkss = "tmux kill-session -t";
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
function sesh-sessions() {
|
||||
{
|
||||
exec </dev/tty
|
||||
exec <&1
|
||||
local session
|
||||
session=$(sesh list -t -c | fzf --height 40% --reverse --border-label ' sesh ' --border --prompt '⚡ ')
|
||||
[[ -z "$session" ]] && return
|
||||
sesh connect $session
|
||||
}
|
||||
}
|
||||
|
||||
zle -N sesh-sessions
|
||||
bindkey -M emacs '\es' sesh-sessions
|
||||
bindkey -M vicmd '\es' sesh-sessions
|
||||
bindkey -M viins '\es' sesh-sessions
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,10 @@
|
|||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = ["git"];
|
||||
plugins = [
|
||||
"git"
|
||||
"copyfile"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
|
||||
|
|
@ -69,7 +72,6 @@
|
|||
size = 10000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
initExtra = ''
|
||||
'';
|
||||
initExtra = '''';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue