more updates
This commit is contained in:
parent
ce01469113
commit
c91faa5aaf
7 changed files with 369 additions and 666 deletions
945
flake.lock
generated
945
flake.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -4,6 +4,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
git = true;
|
git = true;
|
||||||
icons = true;
|
icons = "auto";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
active_opacity = 0.93;
|
active_opacity = 0.93;
|
||||||
inactive_opacity = 0.93;
|
inactive_opacity = 0.93;
|
||||||
fullscreen_opacity = 1;
|
fullscreen_opacity = 1;
|
||||||
drop_shadow = false;
|
# drop_shadow = false;
|
||||||
};
|
};
|
||||||
animations = {
|
animations = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
smartcase = true; # Override the 'ignorecase' option if the search pattern contains upper
|
smartcase = true; # Override the 'ignorecase' option if the search pattern contains upper
|
||||||
# case characters
|
# case characters
|
||||||
scrolloff = 8; # Number of screen lines to show around the cursor
|
scrolloff = 8; # Number of screen lines to show around the cursor
|
||||||
|
# scrolloff = 999; # Number of screen lines to show around the cursor
|
||||||
cursorline = false; # Highlight the screen line of the cursor
|
cursorline = false; # Highlight the screen line of the cursor
|
||||||
cursorcolumn = false; # Highlight the screen column of the cursor
|
cursorcolumn = false; # Highlight the screen column of the cursor
|
||||||
signcolumn = "yes"; # Whether to show the signcolumn
|
signcolumn = "yes"; # Whether to show the signcolumn
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,7 @@
|
||||||
css = ["stylelint"];
|
css = ["stylelint"];
|
||||||
fish = ["fish_indent"];
|
fish = ["fish_indent"];
|
||||||
fsharp = ["fantomas"];
|
fsharp = ["fantomas"];
|
||||||
|
go = ["gofmt"];
|
||||||
haskell = ["ormolu"];
|
haskell = ["ormolu"];
|
||||||
javascript = [
|
javascript = [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,8 @@
|
||||||
|
|
||||||
pyright.enable = true;
|
pyright.enable = true;
|
||||||
hls.enable = true;
|
hls.enable = true;
|
||||||
|
gopls.enable = true;
|
||||||
|
hls.installGhc = true;
|
||||||
leanls.enable = true;
|
leanls.enable = true;
|
||||||
texlab.enable = true;
|
texlab.enable = true;
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,87 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
|
# inria
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
plugins.vimtex = {
|
plugins.vimtex = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
compiler_method = "pdflatex";
|
|
||||||
toc_config = {
|
|
||||||
split_pos = "vert topleft";
|
|
||||||
split_width = 40;
|
|
||||||
};
|
|
||||||
view_method = "zathura";
|
view_method = "zathura";
|
||||||
|
|
||||||
|
quickfix_enabled = true;
|
||||||
|
quickfix_open_on_warning = false;
|
||||||
|
|
||||||
|
# Ignore undesired errors and warnings
|
||||||
|
quickfix_ignore_filters = [
|
||||||
|
"Underfull"
|
||||||
|
"Overfull"
|
||||||
|
"specifier changed to"
|
||||||
|
"Token not allowed in a PDF string"
|
||||||
|
];
|
||||||
|
|
||||||
|
# TOC settings
|
||||||
|
toc_config = {
|
||||||
|
name = "TOC";
|
||||||
|
layers = [
|
||||||
|
"content"
|
||||||
|
"todo"
|
||||||
|
];
|
||||||
|
resize = true;
|
||||||
|
split_width = 50;
|
||||||
|
todo_sorted = false;
|
||||||
|
show_help = true;
|
||||||
|
show_numbers = true;
|
||||||
|
mode = 2;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
files."after/ftplugin/tex.lua".keymaps = [
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "m";
|
||||||
|
action = ":VimtexView<cr>";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
autoCmd = [
|
||||||
|
{
|
||||||
|
event = [
|
||||||
|
"BufEnter"
|
||||||
|
"BufWinEnter"
|
||||||
|
];
|
||||||
|
pattern = "*.tex";
|
||||||
|
command = "set filetype=tex \"| VimtexTocOpen";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Folding
|
||||||
|
{
|
||||||
|
event = "FileType";
|
||||||
|
pattern = [
|
||||||
|
"tex"
|
||||||
|
"latex"
|
||||||
|
];
|
||||||
|
callback.__raw = ''
|
||||||
|
function ()
|
||||||
|
vim.o.foldmethod = 'expr'
|
||||||
|
vim.o.foldexpr = 'vimtex#fold#level(v:lnum)'
|
||||||
|
vim.o.foldtext = 'vimtex#fold#text()'
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
|
# Compile on initialization
|
||||||
|
{
|
||||||
|
event = "User";
|
||||||
|
pattern = "VimtexEventInitPost";
|
||||||
|
callback = "vimtex#compiler#compile";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Cleanup on exit
|
||||||
|
{
|
||||||
|
event = "User";
|
||||||
|
pattern = "VimtexEventQuit";
|
||||||
|
command = "call vimtex#compiler#clean(0)";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue