Move from utils.lua to their respective places | Format all files
This commit is contained in:
parent
5236893e5e
commit
7affb8cbfb
6 changed files with 11 additions and 18 deletions
3
init.lua
3
init.lua
|
@ -1,7 +1,6 @@
|
||||||
local chad_modules = {
|
local chad_modules = {
|
||||||
"options",
|
"options",
|
||||||
"mappings",
|
"mappings"
|
||||||
"utils"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for i = 1, #chad_modules, 1 do
|
for i = 1, #chad_modules, 1 do
|
||||||
|
|
|
@ -75,7 +75,7 @@ fg("NvimTreeVertSplit", darker_black)
|
||||||
bg("NvimTreeVertSplit", darker_black)
|
bg("NvimTreeVertSplit", darker_black)
|
||||||
fg("NvimTreeEndOfBuffer", 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)
|
bg("NvimTreeNormal", darker_black)
|
||||||
fg_bg("NvimTreeStatuslineNc", darker_black, darker_black)
|
fg_bg("NvimTreeStatuslineNc", darker_black, darker_black)
|
||||||
fg_bg("NvimTreeWindowPicker", red, black2)
|
fg_bg("NvimTreeWindowPicker", red, black2)
|
||||||
|
|
|
@ -65,10 +65,10 @@ for _, plugin in pairs(disabled_built_ins) do
|
||||||
vim.g["loaded_" .. plugin] = 1
|
vim.g["loaded_" .. plugin] = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Opening a file from its last left off position
|
-- Don't show status line on vim terminals
|
||||||
--vim.cmd(
|
vim.cmd [[ au TermOpen term://* setlocal nonumber laststatus=0 ]]
|
||||||
-- [[au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif]]
|
|
||||||
--)
|
|
||||||
|
|
||||||
-- file extension specific tabbing
|
-- Open a file from its last left off position
|
||||||
-- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])
|
-- 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 ]]
|
||||||
|
|
|
@ -109,7 +109,6 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] =
|
||||||
},
|
},
|
||||||
signs = true,
|
signs = true,
|
||||||
underline = true,
|
underline = true,
|
||||||
|
|
||||||
-- set this to true if you want diagnostics to show in insert mode
|
-- set this to true if you want diagnostics to show in insert mode
|
||||||
update_in_insert = false
|
update_in_insert = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,3 +93,6 @@ g.nvim_tree_bindings = {
|
||||||
{key = "q", cb = tree_cb("close")},
|
{key = "q", cb = tree_cb("close")},
|
||||||
{key = "g?", cb = tree_cb("toggle_help")}
|
{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]]
|
||||||
|
|
|
@ -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
|
|
||||||
)
|
|
Loading…
Reference in a new issue