summaryrefslogtreecommitdiff
path: root/ar/.config/NvChad/vscode
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 20:35:27 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 20:35:27 +0900
commitc80a54e42b52ce297f0f2f71af23c562832025c7 (patch)
treedcce8bb977a770f473325d48f6f70b21d9818a40 /ar/.config/NvChad/vscode
init
Diffstat (limited to 'ar/.config/NvChad/vscode')
-rw-r--r--ar/.config/NvChad/vscode/easymotion-config.vim2
-rw-r--r--ar/.config/NvChad/vscode/plugins.lua153
-rw-r--r--ar/.config/NvChad/vscode/remap.lua32
-rw-r--r--ar/.config/NvChad/vscode/settings.vim49
4 files changed, 236 insertions, 0 deletions
diff --git a/ar/.config/NvChad/vscode/easymotion-config.vim b/ar/.config/NvChad/vscode/easymotion-config.vim
new file mode 100644
index 0000000..89c1f90
--- /dev/null
+++ b/ar/.config/NvChad/vscode/easymotion-config.vim
@@ -0,0 +1,2 @@
+let g:EasyMotion_smartcase = 1
+nmap f <Plug>(easymotion-bd-f)
diff --git a/ar/.config/NvChad/vscode/plugins.lua b/ar/.config/NvChad/vscode/plugins.lua
new file mode 100644
index 0000000..920d80f
--- /dev/null
+++ b/ar/.config/NvChad/vscode/plugins.lua
@@ -0,0 +1,153 @@
+-- plugins.lua
+
+return {
+
+ -- Alpha (Dashboard)
+ {
+ "goolord/alpha-nvim",
+ lazy = true,
+ },
+
+ -- Auto Pairs
+ {
+ "windwp/nvim-autopairs",
+ },
+
+ -- Bufferline
+ {
+ "akinsho/bufferline.nvim",
+ dependencies = {
+ "nvim-tree/nvim-web-devicons",
+ },
+ },
+
+ -- Colorscheme
+ {
+ "folke/tokyonight.nvim",
+ },
+
+ -- Comments
+ {
+ "numToStr/Comment.nvim",
+ config = function()
+ require("Comment").setup()
+ end,
+ },
+
+ -- Easymotion (VScode)
+ {
+ "ChristianChiarulli/vscode-easymotion",
+ },
+
+ -- Git Integration
+ {
+ "lewis6991/gitsigns.nvim",
+ },
+
+ -- Hop (Better Navigation)
+ {
+ "phaazon/hop.nvim",
+ lazy = true,
+ },
+
+ -- Indentation Highlighting
+ {
+ "lukas-reineke/indent-blankline.nvim",
+ },
+
+ -- Rainbow Highlighting
+ {
+ "HiPhish/nvim-ts-rainbow2",
+ },
+
+ -- Lualine
+ {
+ "nvim-lualine/lualine.nvim",
+ dependencies = {
+ "nvim-tree/nvim-web-devicons",
+ },
+ },
+
+ -- Language Support
+ {
+ "VonHeikemen/lsp-zero.nvim",
+ lazy = true,
+ branch = "v1.x",
+ dependencies = {
+ -- LSP Support
+ { "neovim/nvim-lspconfig" }, -- Required
+ { "williamboman/mason.nvim" }, -- Optional
+ { "williamboman/mason-lspconfig.nvim" }, -- Optional
+
+ -- Autocompletion
+ { "hrsh7th/nvim-cmp" }, -- Required
+ { "hrsh7th/cmp-nvim-lsp" }, -- Required
+ { "hrsh7th/cmp-buffer" }, -- Optional
+ { "hrsh7th/cmp-path" }, -- Optional
+ { "saadparwaiz1/cmp_luasnip" }, -- Optional
+ { "hrsh7th/cmp-nvim-lua" }, -- Optional
+
+ -- Snippets
+ { "L3MON4D3/LuaSnip" }, -- Required
+ { "rafamadriz/friendly-snippets" }, -- Optional
+ },
+ },
+
+ -- Nvim-tree (File Explorer)
+ {
+ "nvim-tree/nvim-tree.lua",
+ lazy = true,
+ dependencies = {
+ "nvim-tree/nvim-web-devicons",
+ },
+ },
+
+ -- Nvim-Surround (Manipulating Surroundings)
+ {
+ "kylechui/nvim-surround",
+ config = function()
+ require("nvim-surround").setup {
+ -- Configuration here, or leave empty to use defaults
+ }
+ end,
+ },
+
+ -- -- Quick-Scope
+ -- {
+ -- "unblevable/quick-scope",
+ -- },
+
+ -- Telescope (Fuzzy Finder)
+ {
+ "nvim-telescope/telescope.nvim",
+ lazy = true,
+ dependencies = {
+ { "nvim-lua/plenary.nvim" },
+ },
+ },
+
+ -- Treesitter
+ {
+ "nvim-treesitter/nvim-treesitter",
+ },
+
+ -- Toggle Term
+ {
+ "akinsho/toggleterm.nvim",
+ config = true,
+ },
+
+ -- Undo-Tree
+ {
+ "jiaoshijie/undotree",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ },
+ },
+
+ -- Which-key
+ {
+ "folke/which-key.nvim",
+ lazy = true,
+ },
+}
diff --git a/ar/.config/NvChad/vscode/remap.lua b/ar/.config/NvChad/vscode/remap.lua
new file mode 100644
index 0000000..e0b47c4
--- /dev/null
+++ b/ar/.config/NvChad/vscode/remap.lua
@@ -0,0 +1,32 @@
+vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
+
+vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
+vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
+
+vim.keymap.set("n", "J", "mzJ`z")
+vim.keymap.set("n", "<C-d>", "<C-d>zz")
+vim.keymap.set("n", "<C-u>", "<C-u>zz")
+vim.keymap.set("n", "n", "nzzzv")
+vim.keymap.set("n", "N", "Nzzzv")
+
+-- greatest remap ever
+vim.keymap.set("x", "<leader>p", [["_dP]])
+
+-- next greatest remap ever : asbjornHaland
+vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]])
+vim.keymap.set("n", "<leader>Y", [["+Y]])
+
+vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]])
+
+-- This is going to get me cancelled
+vim.keymap.set("i", "jk", "<Esc>")
+
+vim.keymap.set("n", "Q", "<nop>")
+
+vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
+vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
+vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
+vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
+
+vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
+vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
diff --git a/ar/.config/NvChad/vscode/settings.vim b/ar/.config/NvChad/vscode/settings.vim
new file mode 100644
index 0000000..c48a73c
--- /dev/null
+++ b/ar/.config/NvChad/vscode/settings.vim
@@ -0,0 +1,49 @@
+function! s:closeOtherEditors()
+ call VSCodeNotify('workbench.action.closeEditorsInOtherGroups')
+ call VSCodeNotify('workbench.action.closeOtherEditors')
+endfunction
+
+function! s:manageEditorSize(...)
+ let count = a:1
+ let to = a:2
+ for i in range(1, count ? count : 1)
+ call VSCodeNotify(to == 'increase' ? 'workbench.action.increaseViewSize' : 'workbench.action.decreaseViewSize')
+ endfor
+endfunction
+
+command! -bang Only if <q-bang> == '!' | call <SID>closeOtherEditors() | else | call VSCodeNotify('workbench.action.joinAllGroups') | endif
+
+nnoremap <silent> <C-a>= :<C-u>call VSCodeNotify('workbench.action.evenEditorWidths')<CR>
+xnoremap <silent> <C-a>= :<C-u>call VSCodeNotify('workbench.action.evenEditorWidths')<CR>
+nnoremap <silent> <C-x>_ :<C-u>call VSCodeNotify('workbench.action.toggleEditorWidths')<CR>
+xnoremap <silent> <C-x>_ :<C-u>call VSCodeNotify('workbench.action.toggleEditorWidths')<CR>
+
+" nnoremap <silent> <C-w>> :<C-u>call <SID>manageEditorSize(v:count, 'increase')<CR>
+" xnoremap <silent> <C-w>> :<C-u>call <SID>manageEditorSize(v:count, 'increase')<CR>
+" nnoremap <silent> <C-w>+ :<C-u>call <SID>manageEditorSize(v:count, 'increase')<CR>
+" xnoremap <silent> <C-w>+ :<C-u>call <SID>manageEditorSize(v:count, 'increase')<CR>
+" nnoremap <silent> <C-w>< :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR>
+" xnoremap <silent> <C-w>< :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR>
+" nnoremap <silent> <C-w>- :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR>
+" xnoremap <silent> <C-w>- :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR>
+
+" Better Navigation
+nnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR>
+xnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR>
+nnoremap <silent> <C-k> :call VSCodeNotify('workbench.action.navigateUp')<CR>
+xnoremap <silent> <C-k> :call VSCodeNotify('workbench.action.navigateUp')<CR>
+nnoremap <silent> <C-h> :call VSCodeNotify('workbench.action.navigateLeft')<CR>
+xnoremap <silent> <C-h> :call VSCodeNotify('workbench.action.navigateLeft')<CR>
+nnoremap <silent> <C-l> :call VSCodeNotify('workbench.action.navigateRight')<CR>
+xnoremap <silent> <C-l> :call VSCodeNotify('workbench.action.navigateRight')<CR>
+
+" Bind C-/ to vscode commentary since calling from vscode produces double comments due to multiple cursors
+xnoremap <silent> <C-/> :call Comment()<CR>
+nnoremap <silent> <C-/> :call Comment()<CR>
+
+nnoremap <silent> <C-w>_ :<C-u>call VSCodeNotify('workbench.action.toggleEditorWidths')<CR>
+
+nnoremap <silent> <Space> :call VSCodeNotify('whichkey.show')<CR>
+xnoremap <silent> <Space> :call VSCodeNotify('whichkey.show')<CR>
+
+" nnoremap <silent> <C-n> :call VSCodeNotify('workbench.view.explorer')<CR> \ No newline at end of file