🚀 perf(nvim): changes on loading and mappings

This commit is contained in:
Sergio Laín 2023-10-19 13:24:12 +02:00
parent 011c3a9359
commit 4f2221debc
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 26 additions and 4 deletions

View file

@ -1,13 +1,14 @@
return { return {
"LunarVim/bigfile.nvim", "LunarVim/bigfile.nvim",
event = "BufRead", event = "VeryLazy",
opts = { opts = {
filesize = 1, -- size of the file in MiB, the plugin round file sizes to the closest MiB filesize = 1, -- size of the file in MiB, the plugin round file sizes to the closest MiB
pattern = { "*" }, -- autocmd pattern or function see <### Overriding the detection of big files> pattern = { "*" }, -- autocmd pattern or function see <### Overriding the detection of big files>
features = { -- features to disable features = { -- features to disable
"indent_blankline", "indent_blankline",
"illuminate", "illuminate",
-- "lsp", "lsp",
"treesitter",
"syntax", "syntax",
"vimopts", "vimopts",
"matchparen", "matchparen",

View file

@ -1,7 +1,8 @@
return { return {
{ {
"monaqa/dial.nvim", "monaqa/dial.nvim",
config = true, event = "VeryLazy",
-- splutylua: ignore
keys = { keys = {
{ {
"<C-a>", "<C-a>",
@ -20,5 +21,18 @@ return {
desc = "Decrement", desc = "Decrement",
}, },
}, },
config = function()
local augend = require("dial.augend")
require("dial.config").augends:register_group({
default = {
augend.integer.alias.decimal,
augend.integer.alias.hex,
augend.date.alias["%Y/%m/%d"],
augend.constant.alias.bool,
augend.constant.new({ elements = { "let", "const" } }),
augend.semver.alias.semver,
},
})
end,
}, },
} }

View file

@ -10,6 +10,13 @@ return {
vim.keymap.set("i", "<M-c>", function() vim.keymap.set("i", "<M-c>", function()
return vim.fn["codeium#Clear"]() return vim.fn["codeium#Clear"]()
end, { expr = true }) end, { expr = true })
vim.keymap.set("n", "<leader>ci", function()
if vim.g.codeium_enabled == true then
vim.cmd("CodeiumDisable")
else
vim.cmd("CodeiumEnable")
end
end, { noremap = true, desc = "Toggle Codeium" })
end, end,
}, },
} }

View file

@ -1,7 +1,7 @@
return { return {
{ {
"nacro90/numb.nvim", "nacro90/numb.nvim",
event = "BufRead", event = "CmdlineEnter",
opts = {}, opts = {},
}, },
} }