From 21c3772a160f04ce1e53f6e65a50254b9a298b89 Mon Sep 17 00:00:00 2001 From: Jack Sangdahl <0x6A73@pm.me> Date: Fri, 30 Jun 2023 20:12:12 -0600 Subject: latex stuff --- .config/nvchad/configs/luasnip.lua | 54 ++++++++++++++++++++++++++++++++++++++ .config/nvchad/configs/null-ls.lua | 3 +++ .config/nvchad/configs/vimtex.lua | 5 ++++ .config/nvchad/plugins.lua | 17 ++++++++++++ .config/sway/config | 2 +- 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 .config/nvchad/configs/luasnip.lua create mode 100644 .config/nvchad/configs/vimtex.lua (limited to '.config') diff --git a/.config/nvchad/configs/luasnip.lua b/.config/nvchad/configs/luasnip.lua new file mode 100644 index 00000000..c8642e64 --- /dev/null +++ b/.config/nvchad/configs/luasnip.lua @@ -0,0 +1,54 @@ +require("luasnip.loaders.from_vscode").load { + exclude = { + "cobol", + "csharp", + "css", + "docker", + "frameworks", + "java", + "javascript", + "lua", + "php", + "PowerShell", + "dart", + "eelixir", + "elixir", + "erb", + "erlang", + "fennel", + "fortran", + "fsh", + "gdscript", + "gitcommit", + "global", + "glsl", + "go", + "haskell", + "html", + "julia", + "kotlin", + "kubernetes", + "license", + "liquid", + "make", + "mint", + "norg", + "nushell", + "objc", + "org", + "plantuml", + "quarto", + "r", + "rescript", + "rmarkdown", + "ruby", + "scala", + "solidity", + "sql", + "svelte", + "swift", + "systemverilog", + "verilog", + "vhdl", + }, +} diff --git a/.config/nvchad/configs/null-ls.lua b/.config/nvchad/configs/null-ls.lua index cd635ee2..5a84df14 100644 --- a/.config/nvchad/configs/null-ls.lua +++ b/.config/nvchad/configs/null-ls.lua @@ -21,6 +21,9 @@ local sources = { -- json b.diagnostics.jsonlint, + + -- latex + b.formatting.latexindent, } null_ls.setup { diff --git a/.config/nvchad/configs/vimtex.lua b/.config/nvchad/configs/vimtex.lua new file mode 100644 index 00000000..c25558d5 --- /dev/null +++ b/.config/nvchad/configs/vimtex.lua @@ -0,0 +1,5 @@ +vim.g.tex_flavor='latex' +vim.g.vimtex_view_method='zathura' +vim.g.vimtex_quickfix_mode=0 +vim.opt.conceallevel = 1 +vim.g.tex_conceal='abdmg' diff --git a/.config/nvchad/plugins.lua b/.config/nvchad/plugins.lua index e760bc1d..b51fcbf1 100644 --- a/.config/nvchad/plugins.lua +++ b/.config/nvchad/plugins.lua @@ -41,6 +41,23 @@ local plugins = { require("better_escape").setup() end, }, + + { + "lervag/vimtex", + lazy = false, + config = function() + require("custom.configs.vimtex") + end, + }, + + { + "L3MON4D3/LuaSnip", + dependencies = { "rafamadriz/friendly-snippets" }, + config = function() + require("custom.configs.luasnip") + end, + lazy = false, + }, } return plugins diff --git a/.config/sway/config b/.config/sway/config index 8448871b..3ecdbb9a 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -14,7 +14,7 @@ set $down j set $up k set $right l -output * bg ~/.img/wallpaper/waves_mono.png fill +output * bg ~/.img/wallpaper/coffeecat.png fill exec /usr/bin/mako exec /usr/bin/gentoo-pipewire-launcher -- cgit v1.2.3