diff options
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/lazy-lock.json | 1 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/plugins/core.lua | 10 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/plugins/gruvbox.lua | 21 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/plugins/lspconfig.lua | 3 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/lsp/configs.lua | 12 |
5 files changed, 45 insertions, 2 deletions
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 44d36ac..d91b1b1 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -69,6 +69,7 @@ "telescope.nvim": { "branch": "master", "commit": "da8b3d485975a8727bea127518b65c980521ae22" }, "todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" }, "tokyonight.nvim": { "branch": "main", "commit": "f247ee700b569ed43f39320413a13ba9b0aef0db" }, + "typst-preview.nvim": { "branch": "master", "commit": "eca78fffe12c350e0147de228e570efd2851d024" }, "vim-hjson": { "branch": "master", "commit": "adc104d4a4041a482e1af1914895a119e343c7e1" }, "vim-tridactyl": { "branch": "master", "commit": "fdd069bde3a34c786abed4601b6d59a065590ad9" }, "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" } diff --git a/nvim/.config/nvim/lua/plugins/core.lua b/nvim/.config/nvim/lua/plugins/core.lua index bd2e7e1..5ba0b2f 100644 --- a/nvim/.config/nvim/lua/plugins/core.lua +++ b/nvim/.config/nvim/lua/plugins/core.lua @@ -17,7 +17,7 @@ local M = { "j-hui/fidget.nvim", version = "*", event = { "LspAttach" }, - cmd = "Fidget", + cmd = "Fidget", opts = { notification = { window = { @@ -95,6 +95,14 @@ local M = { ft = "hjson", }, { + "chomosuke/typst-preview.nvim", + ft = "typst", + version = "*", + build = function() + require("typst-preview").update() + end, + }, + { "tridactyl/vim-tridactyl", ft = "tridactyl", }, diff --git a/nvim/.config/nvim/lua/plugins/gruvbox.lua b/nvim/.config/nvim/lua/plugins/gruvbox.lua index cf1e3d8..be58696 100644 --- a/nvim/.config/nvim/lua/plugins/gruvbox.lua +++ b/nvim/.config/nvim/lua/plugins/gruvbox.lua @@ -11,6 +11,27 @@ local M = { DiffChange = { link = "GruvboxAqua" }, DiffText = { link = "GruvboxYellow" }, Delimiter = { link = "Special" }, + ["@lsp.type.string"] = { link = "@string" }, + ["@lsp.type.keyword"] = { link = "@keyword" }, + ["@lsp.type.operator"] = { link = "@operator" }, + ["@lsp.type.number"] = { link = "@number" }, + ["@lsp.type.bool"] = { link = "@boolean" }, + ["@lsp.type.punct"] = { link = "@punctuation" }, + ["@lsp.type.escape"] = { link = "@string.escape" }, + ["@lsp.type.link"] = { link = "@text.uri" }, + ["@lsp.type.raw"] = { link = "@text.literal" }, + ["@lsp.type.label"] = { link = "@label" }, + ["@lsp.type.ref"] = { link = "@text.reference" }, + ["@lsp.type.heading"] = { link = "@string.special" }, + ["@lsp.type.marker"] = { link = "@tag" }, + ["@lsp.type.term"] = { link = "@symbol" }, + ["@lsp.type.delim"] = { link = "@tag.delimiter" }, + ["@lsp.type.pol"] = { link = "@property" }, + ["@lsp.type.error"] = { link = "@error" }, + ["@lsp.type.text"] = { link = "@text" }, + ["@lsp.mod.strong"] = { link = "@text.strong" }, + ["@lsp.mod.emph"] = { link = "@text.emphasis" }, + ["@lsp.mod.math"] = { link = "@text.math" }, }, }, } diff --git a/nvim/.config/nvim/lua/plugins/lspconfig.lua b/nvim/.config/nvim/lua/plugins/lspconfig.lua index f75d6e2..df7450e 100644 --- a/nvim/.config/nvim/lua/plugins/lspconfig.lua +++ b/nvim/.config/nvim/lua/plugins/lspconfig.lua @@ -11,7 +11,8 @@ local M = { function M:config() require("neoconf") - require("lspconfig.util").default_config.capabilities = require("cmp_nvim_lsp").default_capabilities() + require("lspconfig.util").default_config.capabilities = + require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()) require("lspconfig.ui.windows").default_options.border = "single" local available = require("lspconfig.util").available_servers() diff --git a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua index 4fb369c..52863a9 100644 --- a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua +++ b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua @@ -164,6 +164,18 @@ local M = { "tex", }, }, + typst_lsp = { + capabilities = { + workspace = { + didChangeConfiguration = { + dynamicRegistration = true, + }, + }, + }, + settings = { + exportPdf = "onType", + }, + }, yamlls = { settings = { yaml = { |