aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/chadrc.lua3
-rw-r--r--.config/nvim/lua/configs/conform.lua1
-rw-r--r--.config/nvim/lua/configs/lspconfig.lua2
-rw-r--r--.config/nvim/lua/configs/vimtex.lua5
-rw-r--r--.config/nvim/lua/plugins.lua8
5 files changed, 5 insertions, 14 deletions
diff --git a/.config/nvim/lua/chadrc.lua b/.config/nvim/lua/chadrc.lua
index 5bb043eb..62c2f7b0 100644
--- a/.config/nvim/lua/chadrc.lua
+++ b/.config/nvim/lua/chadrc.lua
@@ -22,9 +22,10 @@ M.mason.pkgs = {
"html-lsp",
"css-lsp",
"prettier",
- "texlab",
"ruff",
"python-lsp-server",
+ "typst-lsp",
+ "typstfmt",
}
return M
diff --git a/.config/nvim/lua/configs/conform.lua b/.config/nvim/lua/configs/conform.lua
index 80c68991..8ed7a5e5 100644
--- a/.config/nvim/lua/configs/conform.lua
+++ b/.config/nvim/lua/configs/conform.lua
@@ -8,6 +8,7 @@ local options = {
css = { "prettier" },
html = { "prettier" },
scala = { "scalafmt" },
+ typ = { "typstfmt" },
},
format_on_save = {
timeout_ms = 500,
diff --git a/.config/nvim/lua/configs/lspconfig.lua b/.config/nvim/lua/configs/lspconfig.lua
index b5379bb6..0e668941 100644
--- a/.config/nvim/lua/configs/lspconfig.lua
+++ b/.config/nvim/lua/configs/lspconfig.lua
@@ -3,7 +3,7 @@ local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities
local lspconfig = require("lspconfig")
-local servers = { "pylsp", "clangd", "cssls", "rust_analyzer", "texlab" }
+local servers = { "pylsp", "clangd", "cssls", "rust_analyzer", "typst_lsp" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup({
diff --git a/.config/nvim/lua/configs/vimtex.lua b/.config/nvim/lua/configs/vimtex.lua
deleted file mode 100644
index c25558d5..00000000
--- a/.config/nvim/lua/configs/vimtex.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-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/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index ac64bcac..b86f4118 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -28,14 +28,8 @@ return {
"html",
"markdown",
"scala",
+ "typst",
},
},
},
- {
- "lervag/vimtex",
- lazy = false,
- config = function()
- require("configs.vimtex")
- end,
- },
}