From 4bd46ab834849a57d1053cf7e0060b9cb09de5aa Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Sat, 13 Jul 2024 23:37:00 +0200 Subject: [PATCH] vue and typescript lsp --- home-manager/neovim.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/home-manager/neovim.nix b/home-manager/neovim.nix index 4b97f05..8abd153 100644 --- a/home-manager/neovim.nix +++ b/home-manager/neovim.nix @@ -23,7 +23,6 @@ }) lspcfg.ltex.setup({ cmd = { '${pkgs.ltex-ls}/bin/ltex-ls' }, - filetypes = { 'bib', 'gitcommit', 'markdown', 'plaintext', 'tex', 'pandoc', 'typst' }, settings = { ltex = { language = 'auto' @@ -35,6 +34,23 @@ }) lspcfg.ocamllsp.setup({}) lspcfg.purescriptls.setup({}) + lspcfg.volar.setup({}) + lspcfg.tsserver.setup({ + init_options = { + plugins = { + { + name = "@vue/typescript-plugin", + location = "node_modules/@vue/typescript-plugin", + languages = {"javascript", "typescript", "vue"}, + }, + }, + }, + filetypes = { + "javascript", + "typescript", + "vue", + }, + }) require('orgmode').setup({}) require('lean').setup({ mappings = true,