From 8bb6abc6d44981e98288f3d749ae5c82040d98db Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 26 Dec 2024 17:21:27 +0200 Subject: Finally added a formatter and LSP for nix --- .config/nvim/lua/custom/plugins/conform.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.config/nvim/lua/custom/plugins') diff --git a/.config/nvim/lua/custom/plugins/conform.lua b/.config/nvim/lua/custom/plugins/conform.lua index 30d7588..84a2385 100644 --- a/.config/nvim/lua/custom/plugins/conform.lua +++ b/.config/nvim/lua/custom/plugins/conform.lua @@ -3,10 +3,10 @@ return { event = { 'BufWritePre' }, cmd = { 'ConformInfo' }, keys = { - { 'ft', 'FormatToggle', desc = '[F]ormat [T]oggle Globally' }, + { 'ft', 'FormatToggle', desc = '[F]ormat [T]oggle Globally' }, { 'fT', 'FormatToggle!', desc = '[F]ormat [T]oggle Locally' }, - { 'ff', 'Format', desc = '[F]ormat [F]ile' }, - { 'f', 'Format', desc = '[F]ormat', mode = 'v' }, + { 'ff', 'Format', desc = '[F]ormat [F]ile' }, + { 'f', 'Format', desc = '[F]ormat', mode = 'v' }, }, ---@module "conform" ---@type conform.setupOpts @@ -24,6 +24,8 @@ return { ['css'] = { 'prettierd', 'prettier', stop_after_first = true }, ['javascript'] = { 'prettierd', 'prettier', stop_after_first = true }, ['typescript'] = { 'prettierd', 'prettier', stop_after_first = true }, + -- ['nix'] = { 'nixfmt' }, + -- ['nix'] = { 'alejandra' }, }, format_on_save = function(bufnr) -- Disable with a global or buffer local variable -- cgit v1.3.1