mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
feat: add bigfile plugin
This commit is contained in:
17
lua/plugins/bigfile.lua
Normal file
17
lua/plugins/bigfile.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
"LunarVim/bigfile.nvim",
|
||||
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",
|
||||
"treesitter",
|
||||
"syntax",
|
||||
"matchparen",
|
||||
"vimopts",
|
||||
"filetype",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,18 +1,9 @@
|
||||
return {
|
||||
"zbirenbaum/copilot.lua",
|
||||
event = "InsertEnter",
|
||||
keys = {
|
||||
{
|
||||
"<leader>lc",
|
||||
function()
|
||||
vim.cmd("CopilotToggle")
|
||||
end,
|
||||
desc = "Toggle [C]opilot",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
panel = {
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
auto_refresh = false,
|
||||
keymap = {
|
||||
jump_prev = "[[",
|
||||
|
||||
@@ -45,14 +45,6 @@ return {
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = true,
|
||||
|
||||
disable = function(lang, buf)
|
||||
local max_filesize = 100 * 1024 -- 100 KB
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
|
||||
Reference in New Issue
Block a user