Commit graph

25 commits

Author SHA1 Message Date
Folke Lemaitre
c20c402295
fix(mason): rename and pin to v1 2025-05-12 10:39:04 +02:00
Alexey Svirshchevskiy
b8407f4b12
feat(extras): add biome formatter (#4448)
## Description
This PR adds biome as a conform/null-ls formatter.

When using biome lsp formatting directly, the syntax highlighting is
flickering. However, it works great when formatting is configured with
conform.

To avoid conflicts with Prettier, it is recommended to set
`vim.g.lazyvim_prettier_needs_config = true` In this case, both prettier
and biome formatters could be activated simultaneously.

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-16 07:34:21 +01:00
Rick Harris
4ff36062dd
fix(prettier): keep existing formatters_by_ft (#4719)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

This change makes it possible to configure other formatters for
filetypes supported by the prettier extra, for instance

```js
return {
  {
    "stevearc/conform.nvim",
    opts = {
      formatters_by_ft = {
        css = { "stylelint" },
      },
    },
  },
}
```

Currently the prettier extra overwrites any existing `formatters_by_ft`
for the filetypes it supports. I've changed it to use `table.insert`
[like the sql extra
does](75750be1c0/lua/lazyvim/plugins/extras/lang/sql.lua (L148-L149)).

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

None that I know of

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

N/A

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-07 16:11:36 +01:00
Folke Lemaitre
ac9217b199
fix(prettier): fixup 2024-06-07 23:24:01 +02:00
Folke Lemaitre
7d50bf0626
feat(prettier): prettier is now enabled for all supported filetypes and no longer requires a config file by default 2024-06-07 23:02:47 +02:00
Folke Lemaitre
0255b8fdb1
fix(prettier): use prettier to check if prettier should run on the file 2024-06-06 17:38:12 +02:00
Folke Lemaitre
e51199cffa
fix(prettier): fix prettier config detection. Closes #3497 2024-06-06 16:15:39 +02:00
Folke Lemaitre
8ceccd71e2
feat(prettier): the prettier extra now needs a prettier config file by default. See docs to change this. 2024-06-05 22:55:36 +02:00
Folke Lemaitre
57b504b9e8
fix(prettier): use prettier instead of prettierd. Too many people get truncated files. Fixes #712. See #1735 2023-10-15 22:28:56 +02:00
Folke Lemaitre
14c091b1fc feat!: make conform.nvim and nvim-lint the default formatters/linters 2023-10-12 11:48:02 +02:00
Folke Lemaitre
f1a8f24a36 feat(format): new LazyVim formatter with integrations for lsp/none-ls/conform/eslint/... 2023-10-12 11:48:02 +02:00
jyuan0
1779858426
fix(black): remove unknown blackd from conform (#1640) 2023-10-09 09:15:15 +02:00
Markis Taylor
5219cad564
feat(black): added an extra for black with none-ls & conform.nvim (#1245)
* feat(black): added an extra for black with null-ls

* fix: update to none-ls/conform
2023-10-08 22:34:06 +02:00
Folke Lemaitre
fb110e76d8
docs(conform): conform condition example 2023-10-06 23:25:24 +02:00
Folke Lemaitre
a1c5886947
feat(conform): ignore formatting errors for injected languages and fix condition example 2023-10-06 09:26:14 +02:00
Folke Lemaitre
f4750859f2
fix(conform): dont try merging function formatters. Fixes #1582 2023-10-04 14:44:24 +02:00
Folke Lemaitre
9f034ab106
fix(conform): dont try to merge formatter functions 2023-10-04 14:41:00 +02:00
Folke Lemaitre
86d3694672
feat(conform): added new keymap (leader-cF) to format injected languages 2023-10-02 20:59:00 +02:00
Folke Lemaitre
766d5e5bf7
feat(conform): set vim.opt.formatexpr 2023-10-01 23:36:26 +02:00
Folke Lemaitre
6bb0d1b66f
fix(conform): use formatters for both custom and overriding formatters 2023-09-29 15:56:20 +02:00
Folke Lemaitre
f61a243d1a
feat(extras): added conform.nvim extra you can use instead of null-ls/none-ls 2023-09-29 13:37:00 +02:00
Folke Lemaitre
a7f68e5e37
refactor(none-ls): make all null-ls usages in extras optional 2023-09-29 12:00:56 +02:00
Ahmed W
7cac6f064c
feat(null-ls)!: use none-ls instead of null-ls (#1517)
* FEATURE: use none-ls instead of null-ls

Fixes #1516

* fix(none-ls): automatically migrate null-ls to none-ls

* feat(config): show warning if user config contains renamed references

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2023-09-29 11:52:45 +02:00
Folke Lemaitre
9f30a2e03a
fix(prettier): extend ensure_installed instead of overwriting it. Fixes #406 2023-03-10 13:55:06 +01:00
Folke Lemaitre
aa8bae07ae
feat(prettierd): added an extra for prettierd with null-ls 2023-03-10 08:45:09 +01:00