1
Fork 0

Fix typst setup, and install leechblock

This commit is contained in:
prescientmoon 2024-02-28 07:16:21 +01:00
parent 0e9d6da8ae
commit b14753a625
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
4 changed files with 8 additions and 13 deletions

View file

@ -73,6 +73,7 @@ in
bitwarden # Password manager bitwarden # Password manager
blocktube # Lets you block youtube channels blocktube # Lets you block youtube channels
dearrow # Crowdsourced clickbait remover 💀 dearrow # Crowdsourced clickbait remover 💀
leechblock-ng # website blocker
lovely-forks # displays forks on github lovely-forks # displays forks on github
octolinker # github import to link thingy octolinker # github import to link thingy
octotree # github file tree octotree # github file tree

View file

@ -16,6 +16,7 @@ local M = {
-- {{{ Capabilities -- {{{ Capabilities
M.capabilities = function() M.capabilities = function()
local c = require("cmp_nvim_lsp").default_capabilities() local c = require("cmp_nvim_lsp").default_capabilities()
-- Add folding capabilities -- Add folding capabilities
c.textDocument.foldingRange = { c.textDocument.foldingRange = {
dynamicRegistration = false, dynamicRegistration = false,
@ -115,21 +116,14 @@ function M.config()
---@diagnostic disable-next-line: missing-fields ---@diagnostic disable-next-line: missing-fields
jsonls = {}, jsonls = {},
dhall_lsp_server = {}, dhall_lsp_server = {},
typst_lsp = {}, typst_lsp = {
exportPdf = "onType",
},
---@diagnostic disable-next-line: missing-fields ---@diagnostic disable-next-line: missing-fields
elmls = {}, elmls = {},
-- {{{ Inactive
-- pylsp = {},
-- pyright = {},
-- }}}
} }
-- }}} -- }}}
vim.lsp.handlers["textDocument/hover"] =
vim.lsp.with(vim.lsp.handlers.hover, { border = "single" })
vim.lsp.handlers["textDocument/signatureHelp"] =
vim.lsp.with(vim.lsp.handlers.signature_help, { border = "single" })
local capabilities = M.capabilities() local capabilities = M.capabilities()
for lsp, details in pairs(servers) do for lsp, details in pairs(servers) do
details.capabilities = capabilities details.capabilities = capabilities

View file

@ -1236,7 +1236,7 @@ let
# {{{ typst support # {{{ typst support
typst = { typst = {
package = "kaarmu/typst.vim"; package = "kaarmu/typst.vim";
dependencies.nix = [ pkgs.typst-lsp pkgs.typst-fmt ]; dependencies.nix = [ pkgs.typst pkgs.typst-lsp pkgs.typstfmt ];
cond = blacklist "vscode"; cond = blacklist "vscode";
ft = "typst"; ft = "typst";

View file

@ -40,8 +40,8 @@
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
programs.firejail.enable = true; programs.firejail.enable = true;
programs.extra-container.enable = true; programs.extra-container.enable = true;
virtualisation.docker.enable = true; # virtualisation.docker.enable = true;
virtualisation.spiceUSBRedirection.enable = true; # virtualisation.spiceUSBRedirection.enable = true; # This was required for the vm usb passthrough tomfoolery
# }}} # }}}
# {{{ Ad-hoc stylix targets # {{{ Ad-hoc stylix targets
# TODO: include this on all gui hosts # TODO: include this on all gui hosts