Closed bennypowers closed 2 years ago
Hi @bennypowers. The file you linked doesn't appear to have any settings for stylelint-lsp, so I can't be certain what the problem is. However, the filetypes
option is not part of stylelint-lsp's settings, but, rather, part of neovim's settings. See the default configuration here: https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/stylelint_lsp.lua
In other words, I think you'd need something like:
require'lspconfig'.stylelint_lsp.setup{
filetypes = { ... },
settings = {
stylelintplus = {
-- see available options in stylelint-lsp documentation
}
}
}
I personally don't use neovim's built-in lsp support, so I'm not 100% sure of that.
Indeed, I solved this by passing the entire options object, with filetype
as a sibling for settings
Awesome, glad to hear it!
Hello!
I've applied the following settings:
via
lsp-installer
, using this lua script:https://github.com/bennypowers/dotfiles/blob/3f71e8f0b6e43f801435aeaab017322a088c6a44/.config/nvim/lua/config/lsp-installer.lua#L147
Expected
I Expected not to see linting errors in
.js
,.ts
, or.cjs
filesActual