reduce some LOC
This commit is contained in:
parent
4990b23935
commit
2ee1ada911
7 changed files with 10 additions and 53 deletions
|
|
@ -14,11 +14,9 @@ M.ui = {
|
|||
-- hl = highlights
|
||||
hl_add = {},
|
||||
hl_override = {},
|
||||
|
||||
changed_themes = {},
|
||||
theme_toggle = { "onedark", "one_light" },
|
||||
theme = "onedark", -- default theme
|
||||
|
||||
transparency = false,
|
||||
|
||||
-- cmp themeing
|
||||
|
|
|
|||
|
|
@ -49,13 +49,7 @@ opt.whichwrap:append "<>[]hl"
|
|||
|
||||
g.mapleader = " "
|
||||
|
||||
local default_providers = {
|
||||
"node",
|
||||
"perl",
|
||||
"python3",
|
||||
"ruby",
|
||||
}
|
||||
|
||||
for _, provider in ipairs(default_providers) do
|
||||
-- disable some default providers
|
||||
for _, provider in ipairs { "node", "perl", "python3", "ruby" } do
|
||||
vim.g["loaded_" .. provider .. "_provider"] = 0
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ local merge_tb = vim.tbl_deep_extend
|
|||
|
||||
M.load_config = function()
|
||||
local config = require "core.default_config"
|
||||
|
||||
local chadrc_path = vim.api.nvim_get_runtime_file("lua/custom/chadrc.lua", false)[1]
|
||||
|
||||
if chadrc_path then
|
||||
|
|
@ -57,6 +56,7 @@ M.load_mappings = function(section, mapping_opt)
|
|||
if section_values.plugin then
|
||||
return
|
||||
end
|
||||
|
||||
section_values.plugin = nil
|
||||
|
||||
for mode, mode_values in pairs(section_values) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue