This commit is contained in:
RingOfStorms (Joshua Bell) 2023-12-01 14:53:16 -06:00
parent ff3be5a3db
commit eb6300a3d0
5 changed files with 15 additions and 137 deletions

View file

@ -265,7 +265,7 @@ return {
sources = {
{
name = "copilot",
priority = 8,
priority = 9,
keyword_length = 1,
filter = function(keyword)
-- Check if keyword length is some number and not just whitespace
@ -275,7 +275,7 @@ return {
return true
end,
},
{ name = "nvim_lsp", priority = 9 },
{ name = "nvim_lsp", priority = 8 },
{ nane = "buffer", priority = 7 },
{ name = "luasnip", priority = 6 },
{ name = "path" },

View file

@ -1,30 +0,0 @@
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("", "<f1>", toggle_profile)
end,
}