diff options
| author | Simeon Simeonoff <hello@simeonoff.ninja> | 2024-03-06 08:48:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-06 14:48:59 +0800 |
| commit | 6ae4776087c3614a1a24bafb1814dd7382764109 (patch) | |
| tree | fd5869eaff2a7ce02cab2c3c4252069adc0d670a /lua | |
| parent | fix: lexical root directory config (#3055) (diff) | |
| download | nvim-lspconfig-6ae4776087c3614a1a24bafb1814dd7382764109.tar nvim-lspconfig-6ae4776087c3614a1a24bafb1814dd7382764109.tar.gz nvim-lspconfig-6ae4776087c3614a1a24bafb1814dd7382764109.tar.bz2 nvim-lspconfig-6ae4776087c3614a1a24bafb1814dd7382764109.tar.lz nvim-lspconfig-6ae4776087c3614a1a24bafb1814dd7382764109.tar.xz nvim-lspconfig-6ae4776087c3614a1a24bafb1814dd7382764109.tar.zst nvim-lspconfig-6ae4776087c3614a1a24bafb1814dd7382764109.zip | |
feat: add config for some-sass-language-server (#3057)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/somesass_ls.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/somesass_ls.lua b/lua/lspconfig/server_configurations/somesass_ls.lua new file mode 100644 index 00000000..710d5628 --- /dev/null +++ b/lua/lspconfig/server_configurations/somesass_ls.lua @@ -0,0 +1,40 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + name = 'somesass_ls', + cmd = { 'some-sass-language-server', '--stdio' }, + filetypes = { 'scss', 'sass' }, + root_dir = util.root_pattern('.git', '.package.json'), + single_file_support = true, + settings = { + somesass = { + suggestAllFromOpenDocument = true, + }, + }, + }, + docs = { + description = [[ + +https://github.com/wkillerud/some-sass/tree/main/packages/language-server + +`some-sass-language-server` can be installed via `npm`: + +```sh +npm i -g some-sass-language-server +``` + +The language server provides: + +- Full support for @use and @forward, including aliases, prefixes and hiding. +- Workspace-wide code navigation and refactoring, such as Rename Symbol. +- Rich documentation through SassDoc. +- Language features for %placeholder-selectors, both when using them and writing them. +- Suggestions and hover info for built-in Sass modules, when used with @use. + +]], + default_config = { + root_dir = [[root_pattern("package.json", ".git") or bufdir]], + }, + }, +} |
