🚀 perf(nvim): changes on loading and mappings
This commit is contained in:
parent
011c3a9359
commit
4f2221debc
4 changed files with 26 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
|||
return {
|
||||
"LunarVim/bigfile.nvim",
|
||||
event = "BufRead",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
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>
|
||||
features = { -- features to disable
|
||||
"indent_blankline",
|
||||
"illuminate",
|
||||
-- "lsp",
|
||||
"lsp",
|
||||
"treesitter",
|
||||
"syntax",
|
||||
"vimopts",
|
||||
"matchparen",
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
return {
|
||||
{
|
||||
"monaqa/dial.nvim",
|
||||
config = true,
|
||||
event = "VeryLazy",
|
||||
-- splutylua: ignore
|
||||
keys = {
|
||||
{
|
||||
"<C-a>",
|
||||
|
@ -20,5 +21,18 @@ return {
|
|||
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,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -10,6 +10,13 @@ return {
|
|||
vim.keymap.set("i", "<M-c>", function()
|
||||
return vim.fn["codeium#Clear"]()
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
return {
|
||||
{
|
||||
"nacro90/numb.nvim",
|
||||
event = "BufRead",
|
||||
event = "CmdlineEnter",
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue