17 lines
607 B
Fennel
17 lines
607 B
Fennel
(local M {})
|
|
|
|
(local vue_language_server_path (.. (vim.fn.expand :$MASON/packages) :/vue-language-server "/node_modules/@vue/language-server"))
|
|
|
|
(fn M.setup [opts]
|
|
(vim.lsp.config :ts_ls
|
|
{:on_attach opts.on_attach
|
|
:capabilities opts.capabilities
|
|
:flags opts.flags
|
|
:init_options {:plugins [{:name "@vue/typescript-plugin"
|
|
:location vue_language_server_path
|
|
:languages [:vue]
|
|
:configNamespace :typescript}]}
|
|
:filetypes [:typescript :javascript :javascriptreact :typescriptreact :vue]}))
|
|
|
|
M
|