From 36c6840b0c09cd5a3ff3fbe173af6a22dc596f8e Mon Sep 17 00:00:00 2001 From: ArgentumCation <5008962+ArgentumCation@users.noreply.github.com> Date: Tue, 16 Sep 2025 14:53:46 -0400 Subject: [PATCH] configs for swift, typst, yaml, latex --- lua/configs/lspconfig.lua | 23 ++++++++++++++++++++++- lua/plugins.lua | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 988064f..21ad0ed 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -17,7 +17,6 @@ require("mason-lspconfig").setup { "bashls", "css_variables", "marksman", - -- "rust_analyzer", "rust_analyzer", "ruff", "jdtls", @@ -26,3 +25,25 @@ require("mason-lspconfig").setup { } require("copilot").setup() + +-- Swift? +vim.lsp.enable('sourcekit') + + +-- YAML +vim.lsp.config['yamlls'] = { + settings = { + yaml = { + format = { + singleQuote = true, + } + } + } +} +-- Typst +vim.lsp.config["tinymist"] = { + cmd = { "tinymist" }, + filetypes = { "typst" }, + settings = { + } +} diff --git a/lua/plugins.lua b/lua/plugins.lua index f979a3c..4a90c25 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -290,6 +290,24 @@ return { "christoomey/vim-tmux-navigator", lazy = false, }, + ----------- + -- Latex -- + ----------- + { + "lervag/vimtex", + lazy = false, -- we don't want to lazy load VimTeX + -- tag = "v2.15", -- uncomment to pin to a specific release + init = function() + -- VimTeX configuration goes here, e.g. + vim.g.vimtex_view_method = "zathura" + end + }, + { + 'chomosuke/typst-preview.nvim', + ft = 'typst', + version = '1.*', + opts = {}, -- lazy.nvim will implicitly calls `setup {}` + } -- All NvChad plugins are lazy-loaded by default -- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false` -- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example