bigfile
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
local use_google = require("utils").use_google
|
||||
local buf_too_large = require("utils").buf_too_large
|
||||
|
||||
return {
|
||||
"sindrets/diffview.nvim",
|
||||
{ "mizlan/iswap.nvim", event = "VeryLazy" },
|
||||
--{ "mizlan/iswap.nvim", event = "VeryLazy" },
|
||||
{ "folke/todo-comments.nvim", dependencies = { "nvim-lua/plenary.nvim" }, },
|
||||
{
|
||||
"folke/flash.nvim",
|
||||
@ -79,27 +78,7 @@ return {
|
||||
vim.ui.select = require("dropbar.utils.menu").select
|
||||
end,
|
||||
},
|
||||
{
|
||||
"RRethy/vim-illuminate",
|
||||
config = function()
|
||||
local aug = vim.api.nvim_create_augroup("buf_large", { clear = true })
|
||||
vim.api.nvim_create_autocmd({ "BufReadPre" }, {
|
||||
callback = function()
|
||||
if buf_too_large() then
|
||||
vim.b.large_buf = true
|
||||
vim.cmd("syntax off")
|
||||
vim.cmd("IlluminatePauseBuf") -- disable vim-illuminate
|
||||
vim.opt_local.foldmethod = "manual"
|
||||
vim.opt_local.spell = false
|
||||
else
|
||||
vim.b.large_buf = false
|
||||
end
|
||||
end,
|
||||
group = aug,
|
||||
pattern = "*",
|
||||
})
|
||||
end,
|
||||
},
|
||||
"RRethy/vim-illuminate",
|
||||
"kdheepak/lazygit.nvim",
|
||||
"flwyd/vim-conjoin",
|
||||
"rafcamlet/nvim-luapad",
|
||||
|
14
vim/.vim/lua/plugins/bigfile.lua
Normal file
14
vim/.vim/lua/plugins/bigfile.lua
Normal file
@ -0,0 +1,14 @@
|
||||
require("bigfile").setup {
|
||||
filesize = 2, -- 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",
|
||||
},
|
||||
}
|
@ -47,9 +47,10 @@ return {
|
||||
-- return { "<C-n>.", ":Neotree toggle reveal_force_cwd<CR>", desc = "Open NeoTree CWD float" }
|
||||
return { "<C-n>m", ":Neotree float git_status<CR>", desc = "Open NeoTree CWD float" }
|
||||
end)(),
|
||||
{ "<C-n>b", ":Neotree float buffers<CR>" },
|
||||
{ "<C-n>", ":Neotree float dir=%:p:h<cr>" },
|
||||
{ "<C-n>.", ":Neotree reveal_force_cwd<CR>", desc = "Open NeoTree CWD float" },
|
||||
-- { "<C-n>b", ":Neotree float buffers<CR>" },
|
||||
-- { "<C-n>", ":Neotree float dir=%:p:h<cr>" },
|
||||
{ "<C-n>", ":Neotree toggle dir=%:p:h<cr>" },
|
||||
-- { "<C-n>.", ":Neotree reveal_force_cwd<CR>", desc = "Open NeoTree CWD float" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user