more updates

This commit is contained in:
gwg313 2024-12-02 17:50:11 -05:00
parent ce01469113
commit c91faa5aaf
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
7 changed files with 369 additions and 666 deletions

945
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -4,6 +4,6 @@
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
git = true; git = true;
icons = true; icons = "auto";
}; };
} }

View file

@ -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;

View file

@ -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

View file

@ -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 = [
[ [

View file

@ -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;

View file

@ -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)";
}
];
}; };
} }