Dotfiles with the latest changes
This commit is contained in:
@@ -1,47 +1,54 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "de1a287c9cb525ae52bc846e8f6207e5ef1da5ac" },
|
||||
"ReplaceWithRegister": { "branch": "master", "commit": "832efc23111d19591d495dc72286de2fb0b09345" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
||||
"bufferline.nvim": { "branch": "main", "commit": "73540cb95f8d95aa1af3ed57713c6720c78af915" },
|
||||
"LuaSnip": { "branch": "master", "commit": "787dee55ca364cc9119787165418fe93b74c1842" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "bf3c8bb8c02ed3d9644cc5bbc48e2bdc39349cd7" },
|
||||
"auto-session": { "branch": "main", "commit": "3cd531ce4d46fb156268ddedf5f3e6822ef26af7" },
|
||||
"bufferline.nvim": { "branch": "main", "commit": "5cc447cb2b463cb499c82eaeabbed4f5fa6a0a44" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
||||
"dracula.nvim": { "branch": "main", "commit": "8d8bddb8814c3e7e62d80dda65a9876f97eb699c" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "dd2fd1281d4b22e7b4a5bfafa3e142d958e251f2" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "805610a9393fa231f2c2b49cb521bfa413fadb3d" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "c717ab88ff47830845a1e422a1d6495c764fac1d" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "9ae570e206360e47d30b4c35a4550c165f4ea7b7" },
|
||||
"mason-null-ls.nvim": { "branch": "main", "commit": "de19726de7260c68d94691afb057fa73d3cc53e7" },
|
||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "c1fbdcb0d8d1295314f1612c4a247253e70299d9" },
|
||||
"mason.nvim": { "branch": "main", "commit": "49ff59aded1047a773670651cfa40e76e63c6377" },
|
||||
"noice.nvim": { "branch": "main", "commit": "4a691f630c75966397f7a67c6860c03ae5da643f" },
|
||||
"none-ls-extras.nvim": { "branch": "main", "commit": "336e84b9e43c0effb735b08798ffac382920053b" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "37671797d6e5f9bd0ee3ab965ab2e6de251e1930" },
|
||||
"nui.nvim": { "branch": "main", "commit": "b1b3dcd6ed8f355c78bad3d395ff645be5f8b6ae" },
|
||||
"comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||
"conform.nvim": { "branch": "master", "commit": "278376b953bcab65e2ab9508b5575d1f9a2cbac1" },
|
||||
"csvview.nvim": { "branch": "main", "commit": "25d963b489b5b3c295bc2bb67861192368d0cb23" },
|
||||
"dracula.nvim": { "branch": "main", "commit": "94fa7885a06a67f0a8bfa03e064619d05d1ba496" },
|
||||
"easytables.nvim": { "branch": "master", "commit": "ae57fdaad25a5f9ac2773ebdb8782c7bbc7d8932" },
|
||||
"follow-md-links.nvim": { "branch": "main", "commit": "41a6d74636b4209571680d40f20f59a0bf30bf57" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "ee7634ab4f0a6606438fe13e16cbf2065589a5ed" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
|
||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||
"markdown-toc.nvim": { "branch": "main", "commit": "ce57af75962c93714f9d01880bf4e805f55485b9" },
|
||||
"markdown.nvim": { "branch": "main", "commit": "435b1ed56174d0f7334cc0fce9302084832453f6" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "7446f47b3dfb7df801f31a6f6783c2ad119a6935" },
|
||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
|
||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||
"neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
|
||||
"noice.nvim": { "branch": "main", "commit": "df448c649ef6bc5a6a633a44f2ad0ed8d4442499" },
|
||||
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
|
||||
"nvim-FeMaco.lua": { "branch": "main", "commit": "96bbf843595dbe865838b3f2484b73557f34700c" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "b0b79e42a28f09719a7da9534c3731fa37319d9b" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
|
||||
"nvim-bufdel": { "branch": "main", "commit": "523d58e94e7212fff3e05c247b962dc8f93bcfde" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" },
|
||||
"nvim-lint": { "branch": "master", "commit": "1f98d6c863f91706369d74aeb2eb3f02b2e96861" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "6d2ae9fdc3111a6e8fd5db2467aca11737195a30" },
|
||||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||
"nvim-surround": { "branch": "main", "commit": "79aaa42da1f698ed31bcbe7f83081f69dca7ba17" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "1eabe69bfa8f78e14fcf5d42a2b3881babaca30a" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5f9bf4b1ead7707e4e74e5319ee56bdc81fb73db" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
|
||||
"telescope-live-grep-args.nvim": { "branch": "master", "commit": "731a046da7dd3adff9de871a42f9b7fb85f60f47" },
|
||||
"telescope.nvim": { "branch": "0.1.x", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "5a9bd42dd8dd127779f3cd8982a0419b7ca9c7f5" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "29fb4854573355792df9e156cb779f0d31308796" },
|
||||
"nvim-lint": { "branch": "master", "commit": "16b21a7d04d06661f92f273a0744fd81fb19e09e" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "85afd4b936acd62b578c2e2d8e86541fb972c32e" },
|
||||
"nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "8760d76c1d316aa46f141f3f2b80b853a2acc41e" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "f6c5a58e3bbbedd2a31d04e5aa6f9997df20e3df" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "0d79d169fcd45a8da464727ac893044728f121d4" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
|
||||
"telescope-live-grep-args.nvim": { "branch": "master", "commit": "649b662a8f476fd2c0289570764459e95ebaa3f3" },
|
||||
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||
"template.nvim": { "branch": "main", "commit": "59955db23613985e031d340756d5c01aebd583a3" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" },
|
||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||
"vim-tmux-navigator": { "branch": "master", "commit": "a26954a585b02a2ac02f87145e204f8798a7cbc2" },
|
||||
"vimtex": { "branch": "master", "commit": "9665df7f51ee24aa81dbd81782e0a22480209753" },
|
||||
"vimwiki": { "branch": "dev", "commit": "69318e74c88ef7677e2496fd0a836446ceac61e8" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
|
||||
}
|
||||
"vim-tmux-navigator": { "branch": "master", "commit": "a9b52e7d36114d40350099f254b5f299a35df978" },
|
||||
"vimtex": { "branch": "master", "commit": "f59b2784e8e4a2cce741cc697b403428af4cf131" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
"Mofiqul/dracula.nvim",
|
||||
config = function()
|
||||
vim.cmd([[colorscheme dracula]])
|
||||
end,
|
||||
"Mofiqul/dracula.nvim",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd([[colorscheme dracula]])
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -3,30 +3,42 @@ local opt = vim.opt
|
||||
opt.relativenumber = true
|
||||
opt.number = true
|
||||
|
||||
-- tabs & indentation
|
||||
opt.tabstop = 2
|
||||
opt.shiftwidth = 2
|
||||
opt.expandtab = true
|
||||
opt.autoindent = true
|
||||
|
||||
-- disable line wrapping
|
||||
opt.wrap = false
|
||||
|
||||
-- search settings
|
||||
opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
|
||||
-- undo
|
||||
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
opt.undofile = true
|
||||
|
||||
-- search behaviour
|
||||
opt.hlsearch = false
|
||||
opt.incsearch = true
|
||||
|
||||
-- cursor always stays in the middle
|
||||
opt.scrolloff = 999
|
||||
|
||||
-- colorscheme
|
||||
opt.termguicolors = true
|
||||
opt.background = "dark"
|
||||
opt.signcolumn = "yes"
|
||||
|
||||
-- backspace
|
||||
opt.backspace = "indent,eol,start"
|
||||
|
||||
-- clipboard
|
||||
opt.clipboard:append("unnamedplus")
|
||||
|
||||
-- splitting windows
|
||||
opt.splitright = true
|
||||
opt.splitbelow = true
|
||||
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup({ { import = "jirr02.plugins" }, { import = "jirr02.core.colorscheme" }, { import = "jirr02.plugins.lsp"} })
|
||||
require("lazy").setup({
|
||||
{ import = "jirr02.plugins" },
|
||||
{ import = "jirr02.core.colorscheme" },
|
||||
{ import = "jirr02.plugins.lsp" },
|
||||
})
|
||||
|
||||
@@ -1,24 +1,25 @@
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
|
||||
-- Set menu
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
|
||||
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>NvimTreeToggle<CR>"),
|
||||
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>"),
|
||||
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
|
||||
dashboard.button("q", " > Quit NVIM", "<cmd>qa<CR>"),
|
||||
}
|
||||
-- Set menu
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
|
||||
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>NvimTreeToggle<CR>"),
|
||||
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>"),
|
||||
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
|
||||
dashboard.button("SPC sr", " > Resore Session", "<cmd>SessionRestore<CR>"),
|
||||
dashboard.button("q", " > Quit NVIM", "<cmd>qa<CR>"),
|
||||
}
|
||||
|
||||
-- Send config to alpha
|
||||
alpha.setup(dashboard.opts)
|
||||
-- Send config to alpha
|
||||
alpha.setup(dashboard.opts)
|
||||
|
||||
-- Disable folding on alpha buffer
|
||||
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
|
||||
end,
|
||||
-- Disable folding on alpha buffer
|
||||
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
|
||||
end,
|
||||
}
|
||||
|
||||
17
.config/nvim/lua/jirr02/plugins/auto-session.lua
Normal file
17
.config/nvim/lua/jirr02/plugins/auto-session.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
"rmagatti/auto-session",
|
||||
config = function()
|
||||
local auto_session = require("auto-session")
|
||||
local wk = require("which-key")
|
||||
|
||||
auto_session.setup({
|
||||
auto_restore_enabled = false,
|
||||
})
|
||||
|
||||
wk.add({
|
||||
{ "<leader>s", group = "session", icon = "" },
|
||||
{ "<leader>sr", "<cmd>SessionRestore<CR>", desc = "Restore session for cwd", icon = "" },
|
||||
{ "<leader>sr", "<cmd>SessionSave<CR>", desc = "Save Session", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,9 +1,18 @@
|
||||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
config = function()
|
||||
local autopairs = require("nvim-autopairs")
|
||||
"windwp/nvim-autopairs",
|
||||
event = { "InsertEnter" },
|
||||
dependencies = {
|
||||
"hrsh7th/nvim-cmp",
|
||||
},
|
||||
config = function()
|
||||
local autopairs = require("nvim-autopairs")
|
||||
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
||||
local cmp = require("cmp")
|
||||
|
||||
autopairs.setup()
|
||||
autopairs.setup({
|
||||
check_ts = true,
|
||||
})
|
||||
|
||||
end
|
||||
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -15,13 +15,11 @@ return {
|
||||
},
|
||||
})
|
||||
|
||||
wk.register({
|
||||
b = {
|
||||
name = "buffer",
|
||||
x = { "<cmd>BufDel<CR>", "Close Buffer" },
|
||||
n = { "<cmd>BufferLineCycleNext<CR>", "Go to next buffer" },
|
||||
p = { "<cmd>BufferLineCyclePrev<CR>", "Go to previous buffer" },
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
wk.add({
|
||||
{ "<leader>b", group = "buffer", icon = "" },
|
||||
{ "<leader>bx", "<cmd>BufDel<CR>", desc = "Close Buffer", icon = "" },
|
||||
{ "<leader>bn", "<cmd>BufferLineCycleNext<CR>", desc = "Go to next buffer", icon = "" },
|
||||
{ "<leader>bp", "<cmd>BufferLineCyclePrev<CR>", desc = "Go to previous buffer", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
return {
|
||||
"numToStr/comment.nvim",
|
||||
config = function()
|
||||
local comment = require("Comment")
|
||||
"numToStr/comment.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local comment = require("Comment")
|
||||
|
||||
comment.setup({})
|
||||
end,
|
||||
comment.setup({})
|
||||
end,
|
||||
}
|
||||
|
||||
11
.config/nvim/lua/jirr02/plugins/csvview.lua
Normal file
11
.config/nvim/lua/jirr02/plugins/csvview.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"hat0uma/csvview.nvim",
|
||||
config = function()
|
||||
require("csvview").setup({
|
||||
|
||||
view = {
|
||||
display_mode = "border",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
22
.config/nvim/lua/jirr02/plugins/easytables.lua
Normal file
22
.config/nvim/lua/jirr02/plugins/easytables.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
"Myzel394/easytables.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local easytables = require("easytables")
|
||||
local wk = require("which-key")
|
||||
|
||||
easytables.setup({})
|
||||
|
||||
wk.add({
|
||||
{ "<leader>m", group = "markdown", icon = "" },
|
||||
{
|
||||
"<leader>mt",
|
||||
function()
|
||||
vim.ui.input({ prompt = "width x height: " }, function(input)
|
||||
vim.cmd("EasyTablesCreateNew " .. input)
|
||||
end)
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,8 +1,15 @@
|
||||
return {
|
||||
"AckslD/nvim-FeMaco.lua",
|
||||
lazy = true,
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local femaco = require("femaco")
|
||||
local wk = require("which-key")
|
||||
|
||||
femaco.setup({})
|
||||
|
||||
wk.add({
|
||||
{"<leader>me", "<cmd>FeMaco<CR>", desc = "Edit code block in buffer", icon = ""},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
21
.config/nvim/lua/jirr02/plugins/formatting.lua
Normal file
21
.config/nvim/lua/jirr02/plugins/formatting.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local conform = require("conform")
|
||||
local wk = require("which-key")
|
||||
|
||||
conform.setup({
|
||||
formatters_by_ft = {
|
||||
markdown = { "prettier" },
|
||||
python = { "black" },
|
||||
lua = { "stylua" },
|
||||
},
|
||||
})
|
||||
|
||||
wk.add({
|
||||
{ "<leader>l" , group = "lsp", icon = ""},
|
||||
{"<leader>lf", function() conform.format({lsp_fallback = true, async = false, timeout_ms = 1000}) end, desc = "Format file", icon = ""},
|
||||
})
|
||||
end,
|
||||
}
|
||||
8
.config/nvim/lua/jirr02/plugins/indent-blankline.lua
Normal file
8
.config/nvim/lua/jirr02/plugins/indent-blankline.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
main = "ibl",
|
||||
opts = {
|
||||
indent = { char = "|" },
|
||||
},
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
return {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "tpope/vim-surround" },
|
||||
{ "vim-scripts/ReplaceWithRegister" },
|
||||
{ "mfussenegger/nvim-lint" },
|
||||
{ "christoomey/vim-tmux-navigator" },
|
||||
{ "tpope/vim-fugitive" },
|
||||
{ "jghauser/follow-md-links.nvim" },
|
||||
}
|
||||
|
||||
21
.config/nvim/lua/jirr02/plugins/linting.lua
Normal file
21
.config/nvim/lua/jirr02/plugins/linting.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
"mfussenegger/nvim-lint",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function ()
|
||||
local lint = require("lint")
|
||||
|
||||
lint.linters_by_ft = {
|
||||
python = { "pylint" },
|
||||
}
|
||||
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", {clear = true})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
group = lint_augroup,
|
||||
callback = function ()
|
||||
lint.try_lint()
|
||||
end,
|
||||
})
|
||||
|
||||
end,
|
||||
}
|
||||
@@ -1,15 +1,27 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"onsails/lspkind.nvim",
|
||||
{ "folke/neodev.nvim", opts = {} },
|
||||
},
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
local mason_lspconfig = require("mason-lspconfig")
|
||||
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
||||
local wk = require("which-key")
|
||||
|
||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
||||
|
||||
mason_lspconfig.setup_handlers({
|
||||
function(server_name)
|
||||
lspconfig[server_name].setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
lspconfig["lua_ls"].setup({
|
||||
capabilities = capabilities,
|
||||
settings = { -- custom settings for lua
|
||||
@@ -32,29 +44,24 @@ return {
|
||||
capabilities = capabilities,
|
||||
filetypes = { "python" },
|
||||
})
|
||||
lspconfig["clangd"].setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
lspconfig["marksman"].setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
lspconfig["texlab"].setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
wk.register({
|
||||
l = {
|
||||
name = "lsp",
|
||||
r = { "<cmd>Telescope lsp_references<CR>", "Show references" },
|
||||
D = { "<cmd>lua vim.lsp.buf.defenition()<CR>", "Show defenition" },
|
||||
c = { "<cmd>lua vim.lsp.buf.code_action()<CR>", "Code actions" },
|
||||
R = { "<cmd>lua vim.lsp.buf.rename()<CR>", "Smart rename" },
|
||||
d = { "<cmd>Telescope diagnostics bufnr=0<CR>", "Diagnostics" },
|
||||
l = { "<cmd>lua vim.lsp.buf.open_float()<CR>", "Line Diagnostics" },
|
||||
n = { "<cmd>lua vim.diagnostics.goto_next()<CR>", "Go to next Diagnostic" },
|
||||
p = { "<cmd>lua vim.diagnostics.goto_prev()<CR>", "Go to previous Diagnostic" },
|
||||
i = { "<cmd>lua vim.lsp.buf.hover()<CR>", "Show documentation" },
|
||||
L = { "<cmd>LspRestart<CR>", "Restart LSP" },
|
||||
|
||||
wk.add({
|
||||
{ "<leader>l", group = "lsp", icon = "" },
|
||||
{ "<leader>lr", "<cmd>Telescope lsp_references<CR>", desc = "Show references", icon = "" },
|
||||
{ "<leader>lD", "<cmd>lua vim.lsp.buf.defenition()<CR>", desc = "Show defenition", icon = "" },
|
||||
{ "<leader>lc", "<cmd>lua vim.lsp.buf.code_action()<CR>", desc = "Code actions", icon = "" },
|
||||
{ "<leader>lR", "<cmd>lua vim.lsp.buf.rename()<CR>", desc = "Smart rename", icon = "" },
|
||||
{ "<leader>ld", "<cmd>Telescope diagnostics bufnr=0<CR>", desc = "Diagnostics", icon = "" },
|
||||
{ "<leader>ll", "<cmd>lua vim.lsp.buf.open_float()<CR>", desc = "Line Diagnostics", icon = "" },
|
||||
{ "<leader>ln", "<cmd>lua vim.diagnostics.goto_next()<CR>", desc = "Go to next Diagnostic", icon = "" },
|
||||
{
|
||||
"<leader>lp",
|
||||
"<cmd>lua vim.diagnostics.goto_prev()<CR>",
|
||||
desc = "Go to previous Diagnostic",
|
||||
icon = "",
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
{ "<leader>li", "<cmd>lua vim.lsp.buf.hover()<CR>", desc = "Show documentation", icon = "" },
|
||||
{ "<leader>lL", "<cmd>LspRestart<CR>", desc = "Restart LSP", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@ return {
|
||||
"stylua",
|
||||
"prettier",
|
||||
"vale",
|
||||
"pylint",
|
||||
"latexindent",
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
return {
|
||||
"nvimtools/none-ls.nvim",
|
||||
dependencies = {
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
"nvimtools/none-ls-extras.nvim",
|
||||
},
|
||||
config = function()
|
||||
local mason_null_ls = require("mason-null-ls")
|
||||
local null_ls = require("null-ls")
|
||||
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||
local formatting = null_ls.builtins.formatting
|
||||
local diagnostics = null_ls.builtins.diagnostics
|
||||
|
||||
mason_null_ls.setup()
|
||||
|
||||
null_ls.setup({
|
||||
debug = true,
|
||||
sources = {
|
||||
formatting.stylua,
|
||||
formatting.black,
|
||||
formatting.clang_format,
|
||||
formatting.prettier,
|
||||
diagnostics.mypy.with({
|
||||
extra_args = function()
|
||||
local virtual = os.getenv("VIRTUAL_ENV") or os.getenv("CONDA_PREFIX") or "/usr"
|
||||
return { "--python-executable", virtual .. "/bin/python3" }
|
||||
end,
|
||||
}),
|
||||
-- diagnostics.ruff_lsp,
|
||||
diagnostics.vale,
|
||||
},
|
||||
on_attach = function(current_client, bufnr)
|
||||
if current_client.supports_method("textDocument/formatting") then
|
||||
vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr })
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
group = augroup,
|
||||
buffer = bufnr,
|
||||
callback = function()
|
||||
vim.lsp.buf.format({
|
||||
filter = function(client)
|
||||
-- only use null-ls for formatting instead of lsp server
|
||||
return client.name == "null-ls"
|
||||
end,
|
||||
bufnr = bufnr,
|
||||
})
|
||||
end,
|
||||
})
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local lualine = require("lualine")
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local lualine = require("lualine")
|
||||
|
||||
lualine.setup({
|
||||
options = {
|
||||
theme = 'dracula-nvim',
|
||||
},
|
||||
})
|
||||
end
|
||||
lualine.setup({
|
||||
options = {
|
||||
theme = "dracula-nvim",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
9
.config/nvim/lua/jirr02/plugins/markdown-preview.lua
Normal file
9
.config/nvim/lua/jirr02/plugins/markdown-preview.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
ft = { "markdown" },
|
||||
build = "cd app && yarn install",
|
||||
init = function()
|
||||
vim.g.mkdp_filetypes = { "markdown" }
|
||||
end,
|
||||
}
|
||||
18
.config/nvim/lua/jirr02/plugins/markdown-toc.lua
Normal file
18
.config/nvim/lua/jirr02/plugins/markdown-toc.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"hedyhli/markdown-toc.nvim",
|
||||
ft = "markdown",
|
||||
opts = {
|
||||
fences = {
|
||||
enabled = true,
|
||||
start_text = "toc-start",
|
||||
end_text = "toc-end",
|
||||
},
|
||||
|
||||
auto_update = true,
|
||||
|
||||
toc_list = {
|
||||
markers = "1.",
|
||||
cycle_markers = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
21
.config/nvim/lua/jirr02/plugins/markdown.lua
Normal file
21
.config/nvim/lua/jirr02/plugins/markdown.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
"MeanderingProgrammer/markdown.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
config = function()
|
||||
local markdown = require("render-markdown")
|
||||
|
||||
markdown.setup({
|
||||
checkbox = {
|
||||
custom = {
|
||||
inprogress = { raw = '[>]', rendered = ' ', highlight = 'RenderedMarkdownInProgress'},
|
||||
onhold = { raw = '[=]', rendered = ' ', highlight = 'RenderedMarkdownOnhold'},
|
||||
cancelled = { raw = '[_]', rendered = ' ', highlight = 'RenderedMarkdownCancelled'},
|
||||
important = { raw = '[!]', rendered = '', highlight = 'RenderedMarkdownImportant'},
|
||||
recurring = { raw = '[+]', rendered = ' ', highlight = 'RenderedMarkdownRecurring'},
|
||||
uncertain = { raw = '[?]', rendered = ' ', highlight = 'RenderedMarkdownUncertain'},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
return {
|
||||
"kylechui/nvim-surround",
|
||||
config = true,
|
||||
}
|
||||
@@ -40,12 +40,10 @@ return {
|
||||
ignore = false,
|
||||
},
|
||||
})
|
||||
wk.register({
|
||||
e = {
|
||||
name = "explorer",
|
||||
e = { "<cmd>NvimTreeToggle<CR>", "Toggle File Explorer" },
|
||||
r = { "<cmd>NvimTreeRefresh<CR>", "Refresh File Explorer" },
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
wk.add({
|
||||
{ "<leader>e", group = "explorer", icon = "" },
|
||||
{ "<leader>ee", "<cmd>NvimTreeToggle<CR>", desc = "Toggle File Explorer", icon = "" },
|
||||
{ "<leader>er", "<cmd>NvimTreeRefresh<CR>", desc = "Refresh File Explorer", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -12,15 +12,21 @@ return {
|
||||
local wk = require("which-key")
|
||||
|
||||
telescope.load_extension("fzf")
|
||||
telescope.load_extension("find_template")
|
||||
|
||||
wk.register({
|
||||
f = {
|
||||
name = "file",
|
||||
f = { "<cmd>Telescope find_files<CR>", "Find Files in Current Working Directory" },
|
||||
r = { "<cmd>Telescope oldfiles<CR>", "Recent Files" },
|
||||
s = { "<cmd>Telescope grep_string<CR>", "Find String in File" },
|
||||
g = { "<cmd>Telescope git_files<CR>", "Find git files" },
|
||||
wk.add({
|
||||
{ "<leader>f", group = "telescope", icon = "" },
|
||||
{
|
||||
"<leader>ff",
|
||||
"<cmd>Telescope find_files<CR>",
|
||||
desc = "Find Files in Current Working Directory",
|
||||
icon = "",
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
{ "<leader>fr", "<cmd>Telescope oldfiles<CR>", desc = "Recent Files", icon = "" },
|
||||
{ "<leader>fs", "<cmd>Telescope live_grep<CR>", desc = "Find String in CWD", icon = "" },
|
||||
{ "<leader>fc", "<cmd>Telescope grep_string<CR>", desc = "Find String in File", icon = "" },
|
||||
{ "<leader>fg", "<cmd>Telescope git_files<CR>", desc = "Find git files", icon = "" },
|
||||
{ "<leader>ft", "<cmd>TodoTelescope<CR>", desc = "Find todos", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
23
.config/nvim/lua/jirr02/plugins/templates.lua
Normal file
23
.config/nvim/lua/jirr02/plugins/templates.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
return {
|
||||
"nvimdev/template.nvim",
|
||||
cmd = { "Template", "TemProject" },
|
||||
config = function()
|
||||
local template = require("template")
|
||||
local wk = require("which-key")
|
||||
|
||||
template.setup({
|
||||
temp_dir = "~/.config/nvim/templates/",
|
||||
})
|
||||
|
||||
wk.add({
|
||||
{ "<leader>t", group = "template", icon = "" },
|
||||
{
|
||||
"<leader>ti",
|
||||
"<cmd>Telescope find_template type=insert filter_ft=false<CR>",
|
||||
desc = "Insert template",
|
||||
icon = "",
|
||||
},
|
||||
{ "<leader>tl", "<cmd>!theory<CR>", desc = "Insert latex notebook template", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
8
.config/nvim/lua/jirr02/plugins/todo-comments.lua
Normal file
8
.config/nvim/lua/jirr02/plugins/todo-comments.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"folke/todo-comments.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
opts = {}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ return {
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
"windwp/nvim-ts-autotag",
|
||||
},
|
||||
config = function()
|
||||
local treesitter = require("nvim-treesitter.configs")
|
||||
@@ -16,6 +17,9 @@ return {
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
ensure_installed = {
|
||||
"python",
|
||||
"cpp",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
return {
|
||||
"lervag/vimtex",
|
||||
config = function()
|
||||
lazy = false,
|
||||
init = function()
|
||||
local wk = require("which-key")
|
||||
|
||||
vim.g.tex_flavor = "latex"
|
||||
vim.g.vimtex_view_method = "zathura"
|
||||
vim.g.vimtex_quickfix_mode = 0
|
||||
vim.g.vimtex_compiler_latexmk = {
|
||||
@@ -11,13 +11,17 @@ return {
|
||||
"-pdf",
|
||||
},
|
||||
}
|
||||
vim.g.vimtex_fold_enabled = true
|
||||
vim.g.vimtex_format_enabled = true
|
||||
|
||||
wk.register({
|
||||
v = {
|
||||
name = "vimtex",
|
||||
c = { ":VimtexCompile", "Compile LaTex File" },
|
||||
v = { ":!zathura main.pdf &>/dev/null &", "Open compiled PDF in Zathura" },
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
wk.add({
|
||||
{ "<leader>v", group = "vimtex", icon = "" },
|
||||
{ "<leader>vc", "<cmd>VimtexCompile>CR>", desc = "Compile LaTex File", icon = "" },
|
||||
{ "<leader>vo", "<cmd>VimtexView<CR>", desc = "Open compiled PDF in Zathura", icon = "" },
|
||||
{ "<leader>vd", group = "delete", icon = "" },
|
||||
{ "<leader>vde", "<Plug>(vimtex-env-delete)", desc = "Delete surrounding environment" },
|
||||
{ "<leader>vc", group = "change", icon = "" },
|
||||
{ "<leader>vt", group = "toggle", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
return {
|
||||
"vimwiki/vimwiki",
|
||||
init = function()
|
||||
vim.g.vimwiki_list = {
|
||||
{ path = "/Users/jirayu/Projects/Private/vimwiki_code/", syntax = "markdown", ext = ".md" },
|
||||
{ path = "/Users/jirayu/Projects/Private/vimwiki_edu/", syntax = "markdown", ext = ".md" },
|
||||
}
|
||||
end,
|
||||
}
|
||||
@@ -8,38 +8,19 @@ return {
|
||||
config = function()
|
||||
local wk = require("which-key")
|
||||
|
||||
wk.register({
|
||||
n = {
|
||||
name = "vim",
|
||||
h = { "<cmd>nohl<CR>", "Close Search Highlights" },
|
||||
},
|
||||
s = {
|
||||
name = "splits",
|
||||
v = { "<C-w>v", "Split vertical" },
|
||||
s = { "<C-w>s", "Split horizontal" },
|
||||
e = { "<C-w>=", "Make Splits equal" },
|
||||
x = { "<cmd>close<CR>", "Close Split" },
|
||||
},
|
||||
m = {
|
||||
name = "menu",
|
||||
l = { "<cmd>Lazy<CR>", "Open Lazy Menu" },
|
||||
m = { "<cmd>Mason<CR>", "Open Mason Menu" },
|
||||
},
|
||||
g = {
|
||||
name = "git",
|
||||
t = { "<cmd>Gitsigns toggle_signs<CR>", "Toggle Gitsigns" },
|
||||
h = { "<cmd>Gitsigns toggle_linehl<CR>", "Toggle Line Highlights" },
|
||||
s = { "<cmd>Telescope git_status<CR>", "git status" },
|
||||
d = { "<cmd>Gvdiff<CR>", "Differences" },
|
||||
w = { "<cmd>Gwrite<CR>", "Add File" },
|
||||
N = { "<cmd>Gitsigns next_hunk<CR>", "Go to next hunk" },
|
||||
P = { "<cmd>Gitsigns prev_hunk<CR>", "Go to previous hunk" },
|
||||
c = { "<cmd>Git commit<CR>", "Commit" },
|
||||
H = { "<cmd>Gitsigns stage_hunk", "Stage hunk" },
|
||||
p = { "<cmd>Git push<CR>", "Push" },
|
||||
C = { "<cmd>Telescope git_commits<CR>", "View commits" },
|
||||
b = { "<cmd>Telescope git_branches<CR>", "View branches" },
|
||||
},
|
||||
}, { prefix = "<leader>" })
|
||||
wk.add({
|
||||
{ "<leader>n", group = "vim", icon = "" },
|
||||
{ "<leader>nh", "<cmd>nohl<CR>", desc = "Close Search Highlights", icon = "" },
|
||||
{ "<leader>no", "<cmd>foldopen<CR>", desc = "Open Fold", icon = "" },
|
||||
{ "<leader>nc", "<cmd>foldclose<CR>", desc = "Close Fold", icon = "" },
|
||||
{ "<leader>s", group = "splits", icon = "" },
|
||||
{ "<leader>sv", "<C-w>v", desc = "Split vertical", icon = "" },
|
||||
{ "<leader>sh", "<C-w>s", desc = "Split horizontal", icon = "" },
|
||||
{ "<leader>se", "<C-w>=", desc = "Make Splits equal", icon = "" },
|
||||
{ "<leader>sx", "<cmd>close<CR>", desc = "Close Split", icon = "" },
|
||||
{ "<leader>i", group = "interface", icon = "" },
|
||||
{ "<leader>il", "<cmd>Lazy<CR>", desc = "Open Lazy Menu" },
|
||||
{ "<leader>im", "<cmd>Mason<CR>", desc = "Open Mason Menu" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ local item = s(
|
||||
{ trig = "-it", desc = "Itemize & Enumerate Item" },
|
||||
fmt(
|
||||
[[
|
||||
\item {}
|
||||
\item{}
|
||||
]],
|
||||
{
|
||||
i(1, "Bulletpoint"),
|
||||
@@ -39,9 +39,7 @@ local tableenv = s(
|
||||
fmt(
|
||||
[[
|
||||
\begin{{tabular}}{{|{}}}
|
||||
\toprule
|
||||
{}
|
||||
\bottomrule
|
||||
\end{{tabular}}
|
||||
|
||||
{}
|
||||
@@ -51,7 +49,7 @@ local tableenv = s(
|
||||
local col = tonumber(snip.captures[2])
|
||||
local result = ""
|
||||
for j = 1, col do
|
||||
result = result .. "c|"
|
||||
result = result .. " c |"
|
||||
j = j + 1
|
||||
end
|
||||
return sn(nil, t(result))
|
||||
@@ -62,7 +60,16 @@ local tableenv = s(
|
||||
local node = {}
|
||||
local p = 1
|
||||
table.insert(node, i(p))
|
||||
for j = 1, row - 1 do
|
||||
for k = 1, col - 1 do
|
||||
p = p + 1
|
||||
table.insert(node, t(" & "))
|
||||
table.insert(node, i(p))
|
||||
k = k + 1
|
||||
end
|
||||
table.insert(node, t({ "\\\\", " \\hline", " " }))
|
||||
p = p + 1
|
||||
table.insert(node, i(p))
|
||||
for j = 1, row - 2 do
|
||||
for k = 1, col - 1 do
|
||||
p = p + 1
|
||||
table.insert(node, t(" & "))
|
||||
@@ -70,6 +77,8 @@ local tableenv = s(
|
||||
k = k + 1
|
||||
end
|
||||
table.insert(node, t({ "\\\\", " " }))
|
||||
p = p + 1
|
||||
table.insert(node, i(p))
|
||||
j = j + 1
|
||||
end
|
||||
for k = 1, col - 1 do
|
||||
@@ -141,6 +150,21 @@ table.insert(autosnippets, figcap)
|
||||
|
||||
-- Math --
|
||||
|
||||
local qed = s(
|
||||
{ trig = "qed", regTrig = true, desc = "qed" },
|
||||
fmt(
|
||||
[[
|
||||
\square
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, qed)
|
||||
|
||||
local matrix = s(
|
||||
{ trig = "(.)mat(%d) (%d)", regTrig = true, desc = "Matrix Environment" },
|
||||
fmt(
|
||||
@@ -188,6 +212,33 @@ local matrix = s(
|
||||
)
|
||||
table.insert(autosnippets, matrix)
|
||||
|
||||
local mp = s(
|
||||
{ trig = "mp", regTrig = true, desc = "modus ponens" },
|
||||
fmt(
|
||||
[[
|
||||
\begin{{tabular}}{{l}}
|
||||
{}\\
|
||||
{}\\
|
||||
\hline
|
||||
{}\\
|
||||
\end{{tabular}}
|
||||
|
||||
{}
|
||||
]],
|
||||
{
|
||||
i(1, "Lemmna 1"),
|
||||
i(2, "Lemmna 2"),
|
||||
i(3, "Conclusion"),
|
||||
i(4),
|
||||
}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, mp)
|
||||
|
||||
local mk = s(
|
||||
{ trig = "mk", desc = "Math" },
|
||||
fmt(
|
||||
@@ -207,7 +258,7 @@ local md = s(
|
||||
fmt(
|
||||
[[
|
||||
\[
|
||||
{}
|
||||
{}
|
||||
.\]
|
||||
|
||||
{}
|
||||
@@ -415,6 +466,42 @@ local bar = s(
|
||||
)
|
||||
table.insert(autosnippets, bar)
|
||||
|
||||
local dot = s(
|
||||
{ trig = "-dot", regTrig = true, desc = "dot" },
|
||||
fmt(
|
||||
[[
|
||||
\dot{{{}}}{}
|
||||
]],
|
||||
{
|
||||
i(1, "Dot Variable"),
|
||||
i(0),
|
||||
}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, dot)
|
||||
|
||||
local vector = s(
|
||||
{ trig = "-vec", regTrig = true, desc = "vector" },
|
||||
fmt(
|
||||
[[
|
||||
\vec{{{}}}{}
|
||||
]],
|
||||
{
|
||||
i(1, "Vector Variable"),
|
||||
i(0),
|
||||
}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, vector)
|
||||
|
||||
local tilde = s(
|
||||
{ trig = "(%w+)tilde", regTrig = true, desc = "tilde" },
|
||||
fmt(
|
||||
@@ -766,11 +853,11 @@ local inverse = s(
|
||||
table.insert(autosnippets, inverse)
|
||||
|
||||
local rightarrow = s(
|
||||
{ trig = "ra", desc = "Right Arrow" },
|
||||
{ trig = "-ra", desc = "Right Arrow" },
|
||||
fmt(
|
||||
[[
|
||||
\rightarrow
|
||||
]],
|
||||
\rightarrow
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
@@ -780,8 +867,23 @@ local rightarrow = s(
|
||||
)
|
||||
table.insert(autosnippets, rightarrow)
|
||||
|
||||
local Rightarrow = s(
|
||||
{ trig = "-Ra", desc = "Right Arrow" },
|
||||
fmt(
|
||||
[[
|
||||
\Rightarrow
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, Rightarrow)
|
||||
|
||||
local leftarrow = s(
|
||||
{ trig = "la", desc = "Left Arrow" },
|
||||
{ trig = "-la", desc = "Left Arrow" },
|
||||
fmt(
|
||||
[[
|
||||
\leftarrow
|
||||
@@ -795,6 +897,233 @@ local leftarrow = s(
|
||||
)
|
||||
table.insert(autosnippets, leftarrow)
|
||||
|
||||
local land = s(
|
||||
{ trig = "land", regTrig = true, desc = "Logic and" },
|
||||
fmt(
|
||||
[[
|
||||
\land
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, land)
|
||||
|
||||
local lor = s(
|
||||
{ trig = "lor", regTrig = true, desc = "Logic or" },
|
||||
fmt(
|
||||
[[
|
||||
\lor
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, lor)
|
||||
|
||||
local exists = s(
|
||||
{ trig = "exists", regTrig = true, desc = "Logic exists" },
|
||||
fmt(
|
||||
[[
|
||||
\exists
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, exists)
|
||||
|
||||
local forall = s(
|
||||
{ trig = "forall", regTrig = true, desc = "Logic for all" },
|
||||
fmt(
|
||||
[[
|
||||
\forall
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, forall)
|
||||
|
||||
local neg = s(
|
||||
{ trig = "neg", regTrig = true, desc = "Logic negative" },
|
||||
fmt(
|
||||
[[
|
||||
\neg
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, neg)
|
||||
|
||||
local xor = s(
|
||||
{ trig = "xor", regTrig = true, desc = "Logic xor" },
|
||||
fmt(
|
||||
[[
|
||||
\dot{{\lor}}
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, xor)
|
||||
|
||||
local sit = s(
|
||||
{ trig = "in", regTrig = true, desc = "Set in" },
|
||||
fmt(
|
||||
[[
|
||||
\in
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, sit)
|
||||
|
||||
local snin = s(
|
||||
{ trig = "nin", regTrig = true, desc = "Set no in" },
|
||||
fmt(
|
||||
[[
|
||||
\notin
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, snin)
|
||||
|
||||
local cup = s(
|
||||
{ trig = "cup", regTrig = true, desc = "Set union" },
|
||||
fmt(
|
||||
[[
|
||||
\cup
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, cup)
|
||||
|
||||
local cap = s(
|
||||
{ trig = "cap", regTrig = true, desc = "Set intersection" },
|
||||
fmt(
|
||||
[[
|
||||
\cap
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, cap)
|
||||
|
||||
local complement = s(
|
||||
{ trig = "comp", regTrig = true, desc = "Set complement" },
|
||||
fmt(
|
||||
[[
|
||||
^\complement
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, complement)
|
||||
|
||||
local minus = s(
|
||||
{ trig = "not", regTrig = true, desc = "Set minus" },
|
||||
fmt(
|
||||
[[
|
||||
\setminus
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, minus)
|
||||
|
||||
local times = s(
|
||||
{ trig = "times", regTrig = true, desc = "Set times" },
|
||||
fmt(
|
||||
[[
|
||||
\times
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, times)
|
||||
|
||||
local setinlucsion = s(
|
||||
{ trig = "setin", desc = "Set set in" },
|
||||
fmt(
|
||||
[[
|
||||
\subseteq
|
||||
]],
|
||||
{}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, setinlucsion)
|
||||
|
||||
local setbuilder = s(
|
||||
{ trig = "-set", regTrig = true, desc = "Set set builder" },
|
||||
fmt(
|
||||
[[
|
||||
\{{ {} \}}
|
||||
]],
|
||||
{
|
||||
i(1, "Set"),
|
||||
}
|
||||
),
|
||||
{
|
||||
condition = math,
|
||||
show_condition = math,
|
||||
}
|
||||
)
|
||||
table.insert(autosnippets, setbuilder)
|
||||
|
||||
-- Greek Letters --
|
||||
|
||||
local degree = s(
|
||||
@@ -1266,7 +1595,7 @@ local phi = s(
|
||||
{ trig = "phi", desc = "phi" },
|
||||
fmt(
|
||||
[[
|
||||
\phi
|
||||
\varphi
|
||||
]],
|
||||
{}
|
||||
),
|
||||
|
||||
38
.config/nvim/templates/latex/main_layout.latex
Normal file
38
.config/nvim/templates/latex/main_layout.latex
Normal file
@@ -0,0 +1,38 @@
|
||||
\documentclass[a4paper,11pt]{article}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[ngerman]{babel}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amsfonts}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage{paralist}
|
||||
\usepackage{geometry}
|
||||
\geometry{left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm}
|
||||
\setlength{\parindent}{0pt}
|
||||
|
||||
% TODO: Change Title Variable
|
||||
\def\papertitle{Title}
|
||||
|
||||
\bibliographystyle{unsrt}
|
||||
|
||||
\pagestyle{fancy}
|
||||
|
||||
\lhead{\papertitle}
|
||||
\rhead{Jirayu Ruh}
|
||||
|
||||
\lfoot{}
|
||||
\cfoot{\thepage}
|
||||
\rfoot{}
|
||||
|
||||
\setcounter{secnumdepth}{5}
|
||||
\setcounter{tocdepth}{5}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{\papertitel}
|
||||
|
||||
% TODO: Begin Paper here.
|
||||
|
||||
\end{document}
|
||||
59
.config/nvim/templates/latex/main_paper.latex
Normal file
59
.config/nvim/templates/latex/main_paper.latex
Normal file
@@ -0,0 +1,59 @@
|
||||
\documentclass[a4paper,11pt]{article}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[ngerman]{babel}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amsfonts}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage{paralist}
|
||||
\usepackage{geometry}
|
||||
\geometry{left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm}
|
||||
\usepackage[onehalfspacing]{setspace}
|
||||
|
||||
% TODO: Change Variables
|
||||
\def\paperauthor{Jirayu Ruh}
|
||||
\def\papertitle{Title}
|
||||
\def\paperthesis{Thesis}
|
||||
\def\paperdate{Due Date}
|
||||
% TODO: Change Word Count
|
||||
\def\paperwordcount{Word Count}
|
||||
|
||||
\pagestyle{fancy}
|
||||
|
||||
\lhead{}
|
||||
\rhead{\paperauthor}
|
||||
|
||||
\lfoot{}
|
||||
\cfoot{\thepage}
|
||||
\rfoot{}
|
||||
|
||||
\setcounter{secnumdepth}{5}
|
||||
\setcounter{tocdepth}{5}
|
||||
|
||||
\setlength{\parindent}{0pt}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{titlepage}
|
||||
\centering
|
||||
{\LARGE \textbf{\papertitle} \par}
|
||||
\vspace{2cm}
|
||||
% TODO: Change depending on language
|
||||
{\Large \textbf{These:} \par}
|
||||
% {\Large \textbf{Thesis:} \par}
|
||||
{\Large \textbf{\paperthesis} \par}
|
||||
\vspace{2cm}
|
||||
{\Large Jirayu Ruh\par}
|
||||
\vspace{0.5cm}
|
||||
{\Large \paperdate \par}
|
||||
\vspace{5cm}
|
||||
{\Large Word count: \paperwordcount}
|
||||
\end{titlepage}
|
||||
|
||||
\section{Title}
|
||||
|
||||
% TODO: Begin your paper here.
|
||||
|
||||
\end{document}
|
||||
178
.config/nvim/templates/latex/theory/letterfonts.latex
Normal file
178
.config/nvim/templates/latex/theory/letterfonts.latex
Normal file
@@ -0,0 +1,178 @@
|
||||
% Things Lie
|
||||
\newcommand{\kb}{\mathfrak b}
|
||||
\newcommand{\kg}{\mathfrak g}
|
||||
\newcommand{\kh}{\mathfrak h}
|
||||
\newcommand{\kn}{\mathfrak n}
|
||||
\newcommand{\ku}{\mathfrak u}
|
||||
\newcommand{\kz}{\mathfrak z}
|
||||
\DeclareMathOperator{\Ext}{Ext} % Ext functor
|
||||
\DeclareMathOperator{\Tor}{Tor} % Tor functor
|
||||
\newcommand{\gl}{\opname{\mathfrak{gl}}} % frak gl group
|
||||
\renewcommand{\sl}{\opname{\mathfrak{sl}}} % frak sl group chktex 6
|
||||
|
||||
% More script letters etc.
|
||||
\newcommand{\SA}{\mathcal A}
|
||||
\newcommand{\SB}{\mathcal B}
|
||||
\newcommand{\SC}{\mathcal C}
|
||||
\newcommand{\SF}{\mathcal F}
|
||||
\newcommand{\SG}{\mathcal G}
|
||||
\newcommand{\SH}{\mathcal H}
|
||||
\newcommand{\OO}{\mathcal O}
|
||||
|
||||
\newcommand{\SCA}{\mathscr A}
|
||||
\newcommand{\SCB}{\mathscr B}
|
||||
\newcommand{\SCC}{\mathscr C}
|
||||
\newcommand{\SCD}{\mathscr D}
|
||||
\newcommand{\SCE}{\mathscr E}
|
||||
\newcommand{\SCF}{\mathscr F}
|
||||
\newcommand{\SCG}{\mathscr G}
|
||||
\newcommand{\SCH}{\mathscr H}
|
||||
|
||||
% Mathfrak primes
|
||||
\newcommand{\km}{\mathfrak m}
|
||||
\newcommand{\kp}{\mathfrak p}
|
||||
\newcommand{\kq}{\mathfrak q}
|
||||
|
||||
% number sets
|
||||
\newcommand{\RR}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{R}}{\mathbb{R}^{#1}}}}
|
||||
\newcommand{\NN}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{N}}{\mathbb{N}^{#1}}}}
|
||||
\newcommand{\ZZ}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Z}}{\mathbb{Z}^{#1}}}}
|
||||
\newcommand{\QQ}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Q}}{\mathbb{Q}^{#1}}}}
|
||||
\newcommand{\CC}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{C}}{\mathbb{C}^{#1}}}}
|
||||
\newcommand{\PP}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{P}}{\mathbb{P}^{#1}}}}
|
||||
\newcommand{\HH}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{H}}{\mathbb{H}^{#1}}}}
|
||||
\newcommand{\FF}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{F}}{\mathbb{F}^{#1}}}}
|
||||
% expected value
|
||||
\newcommand{\EE}{\ensuremath{\mathbb{E}}}
|
||||
\newcommand{\charin}{\text{ char }}
|
||||
\DeclareMathOperator{\sign}{sign}
|
||||
\DeclareMathOperator{\Aut}{Aut}
|
||||
\DeclareMathOperator{\Inn}{Inn}
|
||||
\DeclareMathOperator{\Syl}{Syl}
|
||||
\DeclareMathOperator{\Gal}{Gal}
|
||||
\DeclareMathOperator{\GL}{GL} % General linear group
|
||||
\DeclareMathOperator{\SL}{SL} % Special linear group
|
||||
|
||||
%---------------------------------------
|
||||
% BlackBoard Math Fonts :-
|
||||
%---------------------------------------
|
||||
|
||||
%Captital Letters
|
||||
\newcommand{\bbA}{\mathbb{A}} \newcommand{\bbB}{\mathbb{B}}
|
||||
\newcommand{\bbC}{\mathbb{C}} \newcommand{\bbD}{\mathbb{D}}
|
||||
\newcommand{\bbE}{\mathbb{E}} \newcommand{\bbF}{\mathbb{F}}
|
||||
\newcommand{\bbG}{\mathbb{G}} \newcommand{\bbH}{\mathbb{H}}
|
||||
\newcommand{\bbI}{\mathbb{I}} \newcommand{\bbJ}{\mathbb{J}}
|
||||
\newcommand{\bbK}{\mathbb{K}} \newcommand{\bbL}{\mathbb{L}}
|
||||
\newcommand{\bbM}{\mathbb{M}} \newcommand{\bbN}{\mathbb{N}}
|
||||
\newcommand{\bbO}{\mathbb{O}} \newcommand{\bbP}{\mathbb{P}}
|
||||
\newcommand{\bbQ}{\mathbb{Q}} \newcommand{\bbR}{\mathbb{R}}
|
||||
\newcommand{\bbS}{\mathbb{S}} \newcommand{\bbT}{\mathbb{T}}
|
||||
\newcommand{\bbU}{\mathbb{U}} \newcommand{\bbV}{\mathbb{V}}
|
||||
\newcommand{\bbW}{\mathbb{W}} \newcommand{\bbX}{\mathbb{X}}
|
||||
\newcommand{\bbY}{\mathbb{Y}} \newcommand{\bbZ}{\mathbb{Z}}
|
||||
|
||||
%---------------------------------------
|
||||
% MathCal Fonts :-
|
||||
%---------------------------------------
|
||||
|
||||
%Captital Letters
|
||||
\newcommand{\mcA}{\mathcal{A}} \newcommand{\mcB}{\mathcal{B}}
|
||||
\newcommand{\mcC}{\mathcal{C}} \newcommand{\mcD}{\mathcal{D}}
|
||||
\newcommand{\mcE}{\mathcal{E}} \newcommand{\mcF}{\mathcal{F}}
|
||||
\newcommand{\mcG}{\mathcal{G}} \newcommand{\mcH}{\mathcal{H}}
|
||||
\newcommand{\mcI}{\mathcal{I}} \newcommand{\mcJ}{\mathcal{J}}
|
||||
\newcommand{\mcK}{\mathcal{K}} \newcommand{\mcL}{\mathcal{L}}
|
||||
\newcommand{\mcM}{\mathcal{M}} \newcommand{\mcN}{\mathcal{N}}
|
||||
\newcommand{\mcO}{\mathcal{O}} \newcommand{\mcP}{\mathcal{P}}
|
||||
\newcommand{\mcQ}{\mathcal{Q}} \newcommand{\mcR}{\mathcal{R}}
|
||||
\newcommand{\mcS}{\mathcal{S}} \newcommand{\mcT}{\mathcal{T}}
|
||||
\newcommand{\mcU}{\mathcal{U}} \newcommand{\mcV}{\mathcal{V}}
|
||||
\newcommand{\mcW}{\mathcal{W}} \newcommand{\mcX}{\mathcal{X}}
|
||||
\newcommand{\mcY}{\mathcal{Y}} \newcommand{\mcZ}{\mathcal{Z}}
|
||||
|
||||
|
||||
%---------------------------------------
|
||||
% Bold Math Fonts :-
|
||||
%---------------------------------------
|
||||
|
||||
%Captital Letters
|
||||
\newcommand{\bmA}{\boldsymbol{A}} \newcommand{\bmB}{\boldsymbol{B}}
|
||||
\newcommand{\bmC}{\boldsymbol{C}} \newcommand{\bmD}{\boldsymbol{D}}
|
||||
\newcommand{\bmE}{\boldsymbol{E}} \newcommand{\bmF}{\boldsymbol{F}}
|
||||
\newcommand{\bmG}{\boldsymbol{G}} \newcommand{\bmH}{\boldsymbol{H}}
|
||||
\newcommand{\bmI}{\boldsymbol{I}} \newcommand{\bmJ}{\boldsymbol{J}}
|
||||
\newcommand{\bmK}{\boldsymbol{K}} \newcommand{\bmL}{\boldsymbol{L}}
|
||||
\newcommand{\bmM}{\boldsymbol{M}} \newcommand{\bmN}{\boldsymbol{N}}
|
||||
\newcommand{\bmO}{\boldsymbol{O}} \newcommand{\bmP}{\boldsymbol{P}}
|
||||
\newcommand{\bmQ}{\boldsymbol{Q}} \newcommand{\bmR}{\boldsymbol{R}}
|
||||
\newcommand{\bmS}{\boldsymbol{S}} \newcommand{\bmT}{\boldsymbol{T}}
|
||||
\newcommand{\bmU}{\boldsymbol{U}} \newcommand{\bmV}{\boldsymbol{V}}
|
||||
\newcommand{\bmW}{\boldsymbol{W}} \newcommand{\bmX}{\boldsymbol{X}}
|
||||
\newcommand{\bmY}{\boldsymbol{Y}} \newcommand{\bmZ}{\boldsymbol{Z}}
|
||||
%Small Letters
|
||||
\newcommand{\bma}{\boldsymbol{a}} \newcommand{\bmb}{\boldsymbol{b}}
|
||||
\newcommand{\bmc}{\boldsymbol{c}} \newcommand{\bmd}{\boldsymbol{d}}
|
||||
\newcommand{\bme}{\boldsymbol{e}} \newcommand{\bmf}{\boldsymbol{f}}
|
||||
\newcommand{\bmg}{\boldsymbol{g}} \newcommand{\bmh}{\boldsymbol{h}}
|
||||
\newcommand{\bmi}{\boldsymbol{i}} \newcommand{\bmj}{\boldsymbol{j}}
|
||||
\newcommand{\bmk}{\boldsymbol{k}} \newcommand{\bml}{\boldsymbol{l}}
|
||||
\newcommand{\bmm}{\boldsymbol{m}} \newcommand{\bmn}{\boldsymbol{n}}
|
||||
\newcommand{\bmo}{\boldsymbol{o}} \newcommand{\bmp}{\boldsymbol{p}}
|
||||
\newcommand{\bmq}{\boldsymbol{q}} \newcommand{\bmr}{\boldsymbol{r}}
|
||||
\newcommand{\bms}{\boldsymbol{s}} \newcommand{\bmt}{\boldsymbol{t}}
|
||||
\newcommand{\bmu}{\boldsymbol{u}} \newcommand{\bmv}{\boldsymbol{v}}
|
||||
\newcommand{\bmw}{\boldsymbol{w}} \newcommand{\bmx}{\boldsymbol{x}}
|
||||
\newcommand{\bmy}{\boldsymbol{y}} \newcommand{\bmz}{\boldsymbol{z}}
|
||||
|
||||
%---------------------------------------
|
||||
% Scr Math Fonts :-
|
||||
%---------------------------------------
|
||||
|
||||
\newcommand{\sA}{{\mathscr{A}}} \newcommand{\sB}{{\mathscr{B}}}
|
||||
\newcommand{\sC}{{\mathscr{C}}} \newcommand{\sD}{{\mathscr{D}}}
|
||||
\newcommand{\sE}{{\mathscr{E}}} \newcommand{\sF}{{\mathscr{F}}}
|
||||
\newcommand{\sG}{{\mathscr{G}}} \newcommand{\sH}{{\mathscr{H}}}
|
||||
\newcommand{\sI}{{\mathscr{I}}} \newcommand{\sJ}{{\mathscr{J}}}
|
||||
\newcommand{\sK}{{\mathscr{K}}} \newcommand{\sL}{{\mathscr{L}}}
|
||||
\newcommand{\sM}{{\mathscr{M}}} \newcommand{\sN}{{\mathscr{N}}}
|
||||
\newcommand{\sO}{{\mathscr{O}}} \newcommand{\sP}{{\mathscr{P}}}
|
||||
\newcommand{\sQ}{{\mathscr{Q}}} \newcommand{\sR}{{\mathscr{R}}}
|
||||
\newcommand{\sS}{{\mathscr{S}}} \newcommand{\sT}{{\mathscr{T}}}
|
||||
\newcommand{\sU}{{\mathscr{U}}} \newcommand{\sV}{{\mathscr{V}}}
|
||||
\newcommand{\sW}{{\mathscr{W}}} \newcommand{\sX}{{\mathscr{X}}}
|
||||
\newcommand{\sY}{{\mathscr{Y}}} \newcommand{\sZ}{{\mathscr{Z}}}
|
||||
|
||||
|
||||
%---------------------------------------
|
||||
% Math Fraktur Font
|
||||
%---------------------------------------
|
||||
|
||||
%Captital Letters
|
||||
\newcommand{\mfA}{\mathfrak{A}} \newcommand{\mfB}{\mathfrak{B}}
|
||||
\newcommand{\mfC}{\mathfrak{C}} \newcommand{\mfD}{\mathfrak{D}}
|
||||
\newcommand{\mfE}{\mathfrak{E}} \newcommand{\mfF}{\mathfrak{F}}
|
||||
\newcommand{\mfG}{\mathfrak{G}} \newcommand{\mfH}{\mathfrak{H}}
|
||||
\newcommand{\mfI}{\mathfrak{I}} \newcommand{\mfJ}{\mathfrak{J}}
|
||||
\newcommand{\mfK}{\mathfrak{K}} \newcommand{\mfL}{\mathfrak{L}}
|
||||
\newcommand{\mfM}{\mathfrak{M}} \newcommand{\mfN}{\mathfrak{N}}
|
||||
\newcommand{\mfO}{\mathfrak{O}} \newcommand{\mfP}{\mathfrak{P}}
|
||||
\newcommand{\mfQ}{\mathfrak{Q}} \newcommand{\mfR}{\mathfrak{R}}
|
||||
\newcommand{\mfS}{\mathfrak{S}} \newcommand{\mfT}{\mathfrak{T}}
|
||||
\newcommand{\mfU}{\mathfrak{U}} \newcommand{\mfV}{\mathfrak{V}}
|
||||
\newcommand{\mfW}{\mathfrak{W}} \newcommand{\mfX}{\mathfrak{X}}
|
||||
\newcommand{\mfY}{\mathfrak{Y}} \newcommand{\mfZ}{\mathfrak{Z}}
|
||||
%Small Letters
|
||||
\newcommand{\mfa}{\mathfrak{a}} \newcommand{\mfb}{\mathfrak{b}}
|
||||
\newcommand{\mfc}{\mathfrak{c}} \newcommand{\mfd}{\mathfrak{d}}
|
||||
\newcommand{\mfe}{\mathfrak{e}} \newcommand{\mff}{\mathfrak{f}}
|
||||
\newcommand{\mfg}{\mathfrak{g}} \newcommand{\mfh}{\mathfrak{h}}
|
||||
\newcommand{\mfi}{\mathfrak{i}} \newcommand{\mfj}{\mathfrak{j}}
|
||||
\newcommand{\mfk}{\mathfrak{k}} \newcommand{\mfl}{\mathfrak{l}}
|
||||
\newcommand{\mfm}{\mathfrak{m}} \newcommand{\mfn}{\mathfrak{n}}
|
||||
\newcommand{\mfo}{\mathfrak{o}} \newcommand{\mfp}{\mathfrak{p}}
|
||||
\newcommand{\mfq}{\mathfrak{q}} \newcommand{\mfr}{\mathfrak{r}}
|
||||
\newcommand{\mfs}{\mathfrak{s}} \newcommand{\mft}{\mathfrak{t}}
|
||||
\newcommand{\mfu}{\mathfrak{u}} \newcommand{\mfv}{\mathfrak{v}}
|
||||
\newcommand{\mfw}{\mathfrak{w}} \newcommand{\mfx}{\mathfrak{x}}
|
||||
\newcommand{\mfy}{\mathfrak{y}} \newcommand{\mfz}{\mathfrak{z}}
|
||||
88
.config/nvim/templates/latex/theory/macros.latex
Normal file
88
.config/nvim/templates/latex/theory/macros.latex
Normal file
@@ -0,0 +1,88 @@
|
||||
%From M275 "Topology" at SJSU
|
||||
\newcommand{\id}{\mathrm{id}}
|
||||
\newcommand{\taking}[1]{\xrightarrow{#1}}
|
||||
\newcommand{\inv}{^{-1}}
|
||||
|
||||
%From M170 "Introduction to Graph Theory" at SJSU
|
||||
\DeclareMathOperator{\diam}{diam}
|
||||
\DeclareMathOperator{\ord}{ord}
|
||||
\newcommand{\defeq}{\overset{\mathrm{def}}{=}}
|
||||
|
||||
%From the USAMO .tex files
|
||||
\newcommand{\ts}{\textsuperscript}
|
||||
\newcommand{\dg}{^\circ}
|
||||
\newcommand{\ii}{\item}
|
||||
|
||||
% % From Math 55 and Math 145 at Harvard
|
||||
% \newenvironment{subproof}[1][Proof]{%
|
||||
% \begin{proof}[#1] \renewcommand{\qedsymbol}{$\blacksquare$}}%
|
||||
% {\end{proof}}
|
||||
|
||||
\newcommand{\liff}{\leftrightarrow}
|
||||
\newcommand{\lthen}{\rightarrow}
|
||||
\newcommand{\opname}{\operatorname}
|
||||
\newcommand{\surjto}{\twoheadrightarrow}
|
||||
\newcommand{\injto}{\hookrightarrow}
|
||||
\newcommand{\On}{\mathrm{On}} % ordinals
|
||||
\DeclareMathOperator{\img}{im} % Image
|
||||
\DeclareMathOperator{\Img}{Im} % Image
|
||||
\DeclareMathOperator{\coker}{coker} % Cokernel
|
||||
\DeclareMathOperator{\Coker}{Coker} % Cokernel
|
||||
\DeclareMathOperator{\Ker}{Ker} % Kernel
|
||||
\DeclareMathOperator{\rank}{rank}
|
||||
\DeclareMathOperator{\Spec}{Spec} % spectrum
|
||||
\DeclareMathOperator{\Tr}{Tr} % trace
|
||||
\DeclareMathOperator{\pr}{pr} % projection
|
||||
\DeclareMathOperator{\ext}{ext} % extension
|
||||
\DeclareMathOperator{\pred}{pred} % predecessor
|
||||
\DeclareMathOperator{\dom}{dom} % domain
|
||||
\DeclareMathOperator{\ran}{ran} % range
|
||||
\DeclareMathOperator{\Hom}{Hom} % homomorphism
|
||||
\DeclareMathOperator{\Mor}{Mor} % morphisms
|
||||
\DeclareMathOperator{\End}{End} % endomorphism
|
||||
|
||||
\newcommand{\eps}{\epsilon}
|
||||
\newcommand{\veps}{\varepsilon}
|
||||
\newcommand{\ol}{\overline}
|
||||
\newcommand{\ul}{\underline}
|
||||
\newcommand{\wt}{\widetilde}
|
||||
\newcommand{\wh}{\widehat}
|
||||
\newcommand{\vocab}[1]{\textbf{\color{blue} #1}}
|
||||
\providecommand{\half}{\frac{1}{2}}
|
||||
\newcommand{\dang}{\measuredangle} %% Directed angle
|
||||
\newcommand{\ray}[1]{\overrightarrow{#1}}
|
||||
\newcommand{\seg}[1]{\overline{#1}}
|
||||
\newcommand{\arc}[1]{\wideparen{#1}}
|
||||
\DeclareMathOperator{\cis}{cis}
|
||||
\DeclareMathOperator*{\lcm}{lcm}
|
||||
\DeclareMathOperator*{\argmin}{arg min}
|
||||
\DeclareMathOperator*{\argmax}{arg max}
|
||||
\newcommand{\cycsum}{\sum_{\mathrm{cyc}}}
|
||||
\newcommand{\symsum}{\sum_{\mathrm{sym}}}
|
||||
\newcommand{\cycprod}{\prod_{\mathrm{cyc}}}
|
||||
\newcommand{\symprod}{\prod_{\mathrm{sym}}}
|
||||
\newcommand{\Qed}{\begin{flushright}\qed\end{flushright}}
|
||||
\newcommand{\parinn}{\setlength{\parindent}{1cm}}
|
||||
\newcommand{\parinf}{\setlength{\parindent}{0cm}}
|
||||
% \newcommand{\norm}{\|\cdot\|}
|
||||
\newcommand{\inorm}{\norm_{\infty}}
|
||||
\newcommand{\opensets}{\{V_{\alpha}\}_{\alpha\in I}}
|
||||
\newcommand{\oset}{V_{\alpha}}
|
||||
\newcommand{\opset}[1]{V_{\alpha_{#1}}}
|
||||
\newcommand{\lub}{\text{lub}}
|
||||
\newcommand{\del}[2]{\frac{\partial #1}{\partial #2}}
|
||||
\newcommand{\Del}[3]{\frac{\partial^{#1} #2}{\partial^{#1} #3}}
|
||||
\newcommand{\deld}[2]{\dfrac{\partial #1}{\partial #2}}
|
||||
\newcommand{\Deld}[3]{\dfrac{\partial^{#1} #2}{\partial^{#1} #3}}
|
||||
\newcommand{\lm}{\lambda}
|
||||
\newcommand{\uin}{\mathbin{\rotatebox[origin=c]{90}{$\in$}}}
|
||||
\newcommand{\usubset}{\mathbin{\rotatebox[origin=c]{90}{$\subset$}}}
|
||||
\newcommand{\lt}{\left}
|
||||
\newcommand{\rt}{\right}
|
||||
\newcommand{\bs}[1]{\boldsymbol{#1}}
|
||||
\newcommand{\exs}{\exists}
|
||||
\newcommand{\st}{\strut}
|
||||
\newcommand{\dps}[1]{\displaystyle{#1}}
|
||||
|
||||
\newcommand{\sol}{\setlength{\parindent}{0cm}\textbf{\textit{Solution:}}\setlength{\parindent}{1cm} }
|
||||
\newcommand{\solve}[1]{\setlength{\parindent}{0cm}\textbf{\textit{Solution: }}\setlength{\parindent}{1cm}#1 \Qed}
|
||||
43
.config/nvim/templates/latex/theory/main.latex
Normal file
43
.config/nvim/templates/latex/theory/main.latex
Normal file
@@ -0,0 +1,43 @@
|
||||
\documentclass{report}
|
||||
|
||||
% TODO: Change Variables
|
||||
\def\papertitle{Title}
|
||||
|
||||
% TODO: Change variables according to language preference
|
||||
\def\theorytitle{Theory}
|
||||
\def\theorytitle{Theorie}
|
||||
\def\corollarytitle{Corollary}
|
||||
\def\corollarytitle{Daraus folgt}
|
||||
\def\proposaltitle{Proposal}
|
||||
\def\proposaltitle{Vorschlag}
|
||||
\def\claimtitle{Claim}
|
||||
\def\claimtitle{Behauptung}
|
||||
\def\exercisetitle{Exercise}
|
||||
\def\exercisetitle{Aufgabe}
|
||||
\def\exampletitle{Example}
|
||||
\def\exampletitle{Beispiel}
|
||||
\def\questiontitle{Question}
|
||||
\def\questiontitle{Frage}
|
||||
\def\wrongctitle{Wrong Concept}
|
||||
\def\wrongctitle{Falscher Konzept}
|
||||
|
||||
\input{preamble}
|
||||
\input{macros}
|
||||
\input{letterfonts}
|
||||
|
||||
\title{\huge{\papertitle}}
|
||||
\author{\huge{Jirayu Ruh}}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
\newpage% or \cleardoublepage
|
||||
% \pdfbookmark[<level>]{<title>}{<dest>}
|
||||
\pdfbookmark[section]{\contentsname}{toc}
|
||||
\tableofcontents
|
||||
\pagebreak
|
||||
|
||||
% TODO: Begin Paper here.
|
||||
|
||||
\end{document}
|
||||
777
.config/nvim/templates/latex/theory/preamble.latex
Normal file
777
.config/nvim/templates/latex/theory/preamble.latex
Normal file
@@ -0,0 +1,777 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% PACKAGE IMPORTS
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
% \usepackage[ngerman]{babel}
|
||||
\usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry}
|
||||
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
||||
\usepackage[varbb]{newpxmath}
|
||||
\usepackage{xfrac}
|
||||
\usepackage[makeroom]{cancel}
|
||||
\usepackage{mathtools}
|
||||
\usepackage{bookmark}
|
||||
\usepackage{enumitem}
|
||||
\usepackage{hyperref,theoremref}
|
||||
\hypersetup{
|
||||
pdftitle={Assignment},
|
||||
colorlinks=true, linkcolor=doc!90,
|
||||
bookmarksnumbered=true,
|
||||
bookmarksopen=true
|
||||
}
|
||||
\usepackage[most,many,breakable]{tcolorbox}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{varwidth}
|
||||
\usepackage{varwidth}
|
||||
\usepackage{etoolbox}
|
||||
%\usepackage{authblk}
|
||||
\usepackage{nameref}
|
||||
\usepackage{multicol,array}
|
||||
\usepackage{tikz-cd}
|
||||
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
|
||||
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
|
||||
\usepackage{import}
|
||||
\usepackage{xifthen}
|
||||
\usepackage{pdfpages}
|
||||
\usepackage{transparent}
|
||||
|
||||
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
|
||||
\SetCommentSty{mycommfont}
|
||||
\newcommand{\incfig}[1]{%
|
||||
\def\svgwidth{\columnwidth}
|
||||
\import{./figures/}{#1.pdf_tex}
|
||||
}
|
||||
|
||||
\usepackage{tikzsymbols}
|
||||
\renewcommand\qedsymbol{$\Laughey$}
|
||||
|
||||
|
||||
%\usepackage{import}
|
||||
%\usepackage{xifthen}
|
||||
%\usepackage{pdfpages}
|
||||
%\usepackage{transparent}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% SELF MADE COLORS
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
|
||||
\definecolor{myg}{RGB}{56, 140, 70}
|
||||
\definecolor{myb}{RGB}{45, 111, 177}
|
||||
\definecolor{myr}{RGB}{199, 68, 64}
|
||||
\definecolor{mytheorembg}{HTML}{F2F2F9}
|
||||
\definecolor{mytheoremfr}{HTML}{00007B}
|
||||
\definecolor{mylenmabg}{HTML}{FFFAF8}
|
||||
\definecolor{mylenmafr}{HTML}{983b0f}
|
||||
\definecolor{mypropbg}{HTML}{f2fbfc}
|
||||
\definecolor{mypropfr}{HTML}{191971}
|
||||
\definecolor{myexamplebg}{HTML}{F2FBF8}
|
||||
\definecolor{myexamplefr}{HTML}{88D6D1}
|
||||
\definecolor{myexampleti}{HTML}{2A7F7F}
|
||||
\definecolor{mydefinitbg}{HTML}{E5E5FF}
|
||||
\definecolor{mydefinitfr}{HTML}{3F3FA3}
|
||||
\definecolor{notesgreen}{RGB}{0,162,0}
|
||||
\definecolor{myp}{RGB}{197, 92, 212}
|
||||
\definecolor{mygr}{HTML}{2C3338}
|
||||
\definecolor{myred}{RGB}{127,0,0}
|
||||
\definecolor{myyellow}{RGB}{169,121,69}
|
||||
\definecolor{myexercisebg}{HTML}{F2FBF8}
|
||||
\definecolor{myexercisefg}{HTML}{88D6D1}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% TCOLORBOX SETUPS
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\setlength{\parindent}{1cm}
|
||||
%================================
|
||||
% THEOREM BOX
|
||||
%================================
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=section]{Theorem}{\theorytitle}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = mytheorembg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{mytheoremfr},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = mytheoremfr,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, mytheoremfr},
|
||||
}
|
||||
{th}
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=chapter]{theorem}{\theorytitle}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = mytheorembg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{mytheoremfr},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = mytheoremfr,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, mytheoremfr},
|
||||
}
|
||||
{th}
|
||||
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcolorbox{Theoremcon}
|
||||
{%
|
||||
enhanced
|
||||
,breakable
|
||||
,colback = mytheorembg
|
||||
,frame hidden
|
||||
,boxrule = 0sp
|
||||
,borderline west = {2pt}{0pt}{mytheoremfr}
|
||||
,sharp corners
|
||||
,description font = \mdseries
|
||||
,separator sign none
|
||||
}
|
||||
|
||||
%================================
|
||||
% Corollery
|
||||
%================================
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=section]{Corollary}{\corollarytitle}
|
||||
{%
|
||||
enhanced
|
||||
,breakable
|
||||
,colback = myp!10
|
||||
,frame hidden
|
||||
,boxrule = 0sp
|
||||
,borderline west = {2pt}{0pt}{myp!85!black}
|
||||
,sharp corners
|
||||
,detach title
|
||||
,before upper = \tcbtitle\par\smallskip
|
||||
,coltitle = myp!85!black
|
||||
,fonttitle = \bfseries\sffamily
|
||||
,description font = \mdseries
|
||||
,separator sign none
|
||||
,segmentation style={solid, myp!85!black}
|
||||
}
|
||||
{th}
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=chapter]{corollary}{\corollarytitle}
|
||||
{%
|
||||
enhanced
|
||||
,breakable
|
||||
,colback = myp!10
|
||||
,frame hidden
|
||||
,boxrule = 0sp
|
||||
,borderline west = {2pt}{0pt}{myp!85!black}
|
||||
,sharp corners
|
||||
,detach title
|
||||
,before upper = \tcbtitle\par\smallskip
|
||||
,coltitle = myp!85!black
|
||||
,fonttitle = \bfseries\sffamily
|
||||
,description font = \mdseries
|
||||
,separator sign none
|
||||
,segmentation style={solid, myp!85!black}
|
||||
}
|
||||
{th}
|
||||
|
||||
|
||||
%================================
|
||||
% LENMA
|
||||
%================================
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=section]{Lenma}{Lenma}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = mylenmabg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{mylenmafr},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = mylenmafr,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, mylenmafr},
|
||||
}
|
||||
{th}
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=chapter]{lenma}{Lenma}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = mylenmabg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{mylenmafr},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = mylenmafr,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, mylenmafr},
|
||||
}
|
||||
{th}
|
||||
|
||||
|
||||
%================================
|
||||
% PROPOSITION
|
||||
%================================
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=section]{Prop}{\proposaltitle}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = mypropbg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{mypropfr},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = mypropfr,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, mypropfr},
|
||||
}
|
||||
{th}
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=chapter]{prop}{\proposaltitle}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = mypropbg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{mypropfr},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = mypropfr,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, mypropfr},
|
||||
}
|
||||
{th}
|
||||
|
||||
|
||||
%================================
|
||||
% CLAIM
|
||||
%================================
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=section]{claim}{\claimtitle}
|
||||
{%
|
||||
enhanced
|
||||
,breakable
|
||||
,colback = myg!10
|
||||
,frame hidden
|
||||
,boxrule = 0sp
|
||||
,borderline west = {2pt}{0pt}{myg}
|
||||
,sharp corners
|
||||
,detach title
|
||||
,before upper = \tcbtitle\par\smallskip
|
||||
,coltitle = myg!85!black
|
||||
,fonttitle = \bfseries\sffamily
|
||||
,description font = \mdseries
|
||||
,separator sign none
|
||||
,segmentation style={solid, myg!85!black}
|
||||
}
|
||||
{th}
|
||||
|
||||
|
||||
|
||||
%================================
|
||||
% Exercise
|
||||
%================================
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=section]{Exercise}{\exercisetitle}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = myexercisebg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{myexercisefg},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = myexercisefg,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, myexercisefg},
|
||||
}
|
||||
{th}
|
||||
|
||||
\tcbuselibrary{theorems,skins,hooks}
|
||||
\newtcbtheorem[number within=chapter]{exercise}{\exercisetitle}
|
||||
{%
|
||||
enhanced,
|
||||
breakable,
|
||||
colback = myexercisebg,
|
||||
frame hidden,
|
||||
boxrule = 0sp,
|
||||
borderline west = {2pt}{0pt}{myexercisefg},
|
||||
sharp corners,
|
||||
detach title,
|
||||
before upper = \tcbtitle\par\smallskip,
|
||||
coltitle = myexercisefg,
|
||||
fonttitle = \bfseries\sffamily,
|
||||
description font = \mdseries,
|
||||
separator sign none,
|
||||
segmentation style={solid, myexercisefg},
|
||||
}
|
||||
{th}
|
||||
|
||||
%================================
|
||||
% EXAMPLE BOX
|
||||
%================================
|
||||
|
||||
\newtcbtheorem[number within=section]{Example}{\exampletitle}
|
||||
{%
|
||||
colback = myexamplebg
|
||||
,breakable
|
||||
,colframe = myexamplefr
|
||||
,coltitle = myexampleti
|
||||
,boxrule = 1pt
|
||||
,sharp corners
|
||||
,detach title
|
||||
,before upper=\tcbtitle\par\smallskip
|
||||
,fonttitle = \bfseries
|
||||
,description font = \mdseries
|
||||
,separator sign none
|
||||
,description delimiters parenthesis
|
||||
}
|
||||
{ex}
|
||||
|
||||
\newtcbtheorem[number within=chapter]{example}{\exampletitle}
|
||||
{%
|
||||
colback = myexamplebg
|
||||
,breakable
|
||||
,colframe = myexamplefr
|
||||
,coltitle = myexampleti
|
||||
,boxrule = 1pt
|
||||
,sharp corners
|
||||
,detach title
|
||||
,before upper=\tcbtitle\par\smallskip
|
||||
,fonttitle = \bfseries
|
||||
,description font = \mdseries
|
||||
,separator sign none
|
||||
,description delimiters parenthesis
|
||||
}
|
||||
{ex}
|
||||
|
||||
%================================
|
||||
% DEFINITION BOX
|
||||
%================================
|
||||
|
||||
\newtcbtheorem[number within=section]{Definition}{Definition}{enhanced,
|
||||
before skip=2mm,after skip=2mm, colback=red!5,colframe=red!80!black,boxrule=0.5mm,
|
||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
||||
boxed title style={frame code={
|
||||
\path[fill=tcbcolback]
|
||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
||||
arc[start angle=0,end angle=180,radius=1mm]
|
||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
||||
arc[start angle=180,end angle=0,radius=1mm];
|
||||
\path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,
|
||||
middle color=tcbcolback!80!black]
|
||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
||||
-- (frame.south east) -- (frame.south west)
|
||||
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
||||
[sharp corners]-- cycle;
|
||||
},interior engine=empty,
|
||||
},
|
||||
fonttitle=\bfseries,
|
||||
title={#2},#1}{def}
|
||||
\newtcbtheorem[number within=chapter]{definition}{Definition}{enhanced,
|
||||
before skip=2mm,after skip=2mm, colback=red!5,colframe=red!80!black,boxrule=0.5mm,
|
||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
||||
boxed title style={frame code={
|
||||
\path[fill=tcbcolback]
|
||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
||||
arc[start angle=0,end angle=180,radius=1mm]
|
||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
||||
arc[start angle=180,end angle=0,radius=1mm];
|
||||
\path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,
|
||||
middle color=tcbcolback!80!black]
|
||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
||||
-- (frame.south east) -- (frame.south west)
|
||||
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
||||
[sharp corners]-- cycle;
|
||||
},interior engine=empty,
|
||||
},
|
||||
fonttitle=\bfseries,
|
||||
title={#2},#1}{def}
|
||||
|
||||
|
||||
|
||||
%================================
|
||||
% Solution BOX
|
||||
%================================
|
||||
|
||||
\makeatletter
|
||||
\newtcbtheorem{question}{\questiontitle}{enhanced,
|
||||
breakable,
|
||||
colback=white,
|
||||
colframe=myb!80!black,
|
||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||
fonttitle=\bfseries,
|
||||
title={#2},
|
||||
boxed title size=title,
|
||||
boxed title style={%
|
||||
sharp corners,
|
||||
rounded corners=northwest,
|
||||
colback=tcbcolframe,
|
||||
boxrule=0pt,
|
||||
},
|
||||
underlay boxed title={%
|
||||
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||
(title.center-|frame.east)
|
||||
[rounded corners=\kvtcb@arc] |-
|
||||
(frame.north) -| cycle;
|
||||
},
|
||||
#1
|
||||
}{def}
|
||||
\makeatother
|
||||
|
||||
%================================
|
||||
% SOLUTION BOX
|
||||
%================================
|
||||
|
||||
\makeatletter
|
||||
\newtcolorbox{solution}{enhanced,
|
||||
breakable,
|
||||
colback=white,
|
||||
colframe=myg!80!black,
|
||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||
title=Solution,
|
||||
boxed title size=title,
|
||||
boxed title style={%
|
||||
sharp corners,
|
||||
rounded corners=northwest,
|
||||
colback=tcbcolframe,
|
||||
boxrule=0pt,
|
||||
},
|
||||
underlay boxed title={%
|
||||
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||
(title.center-|frame.east)
|
||||
[rounded corners=\kvtcb@arc] |-
|
||||
(frame.north) -| cycle;
|
||||
},
|
||||
}
|
||||
\makeatother
|
||||
|
||||
%================================
|
||||
% Question BOX
|
||||
%================================
|
||||
|
||||
\makeatletter
|
||||
\newtcbtheorem{qstion}{\questiontitle}{enhanced,
|
||||
breakable,
|
||||
colback=white,
|
||||
colframe=mygr,
|
||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||
fonttitle=\bfseries,
|
||||
title={#2},
|
||||
boxed title size=title,
|
||||
boxed title style={%
|
||||
sharp corners,
|
||||
rounded corners=northwest,
|
||||
colback=tcbcolframe,
|
||||
boxrule=0pt,
|
||||
},
|
||||
underlay boxed title={%
|
||||
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||
(title.center-|frame.east)
|
||||
[rounded corners=\kvtcb@arc] |-
|
||||
(frame.north) -| cycle;
|
||||
},
|
||||
#1
|
||||
}{def}
|
||||
\makeatother
|
||||
|
||||
\newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{
|
||||
breakable,
|
||||
enhanced,
|
||||
colback=white,
|
||||
colframe=myr,
|
||||
arc=0pt,
|
||||
outer arc=0pt,
|
||||
fonttitle=\bfseries\sffamily\large,
|
||||
colbacktitle=myr,
|
||||
attach boxed title to top left={},
|
||||
boxed title style={
|
||||
enhanced,
|
||||
skin=enhancedfirst jigsaw,
|
||||
arc=3pt,
|
||||
bottom=0pt,
|
||||
interior style={fill=myr}
|
||||
},
|
||||
#1
|
||||
}{def}
|
||||
|
||||
|
||||
|
||||
%================================
|
||||
% NOTE BOX
|
||||
%================================
|
||||
|
||||
\usetikzlibrary{arrows,calc,shadows.blur}
|
||||
\tcbuselibrary{skins}
|
||||
\newtcolorbox{note}[1][]{%
|
||||
enhanced jigsaw,
|
||||
colback=gray!20!white,%
|
||||
colframe=gray!80!black,
|
||||
size=small,
|
||||
boxrule=1pt,
|
||||
title=\textbf{Bemerkung:-},
|
||||
halign title=flush center,
|
||||
coltitle=black,
|
||||
breakable,
|
||||
drop shadow=black!50!white,
|
||||
attach boxed title to top left={xshift=1cm,yshift=-\tcboxedtitleheight/2,yshifttext=-\tcboxedtitleheight/2},
|
||||
minipage boxed title=2.5cm,
|
||||
boxed title style={%
|
||||
colback=white,
|
||||
size=fbox,
|
||||
boxrule=1pt,
|
||||
boxsep=2pt,
|
||||
underlay={%
|
||||
\coordinate (dotA) at ($(interior.west) + (-0.5pt,0)$);
|
||||
\coordinate (dotB) at ($(interior.east) + (0.5pt,0)$);
|
||||
\begin{scope}
|
||||
\clip (interior.north west) rectangle ([xshift=3ex]interior.east);
|
||||
\filldraw [white, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east);
|
||||
\end{scope}
|
||||
\begin{scope}[gray!80!black]
|
||||
\fill (dotA) circle (2pt);
|
||||
\fill (dotB) circle (2pt);
|
||||
\end{scope}
|
||||
},
|
||||
},
|
||||
#1,
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% SELF MADE COMMANDS
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
\newcommand{\thm}[2]{\begin{Theorem}{#1}{}#2\end{Theorem}}
|
||||
\newcommand{\cor}[2]{\begin{Corollary}{#1}{}#2\end{Corollary}}
|
||||
\newcommand{\mlenma}[2]{\begin{Lenma}{#1}{}#2\end{Lenma}}
|
||||
\newcommand{\mprop}[2]{\begin{Prop}{#1}{}#2\end{Prop}}
|
||||
\newcommand{\clm}[3]{\begin{claim}{#1}{#2}#3\end{claim}}
|
||||
\newcommand{\wc}[2]{\begin{wconc}{#1}{}\setlength{\parindent}{1cm}#2\end{wconc}}
|
||||
\newcommand{\thmcon}[1]{\begin{Theoremcon}{#1}\end{Theoremcon}}
|
||||
\newcommand{\ex}[2]{\begin{Example}{#1}{}#2\end{Example}}
|
||||
\newcommand{\dfn}[2]{\begin{Definition}[colbacktitle=red!75!black]{#1}{}#2\end{Definition}}
|
||||
\newcommand{\dfnc}[2]{\begin{definition}[colbacktitle=red!75!black]{#1}{}#2\end{definition}}
|
||||
\newcommand{\qs}[2]{\begin{question}{#1}{}#2\end{question}}
|
||||
\newcommand{\pf}[2]{\begin{myproof}[#1]#2\end{myproof}}
|
||||
\newcommand{\nt}[1]{\begin{note}#1\end{note}}
|
||||
|
||||
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
|
||||
Wrong Concept \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}
|
||||
\newcommand\getcurrentref[1]{%
|
||||
\ifnumequal{\value{#1}}{0}
|
||||
{??}
|
||||
{\the\value{#1}}%
|
||||
}
|
||||
\newcommand{\getCurrentSectionNumber}{\getcurrentref{section}}
|
||||
\newenvironment{myproof}[1][\proofname]{%
|
||||
\proof[\bfseries #1: ]%
|
||||
}{\endproof}
|
||||
|
||||
\newcommand{\mclm}[2]{\begin{myclaim}[#1]#2\end{myclaim}}
|
||||
\newenvironment{myclaim}[1][\claimname]{\proof[\bfseries #1: ]}{}
|
||||
|
||||
\newcounter{mylabelcounter}
|
||||
|
||||
\makeatletter
|
||||
\newcommand{\setword}[2]{%
|
||||
\phantomsection
|
||||
#1\def\@currentlabel{\unexpanded{#1}}\label{#2}%
|
||||
}
|
||||
\makeatother
|
||||
|
||||
|
||||
|
||||
|
||||
\tikzset{
|
||||
symbol/.style={
|
||||
draw=none,
|
||||
every to/.append style={
|
||||
edge node={node [sloped, allow upside down, auto=false]{$#1$}}}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
% deliminators
|
||||
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
|
||||
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
|
||||
|
||||
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
|
||||
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
|
||||
\DeclarePairedDelimiter{\round}{\lfloor}{\rceil}
|
||||
|
||||
\newsavebox\diffdbox
|
||||
\newcommand{\slantedromand}{{\mathpalette\makesl{d}}}
|
||||
\newcommand{\makesl}[2]{%
|
||||
\begingroup
|
||||
\sbox{\diffdbox}{$\mathsurround=0pt#1\mathrm{#2}$}%
|
||||
\pdfsave
|
||||
\pdfsetmatrix{1 0 0.2 1}%
|
||||
\rlap{\usebox{\diffdbox}}%
|
||||
\pdfrestore
|
||||
\hskip\wd\diffdbox
|
||||
\endgroup
|
||||
}
|
||||
\newcommand{\dd}[1][]{\ensuremath{\mathop{}\!\ifstrempty{#1}{%
|
||||
\slantedromand\@ifnextchar^{\hspace{0.2ex}}{\hspace{0.1ex}}}%
|
||||
{\slantedromand\hspace{0.2ex}^{#1}}}}
|
||||
\ProvideDocumentCommand\dv{o m g}{%
|
||||
\ensuremath{%
|
||||
\IfValueTF{#3}{%
|
||||
\IfNoValueTF{#1}{%
|
||||
\frac{\dd #2}{\dd #3}%
|
||||
}{%
|
||||
\frac{\dd^{#1} #2}{\dd #3^{#1}}%
|
||||
}%
|
||||
}{%
|
||||
\IfNoValueTF{#1}{%
|
||||
\frac{\dd}{\dd #2}%
|
||||
}{%
|
||||
\frac{\dd^{#1}}{\dd #2^{#1}}%
|
||||
}%
|
||||
}%
|
||||
}%
|
||||
}
|
||||
\providecommand*{\pdv}[3][]{\frac{\partial^{#1}#2}{\partial#3^{#1}}}
|
||||
% - others
|
||||
\DeclareMathOperator{\Lap}{\mathcal{L}}
|
||||
\DeclareMathOperator{\Var}{Var} % varience
|
||||
\DeclareMathOperator{\Cov}{Cov} % covarience
|
||||
\DeclareMathOperator{\E}{E} % expected
|
||||
|
||||
% Since the amsthm package isn't loaded
|
||||
|
||||
% I prefer the slanted \leq
|
||||
\let\oldleq\leq % save them in case they're every wanted
|
||||
\let\oldgeq\geq
|
||||
\renewcommand{\leq}{\leqslant}
|
||||
\renewcommand{\geq}{\geqslant}
|
||||
|
||||
% % redefine matrix env to allow for alignment, use r as default
|
||||
% \renewcommand*\env@matrix[1][r]{\hskip -\arraycolsep
|
||||
% \let\@ifnextchar\new@ifnextchar
|
||||
% \array{*\c@MaxMatrixCols #1}}
|
||||
|
||||
|
||||
%\usepackage{framed}
|
||||
%\usepackage{titletoc}
|
||||
%\usepackage{etoolbox}
|
||||
%\usepackage{lmodern}
|
||||
|
||||
|
||||
%\patchcmd{\tableofcontents}{\contentsname}{\sffamily\contentsname}{}{}
|
||||
|
||||
%\renewenvironment{leftbar}
|
||||
%{\def\FrameCommand{\hspace{6em}%
|
||||
% {\color{myyellow}\vrule width 2pt depth 6pt}\hspace{1em}}%
|
||||
% \MakeFramed{\parshape 1 0cm \dimexpr\textwidth-6em\relax\FrameRestore}\vskip2pt%
|
||||
%}
|
||||
%{\endMakeFramed}
|
||||
|
||||
%\titlecontents{chapter}
|
||||
%[0em]{\vspace*{2\baselineskip}}
|
||||
%{\parbox{4.5em}{%
|
||||
% \hfill\Huge\sffamily\bfseries\color{myred}\thecontentspage}%
|
||||
% \vspace*{-2.3\baselineskip}\leftbar\textsc{\small\chaptername~\thecontentslabel}\\\sffamily}
|
||||
%{}{\endleftbar}
|
||||
%\titlecontents{section}
|
||||
%[8.4em]
|
||||
%{\sffamily\contentslabel{3em}}{}{}
|
||||
%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage}
|
||||
%\titlecontents{subsection}
|
||||
%[8.4em]
|
||||
%{\sffamily\contentslabel{3em}}{}{}
|
||||
%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage}
|
||||
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% TABLE OF CONTENTS
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\usepackage{tikz}
|
||||
\definecolor{doc}{RGB}{0,60,110}
|
||||
\usepackage{titletoc}
|
||||
\contentsmargin{0cm}
|
||||
\titlecontents{chapter}[3.7pc]
|
||||
{\addvspace{30pt}%
|
||||
\begin{tikzpicture}[remember picture, overlay]%
|
||||
\draw[fill=doc!60,draw=doc!60] (-7,-.1) rectangle (-0.9,.5);%
|
||||
\pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries Chapter\ \thecontentslabel};%
|
||||
\end{tikzpicture}\color{doc!60}\large\sc\bfseries}%
|
||||
{}
|
||||
{}
|
||||
{\;\titlerule\;\large\sc\bfseries Page \thecontentspage
|
||||
\begin{tikzpicture}[remember picture, overlay]
|
||||
\draw[fill=doc!60,draw=doc!60] (2pt,0) rectangle (4,0.1pt);
|
||||
\end{tikzpicture}}%
|
||||
\titlecontents{section}[3.7pc]
|
||||
{\addvspace{2pt}}
|
||||
{\contentslabel[\thecontentslabel]{2pc}}
|
||||
{}
|
||||
{\hfill\small \thecontentspage}
|
||||
[]
|
||||
\titlecontents*{subsection}[3.7pc]
|
||||
{\addvspace{-1pt}\small}
|
||||
{}
|
||||
{}
|
||||
{\ --- \small\thecontentspage}
|
||||
[ \textbullet\ ][]
|
||||
|
||||
\makeatletter
|
||||
\renewcommand{\tableofcontents}{%
|
||||
\chapter*{%
|
||||
\vspace*{-20\p@}%
|
||||
\begin{tikzpicture}[remember picture, overlay]%
|
||||
\pgftext[right,x=15cm,y=0.2cm]{\color{doc!60}\Huge\sc\bfseries \contentsname};%
|
||||
\draw[fill=doc!60,draw=doc!60] (13,-.75) rectangle (20,1);%
|
||||
\clip (13,-.75) rectangle (20,1);
|
||||
\pgftext[right,x=15cm,y=0.2cm]{\color{white}\Huge\sc\bfseries \contentsname};%
|
||||
\end{tikzpicture}}%
|
||||
\@starttoc{toc}}
|
||||
\makeatother
|
||||
11
.config/nvim/templates/markdown/main_edu.md
Normal file
11
.config/nvim/templates/markdown/main_edu.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
work_space: "workspace"
|
||||
subject: "subject"
|
||||
tags: ["Note", "tag"]
|
||||
---
|
||||
|
||||
<!-- TODO: Edit Parameters -->
|
||||
|
||||
# Topic
|
||||
|
||||
<!-- TODO: Begin notes here -->
|
||||
12
.config/nvim/templates/markdown/main_project.md
Normal file
12
.config/nvim/templates/markdown/main_project.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
project_name: "Project Name"
|
||||
space: "Space Name"
|
||||
tags: ["project", "tags"]
|
||||
project_status: "Project Status"
|
||||
---
|
||||
|
||||
<!-- TODO: Edit page parameters -->
|
||||
|
||||
# Project Name
|
||||
|
||||
<!-- TODO: Begin Project here -->
|
||||
10
.config/nvim/templates/markdown/main_todo.md
Normal file
10
.config/nvim/templates/markdown/main_todo.md
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
date: "Date"
|
||||
tags: ["Todo", "Tags"]
|
||||
---
|
||||
|
||||
<!-- TODO: Edit page parameters -->
|
||||
|
||||
# Date
|
||||
|
||||
<!-- TODO: Add Todos for this day here -->
|
||||
0
.config/nvim/templates/python/main_graph.py
Normal file
0
.config/nvim/templates/python/main_graph.py
Normal file
Reference in New Issue
Block a user