From 26e76a065ba1f719b5e73dc5f51b8b02c490ebec Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Thu, 21 May 2026 00:39:55 +0200 Subject: [PATCH] stylua --- lua/config/gitsigns.lua | 96 ++++++++++++++++++++--------------------- lua/mappings.lua | 2 + lua/plugins/init.lua | 2 +- 3 files changed, 51 insertions(+), 49 deletions(-) diff --git a/lua/config/gitsigns.lua b/lua/config/gitsigns.lua index 2fa6d03..9585021 100644 --- a/lua/config/gitsigns.lua +++ b/lua/config/gitsigns.lua @@ -1,49 +1,49 @@ -require('gitsigns').setup { - signs = { - add = { text = '┃' }, - change = { text = '┃' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - untracked = { text = '┆' }, - }, - signs_staged = { - add = { text = '┃' }, - change = { text = '┃' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - untracked = { text = '┆' }, - }, - signs_staged_enable = true, - signcolumn = true, - numhl = false, - linehl = false, - word_diff = false, - watch_gitdir = { - follow_files = true - }, - auto_attach = true, - attach_to_untracked = false, - current_line_blame = false, - current_line_blame_opts = { - virt_text = true, - virt_text_pos = 'eol', - delay = 1000, - ignore_whitespace = false, - virt_text_priority = 100, - use_focus = true, - }, - current_line_blame_formatter = ', - ', - blame_formatter = nil, - sign_priority = 6, - update_debounce = 100, - status_formatter = nil, - max_file_length = 40000, - preview_config = { - style = 'minimal', - relative = 'cursor', - row = 0, - col = 1 - }, +require("gitsigns").setup { + signs = { + add = { text = "┃" }, + change = { text = "┃" }, + delete = { text = "_" }, + topdelete = { text = "‾" }, + changedelete = { text = "~" }, + untracked = { text = "┆" }, + }, + signs_staged = { + add = { text = "┃" }, + change = { text = "┃" }, + delete = { text = "_" }, + topdelete = { text = "‾" }, + changedelete = { text = "~" }, + untracked = { text = "┆" }, + }, + signs_staged_enable = true, + signcolumn = true, + numhl = false, + linehl = false, + word_diff = false, + watch_gitdir = { + follow_files = true, + }, + auto_attach = true, + attach_to_untracked = false, + current_line_blame = false, + current_line_blame_opts = { + virt_text = true, + virt_text_pos = "eol", + delay = 1000, + ignore_whitespace = false, + virt_text_priority = 100, + use_focus = true, + }, + current_line_blame_formatter = ", - ", + blame_formatter = nil, + sign_priority = 6, + update_debounce = 100, + status_formatter = nil, + max_file_length = 40000, + preview_config = { + style = "minimal", + relative = "cursor", + row = 0, + col = 1, + }, } diff --git a/lua/mappings.lua b/lua/mappings.lua index bc071e3..49fb698 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -12,6 +12,8 @@ map( default_opts ) +map("n", "fn", "Telescope find_files") + map({ "n", "v" }, "ap", require("actions-preview").code_actions) map("n", "", "BufferLineCycleNext") diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 7ce5715..73d5d02 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,7 +1,7 @@ return { { "lewis6991/gitsigns.nvim", - config = function () + config = function() require "gitsigns" end, },