2021-07-02 11:47:36 +02:00
|
|
|
-- plugins made by @Pocco81 =)
|
|
|
|
|
2021-06-26 04:22:48 +02:00
|
|
|
local M = {}
|
2021-04-22 15:27:36 +02:00
|
|
|
|
2021-06-26 04:22:48 +02:00
|
|
|
M.config = function()
|
|
|
|
local true_zen = require("true-zen")
|
|
|
|
|
2021-07-05 15:01:50 +02:00
|
|
|
true_zen.setup({
|
|
|
|
misc = {
|
|
|
|
on_off_commands = false,
|
|
|
|
ui_elements_commands = false,
|
2021-06-26 04:22:48 +02:00
|
|
|
cursor_by_mode = false,
|
|
|
|
before_minimalist_mode_shown = true,
|
|
|
|
before_minimalist_mode_hidden = true,
|
|
|
|
after_minimalist_mode_shown = true,
|
|
|
|
after_minimalist_mode_hidden = true,
|
2021-07-05 15:01:50 +02:00
|
|
|
},
|
|
|
|
ui = {
|
2021-06-26 04:22:48 +02:00
|
|
|
bottom = {
|
2021-07-05 15:01:50 +02:00
|
|
|
laststatus = 0,
|
|
|
|
ruler = false,
|
|
|
|
showmode = false,
|
|
|
|
showcmd = false,
|
|
|
|
cmdheight = 1,
|
2021-06-26 04:22:48 +02:00
|
|
|
},
|
|
|
|
top = {
|
2021-07-05 15:01:50 +02:00
|
|
|
showtabline = 0,
|
2021-06-26 04:22:48 +02:00
|
|
|
},
|
|
|
|
left = {
|
2021-07-05 15:01:50 +02:00
|
|
|
number = false,
|
|
|
|
relativenumber = false,
|
|
|
|
signcolumn = "no",
|
2021-06-26 04:22:48 +02:00
|
|
|
},
|
2021-07-05 15:01:50 +02:00
|
|
|
},
|
|
|
|
modes = {
|
2021-06-26 04:22:48 +02:00
|
|
|
ataraxis = {
|
2021-07-05 15:01:50 +02:00
|
|
|
left_padding = 37,
|
|
|
|
right_padding = 37,
|
|
|
|
top_padding = 2,
|
|
|
|
bottom_padding = 2,
|
|
|
|
just_do_it_for_me = false,
|
|
|
|
ideal_writing_area_width = 0,
|
|
|
|
keep_default_fold_fillchars = true,
|
|
|
|
custome_bg = "#1e222a",
|
2021-06-26 04:22:48 +02:00
|
|
|
},
|
2021-07-05 15:01:50 +02:00
|
|
|
focus = {
|
|
|
|
margin_of_error = 5,
|
|
|
|
focus_method = "experimental"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
integrations = {
|
|
|
|
galaxyline = true,
|
|
|
|
nvim_bufferline = true,
|
|
|
|
}
|
|
|
|
})
|
2021-06-26 04:22:48 +02:00
|
|
|
end
|
|
|
|
|
2021-07-02 11:47:36 +02:00
|
|
|
-- autosave.nvim plugin disabled by default
|
|
|
|
M.autoSave = function()
|
|
|
|
local autosave = require("autosave")
|
|
|
|
|
|
|
|
autosave.setup(
|
|
|
|
{
|
|
|
|
enabled = vim.g.auto_save, -- takes boolean value from init.lua
|
|
|
|
execution_message = "autosaved at : " .. vim.fn.strftime("%H:%M:%S"),
|
|
|
|
events = {"InsertLeave", "TextChanged"},
|
|
|
|
conditions = {
|
|
|
|
exists = true,
|
|
|
|
filetype_is_not = {},
|
|
|
|
modifiable = true
|
|
|
|
},
|
|
|
|
write_all_buffers = true,
|
|
|
|
on_off_commands = true,
|
|
|
|
clean_command_line_interval = 2500
|
|
|
|
}
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2021-06-26 04:22:48 +02:00
|
|
|
return M
|