diff --git a/nvim/init.vim b/nvim/init.vim index c9b0737..c493e7e 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -123,13 +123,17 @@ colorscheme aura-soft-dark " - Core Key Bindings - "" Map Leader to spacebar let mapleader=" " + "" Shortcut to save nnoremap s :w + "" Shortcut to close buffer nnoremap w :bd + "" Moving current lines up/down nnoremap k :execute 'move -1-'. v:count1 nnoremap j :execute 'move +'. v:count1 + "" Buffers Next/Previous nnoremap :bnext nnoremap :bprev @@ -139,6 +143,7 @@ nnoremap :bprev nmap "" Toggle let g:toggle_map = '' + "" Tree lua require'nvim-tree'.setup {} let g:nvim_tree_icons = { @@ -165,8 +170,10 @@ let g:nvim_tree_icons = { \ } \ } nnoremap :NvimTreeToggle + "" Lint let b:ale_fixers = ['prettier', 'eslint'] + "" Telescope nnoremap ff Telescope find_files nnoremap fb Telescope buffers @@ -175,6 +182,7 @@ nnoremap fr Telescope registers nnoremap fo Telescope oldfiles nnoremap fg Telescope live_grep nnoremap / Telescope current_buffer_fuzzy_find + " Bufferline lua << EOF require("bufferline").setup { @@ -184,15 +192,19 @@ lua << EOF } } EOF + " Floating Terminal nnoremap ` :FloatermToggle + " Async Run (:AsyncRun) let g:asyncrun_open=1 nnoremap a :AsyncRun -mode=term -pos=floaterm nnoremap ga :AsyncRun -mode=term -pos=floaterm git add -p nnoremap gc :AsyncRun -mode=term -pos=floaterm git commit -m "" + " Comment italics highlight Comment cterm=italic gui=italic + " LSP Zero lua << EOF require'lspconfig'.pyright.setup{} @@ -201,6 +213,7 @@ lua << EOF lsp.preset('recommended') lsp.setup() EOF + " vim-test let test#strategy = "floaterm" nmap t :TestNearest @@ -208,11 +221,13 @@ nmap T :TestFile nmap ts :TestSuite nmap tl :TestLast nmap tv :TestVisit + " which-key nmap ? :WhichKey lua << EOF require("which-key").setup {} EOF + "" vim-startify let g:startify_custom_header = [ \ 'Gaiety | 2022',