From 2765de277a8e65642c8af210f18a6550e4b8897c Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 8 Mar 2025 14:45:02 -0800 Subject: [PATCH] feat: extras.formatting.biome --- flake.nix | 1 + init.lua | 17 ++++++++++------- lua/config/options.lua | 2 ++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index e6cbe4b..b938f21 100644 --- a/flake.nix +++ b/flake.nix @@ -112,6 +112,7 @@ nil stylua alejandra + biome ]; }; diff --git a/init.lua b/init.lua index 34db018..61fe4ca 100644 --- a/init.lua +++ b/init.lua @@ -27,12 +27,6 @@ local lazyOptions = { require('nixCatsUtils.lazyCat').setup(nixCats.pawsible { 'allPlugins', 'start', 'lazy.nvim' }, { { 'LazyVim/LazyVim', import = 'lazyvim.plugins' }, - -- Disable mason.nvim while using nix. - -- Precompiled binaries do not agree with nixos, and we can just make nix - -- install this stuff for us. - { 'williamboman/mason-lspconfig.nvim', enabled = require('nixCatsUtils').lazyAdd(true, false) }, - { 'williamboman/mason.nvim', enabled = require('nixCatsUtils').lazyAdd(true, false) }, - { 'folke/lazydev.nvim', ft = 'lua', @@ -56,9 +50,18 @@ require('nixCatsUtils.lazyCat').setup(nixCats.pawsible { 'allPlugins', 'start', { import = 'lazyvim.plugins.extras.editor.neo-tree' }, { import = 'lazyvim.plugins.extras.editor.refactoring' }, + { import = 'lazyvim.plugins.extras.formatting.biome' }, + { import = 'lazyvim.plugins.extras.lang.nix' }, - -- This needs to be after extras to prevent extras from overwriting it. + -- These need to be after extras to prevent extras from overwriting them. + + -- Disable mason.nvim while using nix. + -- Precompiled binaries do not agree with nixos, and we can just make nix + -- install this stuff for us. + { 'williamboman/mason-lspconfig.nvim', enabled = require('nixCatsUtils').lazyAdd(true, false) }, + { 'williamboman/mason.nvim', enabled = require('nixCatsUtils').lazyAdd(true, false) }, + { 'nvim-treesitter/nvim-treesitter', build = require('nixCatsUtils').lazyAdd ':TSUpdate', diff --git a/lua/config/options.lua b/lua/config/options.lua index 2a97b2b..7146817 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -1,2 +1,4 @@ vim.o.textwidth = 80 vim.o.colorcolumn = '+1' + +vim.g.lazyvim_prettier_needs_config = true