From cf2aaf7578b64358f9baad2524b56d11d22e148c Mon Sep 17 00:00:00 2001 From: tristan Date: Fri, 9 May 2025 15:42:41 +0100 Subject: [PATCH] framework: eslint auto format --- lib/nixvim.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/nixvim.nix b/lib/nixvim.nix index 0b02f97..303dd45 100644 --- a/lib/nixvim.nix +++ b/lib/nixvim.nix @@ -51,17 +51,14 @@ in { highlight_command = { require("actions-preview.highlight").delta("${pkgs.delta}/bin/delta --no-gitconfig --side-by-side"), }, - telescope = { + telescope = { sorting_strategy = "ascending", - layout_strategy = "vertical", + layout_strategy = "horizontal", layout_config = { - width = 0.8, + width = 0.9, height = 0.9, prompt_position = "top", preview_cutoff = 20, - preview_height = function(_, _, max_lines) - return max_lines - 10 - end, }, }, } @@ -240,6 +237,13 @@ in { vim.lsp.buf.format({async = false}) ''; } + { + event = "BufWritePre"; + pattern = "*.ts"; + callback = luaFunc '' + vim.lsp.buf.format({async = false}) + ''; + } ]; plugins = {