aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/somesass_ls.lua
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-11-14 23:43:38 +0300
committerawy <awy@awy.one>2025-11-14 23:43:38 +0300
commitc7a88a07b9287db9c129914483f6b3ae1ab5404c (patch)
tree73c227c5e8519eb9135f46984e4fc067b316ed1b /.config/nvim/lsp/somesass_ls.lua
downloadmangoslice-c7a88a07b9287db9c129914483f6b3ae1ab5404c.tar.gz
init
Diffstat (limited to '.config/nvim/lsp/somesass_ls.lua')
-rw-r--r--.config/nvim/lsp/somesass_ls.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/.config/nvim/lsp/somesass_ls.lua b/.config/nvim/lsp/somesass_ls.lua
new file mode 100644
index 0000000..6f17952
--- /dev/null
+++ b/.config/nvim/lsp/somesass_ls.lua
@@ -0,0 +1,30 @@
+---@brief
+---
+--- 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.
+
+---@type vim.lsp.Config
+return {
+ name = 'somesass_ls',
+ cmd = { 'some-sass-language-server', '--stdio' },
+ filetypes = { 'scss', 'sass' },
+ root_markers = { '.git', '.package.json' },
+ settings = {
+ somesass = {
+ suggestAllFromOpenDocument = true,
+ },
+ },
+}