feat: add nvimdots
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
return function()
|
||||
local ftdetect = {
|
||||
name = "ftdetect",
|
||||
opts = { defer = true },
|
||||
disable = function()
|
||||
vim.api.nvim_set_option_value("filetype", "bigfile", { scope = "local" })
|
||||
end,
|
||||
}
|
||||
|
||||
local cmp = {
|
||||
name = "nvim-cmp",
|
||||
opts = { defer = true },
|
||||
disable = function()
|
||||
require("cmp").setup.buffer({ enabled = false })
|
||||
end,
|
||||
}
|
||||
|
||||
require("modules.utils").load_plugin("bigfile", {
|
||||
filesize = 2, -- size of the file in MiB
|
||||
pattern = { "*" }, -- autocmd pattern
|
||||
features = { -- features to disable
|
||||
"indent_blankline",
|
||||
"lsp",
|
||||
"syntax",
|
||||
"treesitter",
|
||||
"vimopts",
|
||||
cmp,
|
||||
ftdetect,
|
||||
},
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user