Better splits and other crap

This commit is contained in:
2025-10-02 19:33:41 +00:00
parent 4400a1e685
commit 6abb9e7d00

View File

@@ -8,6 +8,9 @@ set ts=4 sw=4
"gets rid of --INSERT-- useful bc of lighline" "gets rid of --INSERT-- useful bc of lighline"
set noshowmode set noshowmode
set mouse=a set mouse=a
"splits"
set splitright
set splitbelow
call plug#begin() call plug#begin()
"file explorer" "file explorer"
@@ -27,9 +30,10 @@ call plug#end()
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 let $NVIM_TUI_ENABLE_TRUE_COLOR=1
" Start NERDTree. If a file is specified, move the cursor to its window. " Start NERDTree fullscreen if no file specified, otherwise open in split
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | execute 'NERDTree' | only | endif
autocmd VimEnter * if argc() > 0 || exists("s:std_in") | NERDTree | wincmd p | endif
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
nnoremap <leader>n :NERDTreeFocus<CR> nnoremap <leader>n :NERDTreeFocus<CR>
@@ -38,15 +42,15 @@ let g:NERDTreeGitStatusWithFlags = 1
"let g:WebDevIconsUnicodeDecorateFolderNodes = 1 "let g:WebDevIconsUnicodeDecorateFolderNodes = 1
"let g:NERDTreeGitStatusNodeColorization = 1 "let g:NERDTreeGitStatusNodeColorization = 1
"let g:NERDTreeColorMapCustom = { "let g:NERDTreeColorMapCustom = {
"\ "Staged" : "#0ee375", "\ "Staged" : "#0ee375",
"\ "Modified" : "#d9bf91", "\ "Modified" : "#d9bf91",
"\ "Renamed" : "#51C9FC", "\ "Renamed" : "#51C9FC",
"\ "Untracked" : "#FCE77C", "\ "Untracked" : "#FCE77C",
"\ "Unmerged" : "#FC51E6", "\ "Unmerged" : "#FC51E6",
"\ "Dirty" : "#FFBD61", "\ "Dirty" : "#FFBD61",
"\ "Clean" : "#87939A", "\ "Clean" : "#87939A",
"\ "Ignored" : "#808080" "\ "Ignored" : "#808080"
"\ } "\ }
let g:NERDTreeIgnore = ['^node_modules$'] let g:NERDTreeIgnore = ['^node_modules$']
@@ -62,7 +66,7 @@ lua << EOF
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
-- Install parsers for languages you use -- Install parsers for languages you use
ensure_installed = { "c", "cpp", "python", "lua", "vim", "go", "html", "css", "javascript"}, ensure_installed = { "c", "cpp", "python", "lua", "vim", "go", "html", "css", "javascript"},
-- Install all maintained parsers -- Install all maintained parsers
-- ensure_installed = "all", -- ensure_installed = "all",
@@ -71,12 +75,12 @@ require'nvim-treesitter.configs'.setup {
enable = true, enable = true,
additional_vim_regex_highlighting = false, additional_vim_regex_highlighting = false,
}, },
-- Indentation based on treesitter (experimental) -- Indentation based on treesitter (experimental)
indent = { indent = {
enable = true enable = true
}, },
-- Incremental selection based on the syntax tree -- Incremental selection based on the syntax tree
incremental_selection = { incremental_selection = {
enable = true, enable = true,
@@ -90,4 +94,4 @@ require'nvim-treesitter.configs'.setup {
} }
require('Comment').setup() require('Comment').setup()
EOF EOF