mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
c3b784024a
the tildes are not transparent and are shown for example in nvimtree. you cant make them transparent, but we can remove them. no trailing whitespaces are generated.
60 lines
1.1 KiB
Lua
60 lines
1.1 KiB
Lua
--- HELPERS ---
|
|
|
|
local cmd = vim.cmd
|
|
local opt = vim.opt
|
|
|
|
--- VIM ONLY COMMANDS ---
|
|
|
|
cmd "filetype plugin on"
|
|
cmd('let &titleold="' .. TERMINAL .. '"')
|
|
cmd "set inccommand=split"
|
|
cmd "set iskeyword+=-"
|
|
|
|
if O.line_wrap_cursor_movement then
|
|
cmd "set whichwrap+=<,>,[,],h,l"
|
|
end
|
|
|
|
if O.transparent_window then
|
|
cmd "au ColorScheme * hi Normal ctermbg=none guibg=none"
|
|
cmd "au ColorScheme * hi SignColumn ctermbg=none guibg=none"
|
|
cmd "let &fcs='eob: '"
|
|
end
|
|
|
|
--- SETTINGS ---
|
|
|
|
opt.shortmess:append "c"
|
|
|
|
local disabled_built_ins = {
|
|
"netrw",
|
|
"netrwPlugin",
|
|
"netrwSettings",
|
|
"netrwFileHandlers",
|
|
"gzip",
|
|
"zip",
|
|
"zipPlugin",
|
|
"tar",
|
|
"tarPlugin", -- 'man',
|
|
"getscript",
|
|
"getscriptPlugin",
|
|
"vimball",
|
|
"vimballPlugin",
|
|
"2html_plugin",
|
|
"logipat",
|
|
"rrhelper",
|
|
"spellfile_plugin",
|
|
-- 'matchit', 'matchparen', 'shada_plugin',
|
|
}
|
|
|
|
if O.leader_key == " " or O.leader_key == "space" then
|
|
vim.g.mapleader = ' '
|
|
else
|
|
vim.g.mapleader = O.leader_key
|
|
end
|
|
|
|
for _, plugin in pairs(disabled_built_ins) do
|
|
vim.g["loaded_" .. plugin] = 1
|
|
end
|
|
|
|
for k, v in pairs(O.default_options) do
|
|
vim.opt[k] = v
|
|
end
|