Move from utils.lua to their respective places | Format all files

This commit is contained in:
Akianonymus 2021-07-30 22:32:58 +05:30 committed by Galen Rowell
parent 5236893e5e
commit 7affb8cbfb
6 changed files with 11 additions and 18 deletions

View File

@ -1,7 +1,6 @@
local chad_modules = {
"options",
"mappings",
"utils"
"mappings"
}
for i = 1, #chad_modules, 1 do

View File

@ -75,7 +75,7 @@ fg("NvimTreeVertSplit", darker_black)
bg("NvimTreeVertSplit", darker_black)
fg("NvimTreeEndOfBuffer", darker_black)
vim.cmd("hi NvimTreeRootFolder gui=underline guifg="..purple)
vim.cmd("hi NvimTreeRootFolder gui=underline guifg=" .. purple)
bg("NvimTreeNormal", darker_black)
fg_bg("NvimTreeStatuslineNc", darker_black, darker_black)
fg_bg("NvimTreeWindowPicker", red, black2)

View File

@ -65,10 +65,10 @@ for _, plugin in pairs(disabled_built_ins) do
vim.g["loaded_" .. plugin] = 1
end
-- Opening a file from its last left off position
--vim.cmd(
-- [[au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif]]
--)
-- Don't show status line on vim terminals
vim.cmd [[ au TermOpen term://* setlocal nonumber laststatus=0 ]]
-- file extension specific tabbing
-- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])
-- Open a file from its last left off position
-- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]
-- File extension specific tabbing
-- vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]]

View File

@ -109,7 +109,6 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] =
},
signs = true,
underline = true,
-- set this to true if you want diagnostics to show in insert mode
update_in_insert = false
}

View File

@ -93,3 +93,6 @@ g.nvim_tree_bindings = {
{key = "q", cb = tree_cb("close")},
{key = "g?", cb = tree_cb("toggle_help")}
}
-- hide statusline when nvim tree is opened
vim.cmd [[au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif]]

View File

@ -1,8 +0,0 @@
-- hide line numbers , statusline in specific buffers!
vim.api.nvim_exec(
[[
au TermOpen term://* setlocal nonumber laststatus=0
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
]],
false
)