65 lines
1.3 KiB
VimL
65 lines
1.3 KiB
VimL
" Nerdtree
|
||
|
||
noremap <leader>nt :NERDTreeToggle<CR>
|
||
noremap <leader>nf :NERDTreeFind<CR>
|
||
|
||
let g:NERDTreeDirArrowExpandable = '▸'
|
||
let g:NERDTreeDirArrowCollapsible = '▾'
|
||
|
||
let g:NERDTreeMiniamlUI = 1
|
||
let g:NERDTreeDirArrows = 1
|
||
|
||
" Nerdtree git plugin symbols
|
||
let g:NERDTreeGitStatusIndicatorMapCustom = {
|
||
\ "Modified" : "ᵐ",
|
||
\ "Staged" : "ˢ",
|
||
\ "Untracked" : "ᵘ",
|
||
\ "Renamed" : "ʳ",
|
||
\ "Unmerged" : "ᶴ",
|
||
\ "Deleted" : "ˣ",
|
||
\ "Dirty" : "˜",
|
||
\ "Clean" : "ᵅ",
|
||
\ "Unknown" : "?"
|
||
\ }
|
||
|
||
" NeoFormat
|
||
let g:neoformat_try_node_exe = 1
|
||
let g:neoformat_only_msg_on_error = 1
|
||
let g:neoformat_enabled_markdown = ["denofmt"]
|
||
aug fmt
|
||
au!
|
||
au BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry
|
||
aug END
|
||
|
||
" GitGutter
|
||
let g:gitgutter_sign_priority = 1
|
||
let g:gitgutter_set_sign_backgrounds = 0
|
||
let g:gitgutter_map_keys = 0
|
||
|
||
nnoremap <leader>ghp :GitGutterPreviewHunk<CR>
|
||
|
||
" TreeSitter
|
||
lua << EOF
|
||
require'nvim-treesitter.configs'.setup {
|
||
-- A list of parser names, or "all"
|
||
ensure_installed = {
|
||
"typescript",
|
||
"tsx",
|
||
"rust",
|
||
"haskell",
|
||
"json",
|
||
"yaml",
|
||
},
|
||
|
||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||
sync_install = false,
|
||
|
||
highlight = {
|
||
enable = true,
|
||
},
|
||
|
||
indent = {
|
||
enable = true,
|
||
},
|
||
}
|
||
EOF
|