From c6118d854da62bdc2b1be3af7a01b4089da757fb Mon Sep 17 00:00:00 2001 From: Ariel Date: Tue, 5 Mar 2024 19:20:29 +0800 Subject: [PATCH] Update init.lua --- init.lua | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index cbd53f8..c76a2d4 100644 --- a/init.lua +++ b/init.lua @@ -262,9 +262,56 @@ local plugins = { { "lukas-reineke/indent-blankline.nvim", main = "ibl", opts = {} }, { 'arielherself/vim-cursorword' }, { 'm-demare/hlargs.nvim' }, - { 'chentoast/marks.nvim' } + { 'chentoast/marks.nvim' }, + { + "sontungexpt/sttusline", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + event = { "BufEnter" }, + config = function(_, opts) + require("sttusline").setup { + -- statusline_color = "#000000", + statusline_color = "StatusLine", + + -- | 1 | 2 | 3 + -- recommended: 3 + laststatus = 3, + disabled = { + filetypes = { + -- "NvimTree", + -- "lazy", + }, + buftypes = { + -- "terminal", + }, + }, + components = { + "mode", + "filename", + "git-branch", + "git-diff", + "%=", + "diagnostics", + "lsps-formatters", + "copilot", + "indent", + "encoding", + "pos-cursor", + "pos-cursor-progress", + }, + } + end, + }, + { 'gaborvecsei/usage-tracker.nvim' }, + { 'wakatime/vim-wakatime', lazy = false }, + { + 'smoka7/hop.nvim', + version = "*", + opts = {}, + } } -local opts = { +local opts = { } require("lazy").setup(plugins, opts) @@ -460,6 +507,7 @@ vim.keymap.set('v', "", "dkPV`]") vim.keymap.set('n', '5', '+5') vim.keymap.set('n', '4', '-5') vim.keymap.set('n', '', 'Legendary', {noremap=true}) +vim.keymap.set('n', 'h', 'HopWord') require("nvim-treesitter.configs").setup { incremental_selection = { enable = true, @@ -622,3 +670,13 @@ require("ibl").setup { require('hlargs').setup() require('marks').setup() + +require('usage-tracker').setup({ + keep_eventlog_days = 31, + cleanup_freq_days = 7, + event_wait_period_in_sec = 5, + inactivity_threshold_in_min = 5, + inactivity_check_freq_in_sec = 5, + verbose = 0, + telemetry_endpoint = "" -- you'll need to start the restapi for this feature +})