Shopify / theme-tools

Everything developer experience for Shopify themes
https://shopify.dev/docs/themes
MIT License
48 stars 14 forks source link

[Wiki] Add an example nvim-lspconfig server configuration for neovim #372

Closed slavamak closed 1 week ago

slavamak commented 3 weeks ago

Is your feature request related to a problem? Please describe.

I suggest adding an example nvim-lspconfig server configuration for neovim on this wiki page. Using nvim-lspconfig is considered the preferred method of adding language server support for Neovim.

Describe the solution you'd like

neovim/nvim-lspconfig Configuration

Set up shopify_theme_ls with Neovim's built-in LSP, use the following configuration:

require("lspconfig").shopify_theme_ls.setup {}

This setup requires the Shopify CLI, which can be installed via npm:

npm install -g @shopify/cli

Alternatively, to manage the installation of the Shopify CLI using Mason:

require("mason").setup {}
require("mason-lspconfig").setup {
    automatic_installation = true
}

require("lspconfig").shopify_theme_ls.setup {}

Checklist

Additional context https://github.com/neovim/nvim-lspconfig/pull/3147 https://github.com/mason-org/mason-registry/pull/5689

slavamak commented 1 week ago

Hi, @mgmanzella

I understand that you may have a lot of issues, so just wanted to clarify if there is any news on this issue. It's not a critical issue, it's just an improvement to the docs but I think it would be helpful to those who are still not very familiar with neovim.

If any additional information or help is needed on my part, please let me know :)

jamesmengo commented 1 week ago

Hey @slavamak, This looks great! Thank you for the contribution 🫶

I've updated the wiki + added an attribution to you for contributing the changes. Let me know if you'd like me to update anything there related, and thanks again for helping improve out documentation 😸