Lots of latex stuff and idk what else (timezone change!)
This commit is contained in:
parent
b1ec69ad9d
commit
f17b922131
15
README.md
15
README.md
|
@ -2,7 +2,18 @@
|
||||||
|
|
||||||
My flake based nixos configuration. To use this, just rebuild your system using `sudo nixos-rebuild switch --flake .` while in the project directory.
|
My flake based nixos configuration. To use this, just rebuild your system using `sudo nixos-rebuild switch --flake .` while in the project directory.
|
||||||
|
|
||||||
|
## Neovim config
|
||||||
## Neovim config
|
|
||||||
|
|
||||||
Check out my neovim config in [this directory](./dotfiles/neovim)
|
Check out my neovim config in [this directory](./dotfiles/neovim)
|
||||||
|
|
||||||
|
<!-- Drew this using venn.nvim
|
||||||
|
┌┬┬┬┬┬─┬─┬─┬──┬──┬───┬─────┐┌─────┐
|
||||||
|
├┼┼┼┼┼┬┴┬┴┬┴─┬┴─┬┴─┬─┴──┬──┘│START│ ┌┐
|
||||||
|
├┼┼┼┼┼┴┬┴┬┴──┴──┴──┴────┘ └─┬┬┬─┘ ││┌┐ ┌───────────┐
|
||||||
|
├┼┼┼┼┼┬┴┬┘ │││ ││││┌┐┌──────────────────►│ │
|
||||||
|
└┴┴┴┴┴┴─┘┌──────────────┐ │││ │││││││ ┌───────┐ │ hmmmm ┌─ │ ───────┐
|
||||||
|
│SOMETHING ELSE├─────┴┴┴───┬┼┼┼┼┼┼┼─│HMMMMMM│ │ │ │ │
|
||||||
|
└──────────────┘ ││││││└┘ └───────┘ └─────── │ ─┘ │
|
||||||
|
││││└┘ └───────────┘
|
||||||
|
└┘└┘
|
||||||
|
-->
|
||||||
|
|
|
@ -9,16 +9,23 @@ in
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
services.xserver.videoDrivers = [
|
services.xserver.videoDrivers = [
|
||||||
# "displaylink"
|
# "displaylink"
|
||||||
"modesetting"
|
"modesetting"
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware = {
|
hardware.pulseaudio.enable = lib.mkForce false;
|
||||||
pulseaudio = {
|
|
||||||
enable = true;
|
# rtkit is optional but recommended
|
||||||
};
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
gs #(ralt s h) ;; sigma
|
gs #(ralt s h) ;; sigma
|
||||||
go #(ralt o h) ;; omega
|
go #(ralt o h) ;; omega
|
||||||
gu #(ralt u h) ;; uspilon
|
gu #(ralt u h) ;; uspilon
|
||||||
|
gd #(ralt d h) ;; delta
|
||||||
|
|
||||||
gph #(ralt l p h h) ;; phi
|
gph #(ralt l p h h) ;; phi
|
||||||
gth #(ralt l t h h) ;; theta
|
gth #(ralt l t h h) ;; theta
|
||||||
|
@ -136,7 +137,7 @@
|
||||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||||
_ _ _ @ex _ _ _ _ _ @alp @arp @neg _ _
|
_ _ _ @ex _ _ _ _ _ @alp @arp @neg _ _
|
||||||
_ @shr @go @ge _ @gt _ @gu _ @go @gp _ _ _
|
_ @shr @go @ge _ @gt _ @gu _ @go @gp _ _ _
|
||||||
_ @ga @gs _ _ @gg @gth @gps @gph @ml _ _ _
|
_ @ga @gs @gd _ @gg @gth @gps @gph @ml _ _ _
|
||||||
@Mth _ @gx _ @fal @gb _ @gm @lar @rar _ _
|
@Mth _ @gx _ @fal @gb _ @gm @lar @rar _ _
|
||||||
_ _ _ _ @mathExtra _ _
|
_ _ _ _ @mathExtra _ _
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<Multi_key> <s> <h> : "σ" U0260 # LATIN SMALL LETTER SIGMA
|
<Multi_key> <s> <h> : "σ" U0260 # LATIN SMALL LETTER SIGMA
|
||||||
<Multi_key> <o> <h> : "ω" U0261 # LATIN SMALL LETTER OMEGA
|
<Multi_key> <o> <h> : "ω" U0261 # LATIN SMALL LETTER OMEGA
|
||||||
<Multi_key> <u> <h> : "υ" U0262 # LATIN SMALL LETTER UPSILON
|
<Multi_key> <u> <h> : "υ" U0262 # LATIN SMALL LETTER UPSILON
|
||||||
|
<Multi_key> <d> <h> : "δ" U0263 # LATIN SMALL LETTER DELTA
|
||||||
|
|
||||||
<Multi_key> <l> <p> <h> <h> : "ϕ" U0270 # LATIN SMALL LETTER PHI
|
<Multi_key> <l> <p> <h> <h> : "ϕ" U0270 # LATIN SMALL LETTER PHI
|
||||||
<Multi_key> <l> <t> <h> <h> : "θ" U0271 # LATIN SMALL LETTER THETA
|
<Multi_key> <l> <t> <h> <h> : "θ" U0271 # LATIN SMALL LETTER THETA
|
||||||
|
|
49
dotfiles/neovim/ftplugin/tex.lua
Normal file
49
dotfiles/neovim/ftplugin/tex.lua
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
local A = require("my.abbreviations")
|
||||||
|
|
||||||
|
vim.opt.conceallevel = 1
|
||||||
|
vim.opt.wrap = true
|
||||||
|
|
||||||
|
vim.g.tex_conceal = "abdmg"
|
||||||
|
|
||||||
|
local abbreviations = {
|
||||||
|
-- Greek chars
|
||||||
|
{ "eps", "\\epsilon" },
|
||||||
|
{ "delta", "\\delta" },
|
||||||
|
|
||||||
|
-- Exponents
|
||||||
|
{ "en1", "^{-1}" },
|
||||||
|
{ "e1", "^{0}" },
|
||||||
|
{ "e1", "^{1}" },
|
||||||
|
{ "e2", "^{2}" },
|
||||||
|
{ "e3", "^{3}" },
|
||||||
|
{ "e4", "^{4}" },
|
||||||
|
{ "en", "^{n}" },
|
||||||
|
|
||||||
|
-- Subscripts
|
||||||
|
{ "s0", "_{0}" },
|
||||||
|
{ "s1", "_{1}" },
|
||||||
|
{ "s2", "_{2}" },
|
||||||
|
{ "s3", "_{3}" },
|
||||||
|
{ "s4", "_{4}" },
|
||||||
|
{ "sn", "_{n}" },
|
||||||
|
|
||||||
|
-- Function calls
|
||||||
|
{ "fx", "f(x)" },
|
||||||
|
{ "gx", "g(x)" },
|
||||||
|
{ "hx", "h(x)" },
|
||||||
|
{ "Px", "P(x)" },
|
||||||
|
|
||||||
|
-- Basic commands
|
||||||
|
{ "leq", "\\leq" },
|
||||||
|
{ "neq", "\\neq" },
|
||||||
|
{ "nin", "\\not\\in" },
|
||||||
|
{ "iin", "\\in" },
|
||||||
|
{ "tto", "\\to" },
|
||||||
|
{ "iff", "\\iff" },
|
||||||
|
{ "land", "\\land" },
|
||||||
|
{ "lor", "\\lor" },
|
||||||
|
{ "frl", "\\forall" },
|
||||||
|
{ "exs", "\\exists" },
|
||||||
|
}
|
||||||
|
|
||||||
|
A.manyLocalAbbr(abbreviations)
|
|
@ -1,8 +1,19 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
function M.localAbbr(lhs, rhs)
|
||||||
|
-- Create abbreviation
|
||||||
|
vim.cmd(":iabbrev <buffer>" .. lhs .. " " .. rhs)
|
||||||
|
end
|
||||||
|
|
||||||
|
function M.manyLocalAbbr(abbreviations)
|
||||||
|
for _, value in pairs(abbreviations) do
|
||||||
|
M.localAbbr(value[1], value[2])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function M.abbr(lhs, rhs)
|
function M.abbr(lhs, rhs)
|
||||||
-- Create abbreviation
|
-- Create abbreviation
|
||||||
vim.cmd(":iabbrev " .. lhs .. " " .. rhs)
|
vim.cmd(":iabbrev " .. lhs .. " " .. rhs)
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -28,7 +28,7 @@ function M.setup()
|
||||||
arpeggio.chord("n", "vs", "<C-w>v") -- Create vertical split
|
arpeggio.chord("n", "vs", "<C-w>v") -- Create vertical split
|
||||||
arpeggio.chord("n", "ji", ":w<cr>") -- Saving
|
arpeggio.chord("n", "ji", ":w<cr>") -- Saving
|
||||||
arpeggio.chord("i", "jk", "<Esc>") -- Remap Esc to jk
|
arpeggio.chord("i", "jk", "<Esc>") -- Remap Esc to jk
|
||||||
arpeggio.chord("inv", "<Leader>a", "<C-6><cr>") -- Rebind switching to the last pane using leader+a
|
arpeggio.chord("nv", "<Leader>a", "<C-6><cr>") -- Rebind switching to the last pane using leader+a
|
||||||
arpeggio.chord("nv", "cp", "\"+") -- Press cp to use the global clipboard
|
arpeggio.chord("nv", "cp", "\"+") -- Press cp to use the global clipboard
|
||||||
arpeggio.chord("n", "rw", ":%s/<C-r><C-w>/") -- Press rw to rename word under cursor
|
arpeggio.chord("n", "rw", ":%s/<C-r><C-w>/") -- Press rw to rename word under cursor
|
||||||
end
|
end
|
||||||
|
|
|
@ -53,6 +53,7 @@ function M.setup()
|
||||||
"rktjmp/paperplanes.nvim", -- export to pastebin like services
|
"rktjmp/paperplanes.nvim", -- export to pastebin like services
|
||||||
"anuvyklack/hydra.nvim", -- keybinds where you only hit the head once
|
"anuvyklack/hydra.nvim", -- keybinds where you only hit the head once
|
||||||
"jbyuki/venn.nvim", -- draw ascii diagrams
|
"jbyuki/venn.nvim", -- draw ascii diagrams
|
||||||
|
"hrsh7th/cmp-omni", -- omnifunc source for cmp
|
||||||
|
|
||||||
-- Git stuff
|
-- Git stuff
|
||||||
"ruifm/gitlinker.nvim", -- generate permalinks for code
|
"ruifm/gitlinker.nvim", -- generate permalinks for code
|
||||||
|
|
17
dotfiles/neovim/lua/my/plugins/autopairs.lua
Normal file
17
dotfiles/neovim/lua/my/plugins/autopairs.lua
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
function M.setup()
|
||||||
|
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||||
|
local cmp = require('cmp')
|
||||||
|
|
||||||
|
cmp.event:on(
|
||||||
|
'confirm_done',
|
||||||
|
cmp_autopairs.on_confirm_done()
|
||||||
|
)
|
||||||
|
|
||||||
|
require('nvim-autopairs').setup({
|
||||||
|
enable_abbr = false
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
|
@ -24,10 +24,15 @@ function M.setup()
|
||||||
formatting = {
|
formatting = {
|
||||||
fields = { "kind", "abbr", "menu" },
|
fields = { "kind", "abbr", "menu" },
|
||||||
format = function(entry, vim_item)
|
format = function(entry, vim_item)
|
||||||
local kind = lspkind.cmp_format({ mode = "symbol_text", maxwidth = 50 })(entry, vim_item)
|
local kind = lspkind.cmp_format({ mode = "symbol", maxwidth = 50
|
||||||
|
, symbol_map = {
|
||||||
|
Text = "."
|
||||||
|
}
|
||||||
|
})(entry, vim_item)
|
||||||
local strings = vim.split(kind.kind, "%s", { trimempty = true })
|
local strings = vim.split(kind.kind, "%s", { trimempty = true })
|
||||||
|
|
||||||
kind.kind = " " .. strings[1] .. " "
|
kind.kind = " " .. strings[1] .. " "
|
||||||
kind.menu = " (" .. strings[2] .. ")"
|
kind.menu = ""
|
||||||
|
|
||||||
return kind
|
return kind
|
||||||
end,
|
end,
|
||||||
|
@ -63,7 +68,8 @@ function M.setup()
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'nvim_lsp' }, -- lsp completion
|
{ name = 'nvim_lsp' }, -- lsp completion
|
||||||
{ name = 'luasnip' } -- snippets
|
{ name = 'luasnip' }, -- snippets
|
||||||
|
{ name = 'omni' } -- omnifunc
|
||||||
}, { { name = 'buffer' } })
|
}, { { name = 'buffer' } })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ local vscode = require("my.helpers.vscode")
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
require('nvim-autopairs').setup()
|
|
||||||
require "gitlinker".setup()
|
require "gitlinker".setup()
|
||||||
require('nvim_comment').setup()
|
require('nvim_comment').setup()
|
||||||
require('fidget').setup()
|
require('fidget').setup()
|
||||||
|
@ -22,6 +21,7 @@ function M.setup()
|
||||||
require("my.plugins.vimux").setup()
|
require("my.plugins.vimux").setup()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
require("my.plugins.autopairs").setup()
|
||||||
require("my.plugins.paperplanes").setup()
|
require("my.plugins.paperplanes").setup()
|
||||||
require("my.plugins.neogit").setup()
|
require("my.plugins.neogit").setup()
|
||||||
require("my.plugins.telescope").setup()
|
require("my.plugins.telescope").setup()
|
||||||
|
|
|
@ -2,12 +2,12 @@ local lspconfig = require("my.plugins.lspconfig")
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
require('lean').setup {
|
require('lean').setup {
|
||||||
abbreviations = {builtin = true, cmp = true},
|
abbreviations = { builtin = true, cmp = true },
|
||||||
lsp = {on_attach = lspconfig.on_attach},
|
lsp = { on_attach = lspconfig.on_attach },
|
||||||
lsp3 = {on_attach = lspconfig.on_attach},
|
lsp3 = { on_attach = lspconfig.on_attach },
|
||||||
mappings = true
|
mappings = true
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -102,6 +102,19 @@ local servers = {
|
||||||
},
|
},
|
||||||
rnix = {},
|
rnix = {},
|
||||||
cssls = {},
|
cssls = {},
|
||||||
|
-- texlab = {
|
||||||
|
-- build = {
|
||||||
|
-- executable = "tectonic",
|
||||||
|
-- args = {
|
||||||
|
-- "-X",
|
||||||
|
-- "compile",
|
||||||
|
-- "%f",
|
||||||
|
-- "--synctex",
|
||||||
|
-- "--keep-logs",
|
||||||
|
-- "--keep-intermediates"
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
-- },
|
||||||
kotlin_language_server = {}
|
kotlin_language_server = {}
|
||||||
-- agda = {}, Haven't gotten this one to work yet
|
-- agda = {}, Haven't gotten this one to work yet
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,9 @@ function M.setup()
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = false,
|
||||||
|
|
||||||
disable = { "kotlin" },
|
disable = { "kotlin", "tex" },
|
||||||
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||||
|
|
|
@ -3,10 +3,15 @@ local global = require("my.helpers").global
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
-- Viewer method
|
-- Viewer method
|
||||||
global("vimtex_view_method", "zathura")
|
vim.g.vimtex_view_method = "zathura"
|
||||||
global("Tex_DefaultTargetFormat", "pdf")
|
vim.g.Tex_DefaultTargetFormat = "pdf"
|
||||||
global("vimtex_compiler_latexmk", {options = {"-pdf", "-shell-escape", "-verbose", "-file-line-error", "-synctex=1", "-interaction=nonstopmode"}})
|
vim.g.vimtex_fold_enabled = 1
|
||||||
|
vim.g.vimtex_compiler_latexmk = {
|
||||||
|
options = {
|
||||||
|
"-pdf", "-shell-escape", "-verbose", "-file-line-error", "-synctex=1", "-interaction=nonstopmode"
|
||||||
|
}
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -3,9 +3,9 @@ local arpeggio = require("my.plugins.arpeggio")
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
arpeggio.chordSilent("n", "vp", ":VimuxPromptCommand<CR>")
|
arpeggio.chordSilent("n", "vp", ":VimuxPromptCommand<CR>")
|
||||||
arpeggio.chordSilent("n", "vc", ":VimuxRunCommand \"clear\"<CR>")
|
arpeggio.chordSilent("n", "vc", ":VimuxRunCommand \"clear\"<CR>")
|
||||||
arpeggio.chordSilent("n", "vl", ":VimuxRunLastCommand<CR>")
|
arpeggio.chordSilent("n", "vl", ":VimuxRunLastCommand<CR>")
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -6,16 +6,31 @@
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"snippets": [
|
"snippets": [
|
||||||
{
|
{
|
||||||
"language": ["purs", "purescript"],
|
"language": [
|
||||||
|
"purs",
|
||||||
|
"purescript"
|
||||||
|
],
|
||||||
"path": "./snippets/purescript/other.json"
|
"path": "./snippets/purescript/other.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language": ["purs", "purescript"],
|
"language": [
|
||||||
|
"purs",
|
||||||
|
"purescript"
|
||||||
|
],
|
||||||
"path": "./snippets/purescript/imports.json"
|
"path": "./snippets/purescript/imports.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language": ["purs", "purescript"],
|
"language": [
|
||||||
|
"purs",
|
||||||
|
"purescript"
|
||||||
|
],
|
||||||
"path": "./snippets/purescript/deriving.json"
|
"path": "./snippets/purescript/deriving.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": [
|
||||||
|
"tex"
|
||||||
|
],
|
||||||
|
"path": "./snippets/latex/core.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
151
dotfiles/vscode-snippets/snippets/latex/core.json
Normal file
151
dotfiles/vscode-snippets/snippets/latex/core.json
Normal file
|
@ -0,0 +1,151 @@
|
||||||
|
{
|
||||||
|
"Begin": {
|
||||||
|
"prefix": "begin",
|
||||||
|
"description": "Begin anything",
|
||||||
|
"body": ["\\begin{$1}", "\t$0", "\\end{$1}"]
|
||||||
|
},
|
||||||
|
"Set": {
|
||||||
|
"prefix": "set",
|
||||||
|
"description": "Set I guess",
|
||||||
|
"body": "\\{$1\\\\}$0"
|
||||||
|
},
|
||||||
|
"Absolute value": {
|
||||||
|
"prefix": "abs",
|
||||||
|
"description": "Absolute values",
|
||||||
|
"body": "|$1|$0"
|
||||||
|
},
|
||||||
|
"Lemma": {
|
||||||
|
"prefix": "lemma",
|
||||||
|
"description": "Create a lemma",
|
||||||
|
"body": ["\\begin{lemma}[$1] \\label{lem:$1}", "\t$0", "\\end{lemma}"]
|
||||||
|
},
|
||||||
|
"Theorem": {
|
||||||
|
"prefix": "theorem",
|
||||||
|
"description": "Create a theorem",
|
||||||
|
"body": ["\\begin{theorem}[$1] \\label{thm:$1}", "\t$0", "\\end{theorem}"]
|
||||||
|
},
|
||||||
|
"Exercise": {
|
||||||
|
"prefix": "exercise",
|
||||||
|
"description": "Create a exercise",
|
||||||
|
"body": ["\\begin{exercise}[$1] \\label{exe:$1}", "\t$0", "\\end{exercise}"]
|
||||||
|
},
|
||||||
|
"Definition": {
|
||||||
|
"prefix": "definition",
|
||||||
|
"description": "Create a definition",
|
||||||
|
"body": [
|
||||||
|
"\\begin{definition}[$1] \\label{def:$1}",
|
||||||
|
"\t$0",
|
||||||
|
"\\end{definition}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Display math": {
|
||||||
|
"prefix": "dm",
|
||||||
|
"description": "Display math section",
|
||||||
|
"body": ["\\[", "$0", "\\]"]
|
||||||
|
},
|
||||||
|
"Subscript": {
|
||||||
|
"prefix": "ss",
|
||||||
|
"description": "Subscript",
|
||||||
|
"body": "_{$1}$0"
|
||||||
|
},
|
||||||
|
"Section": {
|
||||||
|
"prefix": "section",
|
||||||
|
"description": "Add section",
|
||||||
|
"body": ["\\section{$1}", "$0"]
|
||||||
|
},
|
||||||
|
"Subsection": {
|
||||||
|
"prefix": "subsection",
|
||||||
|
"description": "Add subsection",
|
||||||
|
"body": ["\\subsection{$1}", "$0"]
|
||||||
|
},
|
||||||
|
"Subsubsection": {
|
||||||
|
"prefix": "subsubsection",
|
||||||
|
"description": "Add subsubsection",
|
||||||
|
"body": ["\\subsubsection{$1}", "$0"]
|
||||||
|
},
|
||||||
|
"Chapter": {
|
||||||
|
"prefix": "chapter",
|
||||||
|
"description": "Add chapter",
|
||||||
|
"body": ["\\chapter{$1}", "$0"]
|
||||||
|
},
|
||||||
|
"Proof": {
|
||||||
|
"prefix": "proof",
|
||||||
|
"description": "Create proof",
|
||||||
|
"body": ["\\begin{proof}", "\t$0", "\\end{proof}"]
|
||||||
|
},
|
||||||
|
"Itemize": {
|
||||||
|
"prefix": "item",
|
||||||
|
"body": ["\\\\begin{itemize}", "\t\\item $0", "\\\\end{itemize}"],
|
||||||
|
"description": "Itemize"
|
||||||
|
},
|
||||||
|
"Reference definition": {
|
||||||
|
"prefix": "rdef",
|
||||||
|
"description": "Reference a definition",
|
||||||
|
"body": "\\ref{def:$1}$0"
|
||||||
|
},
|
||||||
|
"Reference lemma": {
|
||||||
|
"prefix": "rlemma",
|
||||||
|
"description": "Reference a lemma",
|
||||||
|
"body": "\\ref{lem:$1}$0"
|
||||||
|
},
|
||||||
|
"Reference theorem": {
|
||||||
|
"prefix": "rtheorem",
|
||||||
|
"description": "Reference a theorem",
|
||||||
|
"body": "\\ref{thm:$1}$0"
|
||||||
|
},
|
||||||
|
"Fraction": {
|
||||||
|
"prefix": "frac",
|
||||||
|
"description": "Create a fraction",
|
||||||
|
"body": "\\frac{$1}{$2}$0"
|
||||||
|
},
|
||||||
|
"Limit": {
|
||||||
|
"prefix": "lim",
|
||||||
|
"description": "Create a limit",
|
||||||
|
"body": "\\lim _{$1 \\to $2}$0"
|
||||||
|
},
|
||||||
|
"Sqrt": {
|
||||||
|
"prefix": "sqrt",
|
||||||
|
"description": "Create a sqrt",
|
||||||
|
"body": "\\sqrt[$1]{$2}$0"
|
||||||
|
},
|
||||||
|
"Real numbers": {
|
||||||
|
"prefix": "reals",
|
||||||
|
"description": "ℝ",
|
||||||
|
"body": "\\mathbb{R}"
|
||||||
|
},
|
||||||
|
"Complex numbers": {
|
||||||
|
"prefix": "complex",
|
||||||
|
"description": "Fancy C symbol",
|
||||||
|
"body": "\\mathbb{C}"
|
||||||
|
},
|
||||||
|
"Natural numbers": {
|
||||||
|
"prefix": "nats",
|
||||||
|
"description": "ℕ",
|
||||||
|
"body": "\\mathbb{N}"
|
||||||
|
},
|
||||||
|
"Integers": {
|
||||||
|
"prefix": "ints",
|
||||||
|
"description": "ℤ",
|
||||||
|
"body": "\\mathbb{Z}"
|
||||||
|
},
|
||||||
|
"Rationals": {
|
||||||
|
"prefix": "rats",
|
||||||
|
"description": "ℚ",
|
||||||
|
"body": "\\mathbb{Q}"
|
||||||
|
},
|
||||||
|
"Fields": {
|
||||||
|
"prefix": "fields",
|
||||||
|
"description": "Fanch F symbol",
|
||||||
|
"body": "\\mathbb{F}"
|
||||||
|
},
|
||||||
|
"Aligned": {
|
||||||
|
"prefix": "aligned",
|
||||||
|
"description": "Create an aligned environment",
|
||||||
|
"body": ["\\begin{aligned}", "\t$0", "\\end{aligned}"]
|
||||||
|
},
|
||||||
|
"Aligned display math": {
|
||||||
|
"prefix": "maligned",
|
||||||
|
"description": "Create an aligned display math environment",
|
||||||
|
"body": ["\\[", "\t\\begin{aligned}", "\t\t$0", "\t\\end{aligned}", "\\]"]
|
||||||
|
}
|
||||||
|
}
|
12
flake.lock
12
flake.lock
|
@ -529,11 +529,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "contrib",
|
"dir": "contrib",
|
||||||
"lastModified": 1660711471,
|
"lastModified": 1662451801,
|
||||||
"narHash": "sha256-KcSufGje9D2EWAFq5EkPQoDqzQsfNsSg/m5gIkS7IKU=",
|
"narHash": "sha256-/k86NFXnZEcVXNzDdifxd9cQ5gZzLc0qqNDztYmM+mg=",
|
||||||
"owner": "neovim",
|
"owner": "neovim",
|
||||||
"repo": "neovim",
|
"repo": "neovim",
|
||||||
"rev": "bccb5de89da452d9136b3c813be584f15d3018ba",
|
"rev": "5b8d6e0b3200c5cb9d98cbdb4ed0afe2b4edd38d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -552,11 +552,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1660724221,
|
"lastModified": 1662452250,
|
||||||
"narHash": "sha256-XywsLM2OxjCGARNlyvAvgO3ZjD+iF6AsLnJ4mJQZ6LM=",
|
"narHash": "sha256-0qP89RrJ71sj6/oWRuC5oJXZ+q37DovGUworw46O15s=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "neovim-nightly-overlay",
|
"repo": "neovim-nightly-overlay",
|
||||||
"rev": "6a8790f60859a7ba074af3d0bc373813f2eac15b",
|
"rev": "ffbbedc805ee3e7bf5937dd4f5140bd542de6751",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
./steam.nix
|
./steam.nix
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./misc.nix
|
./misc.nix
|
||||||
|
./zathura.nix
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./locale.nix
|
./locale.nix
|
||||||
# ./memes.nix
|
# ./memes.nix
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
time.timeZone = "Europe/Bucharest";
|
# time.timeZone = "Europe/Bucharest";
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
i18n.inputMethod = {
|
i18n.inputMethod = {
|
||||||
enabled = "ibus";
|
enabled = "ibus";
|
||||||
|
|
|
@ -27,11 +27,12 @@
|
||||||
# unison-ucm
|
# unison-ucm
|
||||||
xorg.libX11 # wtf is this
|
xorg.libX11 # wtf is this
|
||||||
okular # forgot what this does
|
okular # forgot what this does
|
||||||
zathura # pdf thing?
|
|
||||||
spotify-tui # spotify terminal ui
|
spotify-tui # spotify terminal ui
|
||||||
# kdeconnect # connect with your phone
|
# kdeconnect # connect with your phone
|
||||||
sloc # line of code counter
|
sloc # line of code counter
|
||||||
update-nix-fetchgit # for updating fetchgit calls in nix files
|
update-nix-fetchgit # for updating fetchgit calls in nix files
|
||||||
|
pamixer # set pipewire volume
|
||||||
|
pulseaudio # pactl and stuff (same thing as above)
|
||||||
|
|
||||||
# editors
|
# editors
|
||||||
# vscodium
|
# vscodium
|
||||||
|
|
|
@ -18,6 +18,8 @@ let
|
||||||
rnix-lsp # nix
|
rnix-lsp # nix
|
||||||
haskell-language-server # haskell
|
haskell-language-server # haskell
|
||||||
kotlin-language-server # kotlin
|
kotlin-language-server # kotlin
|
||||||
|
tectonic # also latex something?
|
||||||
|
texlab # latex
|
||||||
# vscode-langservers-extracted # css and shit
|
# vscode-langservers-extracted # css and shit
|
||||||
|
|
||||||
# Formatters
|
# Formatters
|
||||||
|
|
|
@ -9,11 +9,16 @@
|
||||||
wifi = "sudo nmcli con up id";
|
wifi = "sudo nmcli con up id";
|
||||||
|
|
||||||
# Volume controls
|
# Volume controls
|
||||||
"v-up" = "amixer set Master 8%+";
|
"v-up" = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
"v-down" = "amixer set Master 8%-";
|
"v-down" = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
"v-min" = "amixer set Master 0%";
|
"v-min" = "pactl set-sink-volume @DEFAULT_SINK@ 0%";
|
||||||
"v-mid" = "amixer set Master 50%";
|
"v-mid" = "pactl set-sink-volume @DEFAULT_SINK@ 50%";
|
||||||
"v-max" = "amixer set Master 100%";
|
"v-max" = "pactl set-sink-volume @DEFAULT_SINK@ 100%";
|
||||||
|
# "v-up" = "amixer set Master 8%+";
|
||||||
|
# "v-down" = "amixer set Master 8%-";
|
||||||
|
# "v-min" = "amixer set Master 0%";
|
||||||
|
# "v-mid" = "amixer set Master 50%";
|
||||||
|
# "v-max" = "amixer set Master 100%";
|
||||||
|
|
||||||
# Print available battery
|
# Print available battery
|
||||||
battery = "acpi";
|
battery = "acpi";
|
||||||
|
|
|
@ -90,8 +90,8 @@ main =
|
||||||
]
|
]
|
||||||
|
|
||||||
uniformBorder = join $ join $ join Border
|
uniformBorder = join $ join $ join Border
|
||||||
border = uniformBorder 4
|
border = uniformBorder 0
|
||||||
spacingHook = spacingRaw True border True border True
|
spacingHook = spacingRaw False border False border True
|
||||||
|
|
||||||
tall = Tall 1 (3 / 100) (1 / 2)
|
tall = Tall 1 (3 / 100) (1 / 2)
|
||||||
threeCols = ThreeCol 1 (3 / 100) (1 / 2)
|
threeCols = ThreeCol 1 (3 / 100) (1 / 2)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
services.picom = {
|
services.picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
blur = true;
|
blur = true;
|
||||||
shadow = true;
|
shadow = false;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
blur:
|
blur:
|
||||||
{
|
{
|
||||||
|
|
19
modules/applications/zathura.nix
Normal file
19
modules/applications/zathura.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
theme = pkgs.myThemes.current;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
{
|
||||||
|
home-manager.users.adrielus.programs.zathura.enable = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
home-manager.users.adrielus = lib.mkIf theme.zathura.enable {
|
||||||
|
xdg.configFile."zathura/${theme.zathura.name}".source = theme.zathura.theme;
|
||||||
|
programs.zathura = {
|
||||||
|
extraConfig = ''
|
||||||
|
include ${theme.zathura.name}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,8 @@ let
|
||||||
githubTheme = pkgs.myVimPlugins.githubNvimTheme; # github theme for neovim
|
githubTheme = pkgs.myVimPlugins.githubNvimTheme; # github theme for neovim
|
||||||
foreign = pkgs.callPackage (import ./foreign.nix) { };
|
foreign = pkgs.callPackage (import ./foreign.nix) { };
|
||||||
v = (a: b: if variant == "latte" then a else b);
|
v = (a: b: if variant == "latte" then a else b);
|
||||||
|
rofi-variant = "basic";
|
||||||
|
# rofi-variant = "deathemonic";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = "catppuccin-${variant}";
|
name = "catppuccin-${variant}";
|
||||||
|
@ -18,16 +20,16 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
# grub.path = "${foreign.grub}/catppuccin-grub-theme/theme.txt";
|
# grub.path = "${foreign.grub}/catppuccin-grub-theme/theme.txt";
|
||||||
tmux.path = "${foreign.tmux}/catppuccin.conf";
|
tmux.path = "${foreign.tmux}/catppuccin-${variant}.conf";
|
||||||
sddm.path = "${foreign.sddm}";
|
sddm.path = "${foreign.sddm}";
|
||||||
grub.path = pkgs.nixos-grub2-theme;
|
grub.path = pkgs.nixos-grub2-theme;
|
||||||
|
|
||||||
xresources = builtins.readFile "${foreign.xresources}/${variant}.Xresources";
|
xresources = builtins.readFile "${foreign.xresources}/${variant}.Xresources";
|
||||||
|
|
||||||
rofi = {
|
rofi = {
|
||||||
themes = "${foreign.rofi}/.local/share/rofi/themes/";
|
themes = "${foreign.rofi}/${rofi-variant}/.local/share/rofi/themes/";
|
||||||
config = ''
|
config = ''
|
||||||
@import "${foreign.rofi}/.config/rofi/config.rasi"
|
@import "${foreign.rofi}/${rofi-variant}/.config/rofi/config.rasi"
|
||||||
@theme "catppuccin-${variant}"
|
@theme "catppuccin-${variant}"
|
||||||
@import "${./rofi.rasi}"
|
@import "${./rofi.rasi}"
|
||||||
'';
|
'';
|
||||||
|
@ -55,13 +57,19 @@ in
|
||||||
"89DCEB"
|
"89DCEB"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
zathura = {
|
||||||
|
enable = true;
|
||||||
|
theme = "${foreign.zathura}/src/catppuccin-${variant}";
|
||||||
|
name = "catppuccin-${variant}";
|
||||||
|
};
|
||||||
|
|
||||||
alacritty.settings = {
|
alacritty.settings = {
|
||||||
import = [ "${foreign.alacritty}/catppuccin.yml" ];
|
import = [ "${foreign.alacritty}/catppuccin.yml" ];
|
||||||
# colors = "*${variant}";
|
# colors = "*${variant}";
|
||||||
window = {
|
window = {
|
||||||
padding = {
|
padding = {
|
||||||
x = 4;
|
x = 0;
|
||||||
y = 4;
|
y = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
opacity = transparency;
|
opacity = transparency;
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
tmux = fetchFromGitHub {
|
tmux = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
repo = "tmux";
|
repo = "tmux";
|
||||||
sha256 = "1vz6srk4zfgsjpwb7xa7n9mg5kfb3x7aq963mwqnl8m4zvmcy8vz";
|
sha256 = "1x95db3wjjbaljk30db3iqjddxfp1gg2m9f0318vnincsdfllmz1";
|
||||||
rev = "1c87a9e1d2fac21815497ed7f599a1c1208d40cd";
|
rev = "317159f824eeb4d170ecad34e0457281b13244d2";
|
||||||
};
|
};
|
||||||
sddm = fetchFromGitHub {
|
sddm = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
|
@ -14,20 +14,20 @@
|
||||||
grub = fetchFromGitHub {
|
grub = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
repo = "grub";
|
repo = "grub";
|
||||||
sha256 = "0ra1psb37wsgdag5swfwwzcgy73014j34c9njnvxz1jdv0k56qlc";
|
sha256 = "0d9vbq63bilikgnyzk9gfrzddvbvxi55k22cw8k0mdavfy24m1q4";
|
||||||
rev = "b2919a93ef37ea1b220bab90fa0a5fa3a26eec0b";
|
rev = "fc5fba2896db095aee7b0d6442307c3035a24fa7";
|
||||||
};
|
};
|
||||||
gtk = fetchFromGitHub {
|
gtk = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
repo = "gtk";
|
repo = "gtk";
|
||||||
sha256 = "1q9iq0agdk5rm5cfnpr1b1bzy6fdx67pvkakx478j1dlyr1d78bl";
|
sha256 = "1fzc7yzj9b9pc48qqaygbyskqjanb771x0i4ssn40hpbhj17n2ny";
|
||||||
rev = "87a79fd2bf07accc694455df30a32a82b1b31f4f";
|
rev = "fc336313a84e0d7ec1a3499047fb1e73eef8a005";
|
||||||
};
|
};
|
||||||
rofi = fetchFromGitHub {
|
rofi = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
repo = "rofi";
|
repo = "rofi";
|
||||||
sha256 = "1bs7l5mpqryjl7dz6pi419n1p9c68362vnczj0lcpbxnfpw0af24";
|
sha256 = "00p1pnnas281hdszzs8jki4l48vs76r0b5b5j5yas3vh3h352m99";
|
||||||
rev = "39fc2a0b51d594e559cb03bf9d4e743cb96f7b01";
|
rev = "5de33131d5904d4d96f4f218b1a54b9c79634965";
|
||||||
};
|
};
|
||||||
alacritty = fetchFromGitHub {
|
alacritty = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
|
@ -44,7 +44,13 @@
|
||||||
xresources = fetchFromGitHub {
|
xresources = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
repo = "xresources";
|
repo = "xresources";
|
||||||
sha256 = "1ffx73l6s0pkf4d4g5lp2d0cfxjrbczsr5fy45i0503sa279fan7";
|
sha256 = "08dh1av7kb921fdzkqhcp2yd2q848ay0kqgyf3zbnnvs0j92ap0q";
|
||||||
rev = "a9cd582faeef2f7410eb7d4b5a83d026e3f2b865";
|
rev = "046c2f9c3027af1b7aaca14377dda5ea19b61593";
|
||||||
|
};
|
||||||
|
zathura = fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "zathura";
|
||||||
|
sha256 = "17q2jn8bx712c0789vc00y9jb2vng7g7mnmqm8ypivrl616igzli";
|
||||||
|
rev = "b9553c7e398c1a157e5543ea52d20e570f730dd6";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,15 +4,15 @@ M.deps = { { "catppuccin/nvim", as = "catppuccin" } }
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
local catppuccin = require("catppuccin")
|
local catppuccin = require("catppuccin")
|
||||||
|
vim.g.catppuccin_flavour = os.getenv("CATPPUCCIN_FLAVOUR")
|
||||||
|
|
||||||
catppuccin.setup({
|
catppuccin.setup({
|
||||||
compile = { enabled = true },
|
|
||||||
transparent_background = false,
|
transparent_background = false,
|
||||||
integrations = { nvimtree = { transparent_panel = false } }
|
integrations = { nvimtree = true }
|
||||||
})
|
})
|
||||||
|
|
||||||
print("loaded this theme!")
|
print("loaded this theme!")
|
||||||
|
|
||||||
vim.g.catppuccin_flavour = os.getenv("CATPPUCCIN_FLAVOUR")
|
|
||||||
vim.cmd [[colorscheme catppuccin]]
|
vim.cmd [[colorscheme catppuccin]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
users.adrielus = {
|
users.adrielus = {
|
||||||
passwordFile = "~/water/pass";
|
passwordFile = "~/water/pass";
|
||||||
extraGroups = [ "wheel" "networkmanager" "lp" "docker" ];
|
extraGroups = [ "wheel" "networkmanager" "lp" "docker" "audio" "sound" "video" "input" "tty" ];
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue