commit d30059f8e2ef310f00e2ed1f589ed374ebed3cb5
parent 6f0ae66bdd32105c673609ba1c802f5dfbe2628f
Author: Benjamin Paul <bpaul@bpaul.xyz>
Date: Mon, 8 May 2023 01:22:17 +1000
Typst lsp configuration (no syntax highlighting :( )
Diffstat:
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/nvim/.config/nvim/after/plugin/lsp.lua b/nvim/.config/nvim/after/plugin/lsp.lua
@@ -55,6 +55,12 @@ require 'lspconfig'.hls.setup {
require 'lspconfig'.texlab.setup {
on_attach = on_attach,
}
+require 'lspconfig'.typst_lsp.setup {
+ on_attach = on_attach,
+ settings = {
+ --exportPdf = "onType"
+ }
+}
require 'lspconfig'.sumneko_lua.setup {
on_attach = on_attach,
settings = {
diff --git a/nvim/.config/nvim/lua/settings.lua b/nvim/.config/nvim/lua/settings.lua
@@ -47,3 +47,10 @@ vim.wo.signcolumn = "yes"
-- Colour column shows the text width of a file
vim.wo.colorcolumn = vim.wo.colorcolumn .. '+' .. 1
for i = 2,255 do vim.wo.colorcolumn = vim.wo.colorcolumn .. ',+' .. i end
+
+-- Create the typst filetype!
+vim.filetype.add({
+ extension = {
+ typ = 'typst',
+ },
+})