From e408a1168f45fef3698c809eed5e50116680abf2 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Fri, 24 Sep 2021 21:55:44 +0530 Subject: [PATCH] feat: update conf for gitsigns | format stuff --- lua/core/default_config.lua | 89 ++++++++++++++++---------------- lua/plugins/configs/gitsigns.lua | 2 +- 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/lua/core/default_config.lua b/lua/core/default_config.lua index 389095a..1224e8e 100644 --- a/lua/core/default_config.lua +++ b/lua/core/default_config.lua @@ -53,53 +53,53 @@ M.ui = { -- For Ex : if you have onedark set in nvchad, set onedark's bg color on your terminal transparency = false, } - + -- these are plugin related options M.plugins = { - -- enable and disable plugins (false for disable) - plugin_status = { - autosave = false, -- to autosave files - blankline = true, -- show code scope with symbols - bufferline = true, -- list open buffers up the top, easy switching too - colorizer = false, -- color RGB, HEX, CSS, NAME color codes - comment = true, -- easily (un)comment code, language aware - dashboard = false, -- NeoVim 'home screen' on open - esc_insertmode = true, -- map to with no lag - feline = true, -- statusline - gitsigns = true, -- gitsigns in statusline - lspsignature = true, -- lsp enhancements - neoformat = true, -- universal code formatter - neoscroll = false, -- smooth scroll - telescope_media = false, -- media previews within telescope finders - truezen = false, -- distraction free & minimalist UI mode - vim_fugitive = false, -- git integration & tooling - vim_matchup = false, -- % operator enhancements + -- enable and disable plugins (false for disable) + plugin_status = { + autosave = false, -- to autosave files + blankline = true, -- show code scope with symbols + bufferline = true, -- list open buffers up the top, easy switching too + colorizer = false, -- color RGB, HEX, CSS, NAME color codes + comment = true, -- easily (un)comment code, language aware + dashboard = false, -- NeoVim 'home screen' on open + esc_insertmode = true, -- map to with no lag + feline = true, -- statusline + gitsigns = true, -- gitsigns in statusline + lspsignature = true, -- lsp enhancements + neoformat = true, -- universal code formatter + neoscroll = false, -- smooth scroll + telescope_media = false, -- media previews within telescope finders + truezen = false, -- distraction free & minimalist UI mode + vim_fugitive = false, -- git integration & tooling + vim_matchup = true, -- % operator enhancements }, - options = { - lspconfig = { - servers = {} -- eg: "html" - }, - nvimtree = { - enable_git = 0 - }, - statusline = { -- statusline related options - -- these are filetypes, not pattern matched - -- shown filetypes will overrule hidden filetypes - hidden = { - "help", - "dashboard", - "NvimTree", - "terminal", + options = { + lspconfig = { + servers = {}, -- eg: "html" }, - shown = {}, - -- default, round , slant , block , arrow - style = "default", - }, - autosave = false, -- autosave on changed text or insert mode leave - -- timeout to be used for using escape with a key combination, see mappings.plugin.better_escape - esc_insertmode_timeout = 300, - }, - default_plugin_config_replace = {}, + nvimtree = { + enable_git = 0, + }, + statusline = { -- statusline related options + -- these are filetypes, not pattern matched + -- shown filetypes will overrule hidden filetypes + hidden = { + "help", + "dashboard", + "NvimTree", + "terminal", + }, + shown = {}, + -- default, round , slant , block , arrow + style = "default", + }, + autosave = false, -- autosave on changed text or insert mode leave + -- timeout to be used for using escape with a key combination, see mappings.plugin.better_escape + esc_insertmode_timeout = 300, + }, + default_plugin_config_replace = {}, } -- mappings -- don't use a single keymap twice -- @@ -129,7 +129,7 @@ M.mappings = { moveRight = "", moveUp = "", moveDown = "", - }, + }, -- terminal related mappings terminal = { -- multiple mappings can be given for esc_termmode and esc_hide_termmode @@ -211,5 +211,4 @@ M.mappings.plugins = { }, } - return M diff --git a/lua/plugins/configs/gitsigns.lua b/lua/plugins/configs/gitsigns.lua index a33a46a..f2b58f6 100644 --- a/lua/plugins/configs/gitsigns.lua +++ b/lua/plugins/configs/gitsigns.lua @@ -28,7 +28,7 @@ gitsigns.setup { }, status_formatter = nil, -- Use default - watch_index = { + watch_gitdir = { interval = 100, }, }