diff options
| author | anand <anand.panchdhari@gmail.com> | 2026-04-05 16:47:53 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2026-04-05 16:47:53 +0530 |
| commit | 76f6235bcd178cc5c28cc4fbf0d09fafb1f63a9b (patch) | |
| tree | 8d248824df3cacdfef1789d3663175bce48d05b5 /nvim/lsp/glint.lua | |
| parent | 50525874363953113aa715ea519d179e9c87bbd0 (diff) | |
some changes
Diffstat (limited to 'nvim/lsp/glint.lua')
| -rwxr-xr-x | nvim/lsp/glint.lua | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/nvim/lsp/glint.lua b/nvim/lsp/glint.lua deleted file mode 100755 index 2ed30bb..0000000 --- a/nvim/lsp/glint.lua +++ /dev/null @@ -1,53 +0,0 @@ ----@brief ---- ---- https://github.com/typed-ember/glint ---- https://typed-ember.gitbook.io/glint/ ---- `glint-language-server` is installed when adding `@glint/core` to your project's devDependencies: ---- ---- ```sh ---- npm install @glint/core --save-dev ---- yarn add -D @glint/core ---- ---- This configuration uses the local installation of `glint-language-server` ---- (found in the `node_modules` directory of your project). ---- ---- To use a global installation of `glint-language-server`, ---- set the `init_options.glint.useGlobal` to `true`. ---- ---- vim.lsp.config('glint', { ---- init_options = { ---- glint = { ---- useGlobal = true, ---- }, ---- }, ---- }) - -return { - cmd = function(dispatchers, config) - local cmd = (config.init_options.glint.useGlobal or not config.root_dir) and { 'glint-language-server' } - or { config.root_dir .. '/node_modules/.bin/glint-language-server' } - return vim.lsp.rpc.start(cmd, dispatchers) - end, - init_options = { - glint = { - useGlobal = false, - }, - }, - filetypes = { - 'html.handlebars', - 'handlebars', - 'typescript', - 'typescript.glimmer', - 'javascript', - 'javascript.glimmer', - }, - root_markers = { - '.glintrc.yml', - '.glintrc', - '.glintrc.json', - '.glintrc.js', - 'glint.config.js', - 'package.json', - }, - workspace_required = true, -} |
