From b98b1e0835afd28c8db1ebcb4974aeae0e0b2db2 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Tue, 28 Nov 2023 19:00:28 -0600 Subject: [PATCH] updates --- cspell.json | 2 +- lua/plugins/lualine.lua | 2 +- lua/plugins_disabled/profile.lua | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 lua/plugins_disabled/profile.lua diff --git a/cspell.json b/cspell.json index aedc33e..6c87113 100644 --- a/cspell.json +++ b/cspell.json @@ -1 +1 @@ -{"words":["nvim","builtins","stylua","rustfmt","pendo","tanstack","ripgrep","Typeahead","overscan","autorun","mediatype","BIOINF","Transitioner","pkce","ilike","arrayify","arrayified","komodo","wezterm","gcloud","pbpaste","Hasher","semvers","upserted","dtos","Yeatts","Mahon","Beaubier","Taussing","chakra","langchain","openai","getattr","llms","docstore","kwargs","svgr","healthcheck","venv","virtualenv","ringofstorms","nestjs","oneshot","templating","tiktoken","pydantic","NCCN","clsx","reactflow","Convo","DSAB","pgvector","postprocess","stylelua","sqlx","genemichaels","williamboman","substr","findfile","Hammerspoon","eventtap","OSTYPE","sccache","binstall","elif","autofocus","colours","Resizer","esac","pannable","zoomable","elkjs","Arrayible","Falsey","xyflow","leftnav","topnav","nodrag","nowheel","janky","draghandle","Sandboxed","Dismissable"],"language":"en","flagWords":[],"version":"0.2"} +{"words":["nvim","builtins","stylua","rustfmt","pendo","tanstack","ripgrep","Typeahead","overscan","autorun","mediatype","BIOINF","Transitioner","pkce","ilike","arrayify","arrayified","komodo","wezterm","gcloud","pbpaste","Hasher","semvers","upserted","dtos","Yeatts","Mahon","Beaubier","Taussing","chakra","langchain","openai","getattr","llms","docstore","kwargs","svgr","healthcheck","venv","virtualenv","ringofstorms","nestjs","oneshot","templating","tiktoken","pydantic","NCCN","clsx","reactflow","Convo","DSAB","pgvector","postprocess","stylelua","sqlx","genemichaels","williamboman","substr","findfile","Hammerspoon","eventtap","OSTYPE","sccache","binstall","elif","autofocus","colours","Resizer","esac","pannable","zoomable","elkjs","Arrayible","Falsey","xyflow","leftnav","topnav","nodrag","nowheel","janky","draghandle","Sandboxed","Dismissable","dashdraw"],"version":"0.2","language":"en","flagWords":[]} diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 7e0b324..3bc08cc 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -43,7 +43,7 @@ return { lualine_z = { "location" }, }, refresh = { - statusline = 200, + -- statusline = 200, }, winbar = { lualine_a = { diff --git a/lua/plugins_disabled/profile.lua b/lua/plugins_disabled/profile.lua new file mode 100644 index 0000000..ad49b38 --- /dev/null +++ b/lua/plugins_disabled/profile.lua @@ -0,0 +1,30 @@ +return { + "stevearc/profile.nvim", + config = function() + local should_profile = os.getenv("NVIM_PROFILE") + if should_profile then + require("profile").instrument_autocmds() + if should_profile:lower():match("^start") then + require("profile").start("*") + else + require("profile").instrument("*") + end + end + + local function toggle_profile() + local prof = require("profile") + if prof.is_recording() then + prof.stop() + vim.ui.input({ prompt = "Save profile to:", completion = "file", default = "profile.json" }, function(filename) + if filename then + prof.export(filename) + vim.notify(string.format("Wrote %s", filename)) + end + end) + else + prof.start("*") + end + end + vim.keymap.set("", "", toggle_profile) + end, +}