-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ba2dfc8
Showing
12 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
plugged/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
" Leader Key Mappings | ||
let mapleader="," | ||
nnoremap <leader>\ :vsplit<CR> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|