Skip to content

Commit

Permalink
Initial Baseline commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasSarve committed Dec 13, 2023
0 parents commit ba2dfc8
Show file tree
Hide file tree
Showing 12 changed files with 161 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
plugged/
3 changes: 3 additions & 0 deletions coc-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/15.0.6/clangd_15.0.6/bin/clangd"
}
18 changes: 18 additions & 0 deletions init.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
:set number
:set relativenumber
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set smarttab
:set softtabstop=4
:set mouse=a
:set clipboard+=unnamedplus

source $HOME/.config/nvim/plugins_list.vim
source $HOME/.config/nvim/plugins.vim
source $HOME/.config/nvim/theming.vim
source $HOME/.config/nvim/leader_mappings.vim
source $HOME/.config/nvim/mappings.vim
source $HOME/.config/nvim/themes/airline.vim

command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument
5 changes: 5 additions & 0 deletions leader_mappings.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
" Leader Key Mappings
let mapleader=","
nnoremap <leader>\ :vsplit<CR>

49 changes: 49 additions & 0 deletions mappings.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
" Key Mappings Nvim
nnoremap <C-f> :NERDTreeFocus<CR>
nnoremap <C-n> :bn<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-z> :undo<CR>
nnoremap <C-y> :redo<CR>
" End of line
nnoremap <C-S-Right> <End>
inoremap <C-S-Right> <End>
" Start of line
nnoremap <C-S-Left> <Home>
inoremap <C-S-Left> <Home>
" Pasting directly from clipboard
nnoremap <C-v> <C-o>"+p
" Moving line upwords
nnoremap <A-Up> :m .-2<CR>==
inoremap <A-Up> <C-o>:m .-2<CR>
nnoremap <A-k> :m .-2<CR>==
inoremap <A-k> <C-o>:m .-2<CR>
" Moving line downwards
nnoremap <A-Down> :m .+1<CR>==
inoremap <A-Down> <C-o>:m .+1<CR>
nnoremap <A-j> :m .+1<CR>==
inoremap <A-j> :m <C-o>.+1<CR>
" Refresh
nnoremap <C-r> :source ~/.config/nvim/init.vim<CR>
inoremap <C-r> :source ~/.config/nvim/init.vim<CR>
" Duplicating Current line
nnoremap <C-d> <Esc>dd2PjA<Esc>
inoremap <C-d> <Esc>dd2PjA
" Selecting All
nnoremap <C-a> <Esc>ggVG
inoremap <C-a> <Esc>ggVG
" Search Files
nnoremap <C-p> <Esc>:Telescope find_files<CR>
inoremap <C-p> <Esc>:Telescope find_files<CR>
" Switchin betweeen opened Files
nnoremap <C-Tab> <Esc>:bn<CR>
3 changes: 3 additions & 0 deletions plugins.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source $HOME/.config/nvim/plugins_config/plugins.lua
source $HOME/.config/nvim/plugins_config/coc_config.vim
source $HOME/.config/nvim/plugins_config/nerd_tree.vim
12 changes: 12 additions & 0 deletions plugins_config/coc_config.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
" use <tab> to trigger completion and navigate to the next complete item
function! CheckBackspace() abort
let col = col('.') - 2
return !col || getline('.')[col - 2] =~# '\s'
endfunction

inoremap <silent><expr> <Tab>
\ coc#pum#visible() ? coc#pum#next(2) :
\ CheckBackspace() ? "\<Tab>" :
\ coc#refresh()
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() : "\<CR>"
4 changes: 4 additions & 0 deletions plugins_config/nerd_tree.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
" Nerd Tree Config
let g:NERDTreeDirArrowExpandable=""
let g:NERDTreeDirArrowCollapsible=""
let g:airline#extensions#tabline#enabled = 1
15 changes: 15 additions & 0 deletions plugins_config/plugins.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require("mason").setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
},
border = "none",
}
})
require("mason-lspconfig").setup {
ensure_installed = { "lua_ls", "rust_analyzer" },
}

require("lspconfig").lua_ls.setup {}
25 changes: 25 additions & 0 deletions plugins_list.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
" List of All Plugins

call plug#begin('~/.config/nvim/plugged')
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'https://github.com/vim-airline/vim-airline'
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw)
Plug 'https://github.com/preservim/nerdtree' " NerdTree
Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc
Plug 'https://github.com/vim-airline/vim-airline' " Status bar
Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme
Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons
Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors
Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation
Plug 'vim-airline/vim-airline-themes'
Plug 'dart-lang/dart-vim-plugin'
Plug 'akinsho/toggleterm.nvim', {'tag' : '*'}
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'daltonmenezes/aura-theme', { 'rtp': 'packages/neovim' }
Plug 'mhartington/formatter.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.5' }
Plug 'williamboman/mason.nvim'
Plug 'williamboman/mason-lspconfig.nvim'
Plug 'neovim/nvim-lspconfig'
call plug#end()
21 changes: 21 additions & 0 deletions themes/airline.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
" enable tabline
let g:airline#extensions#tabline#enabled =1
" let g:airline#extensions#tabline#left_sep=''
" let g:airline#extensions#tabline#left_alt_sep=''
" let g:airline#extensions#tabline#right_sep=''
" let g:airline#extensions#tabline#right_alt_sep=''


" enable powerline fonts
let g:airline_powerline_fonts = 1
" let g:airline_left_sep = ''
" let g:airline_right_sep = ''

" Switch theme
let g:airline_theme = 'onedark'

" Always Show tabs
set showtabline=2

" for not showing insert/ visual / normal
set noshowmode
5 changes: 5 additions & 0 deletions theming.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
" Theming
set background=dark " or light if you want light mode
colorscheme aura-dark


0 comments on commit ba2dfc8

Please sign in to comment.