diff --git a/home/neovim/lsp/javascript.nix b/home/neovim/lsp/javascript.nix index 5170734..314bc22 100644 --- a/home/neovim/lsp/javascript.nix +++ b/home/neovim/lsp/javascript.nix @@ -16,7 +16,23 @@ plugins.none-ls.sources.formatting = { # see https://github.com/prettier/prettier - prettier.enable = true; + prettier = { + enable = true; + # filetypes is explicit: the none-ls default list also includes other fiile types like + # yaml and markdown. + settings.filetypes = [ + "javascript" + "javascriptreact" + "typescript" + "typescriptreact" + "json" + "jsonc" + "css" + "scss" + "less" + "html" + ]; + }; }; }; }