huge updates

This commit is contained in:
sankalp committed 2024-08-17 21:55:33 +05:45
1 parent 1e137c92c3
commit abfa0f3e71
4 files changed
+27 -13

No files matched your search

+23 -6
View File
@@ -40,22 +40,39 @@
<br>
## Overview
## System dependencies
nvim has a easy to understand config structure that promotes personalization, so go ahead, bring your keybindings, functions and plugins over, and truly make nvim: Your Personalized Development Environment!
Important system dependencies:
- **Nerd fonts** ([information source](https://gist.github.com/matthewjberger/7dd7e079f282f8138a9dc3b045ebefa0)):
- Download a [Nerd Font](https://www.nerdfonts.com/) (good choice is "JetBrainsMono Nerd Font").
- Unzip and copy to '~/.local/share/fonts'.
- Run the command `fc-cache -fv` to manually rebuild the font cache.
- **Tools for finding stuff**:
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation)
## Installation
To install `nvim` clone the repo and setup the symlink
Delete old nvim configuration
```bash
git clone https://github.com/S4NKALP/nvim
rm -rf ~/.config/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.local/share/nvim
```
On Linux and Mac
Clone the repository to ~/.config
```bash
ln -sfnv $PWD/nvim $HOME/.config/nvim
git clone --filter=blob:none https://github.com/amanhex/nvim.git ~/.config/nvim
```
Run neovim to complete the setup
```bash
nvim
```
### 🧰 Tools Used
+1 -1
View File
@@ -1 +1 @@
{"distribution": "custom", "masonTools": ["actionlint", "bash-language-server", "biome", "black", "clang-format", "clangd", "emmet-ls", "eslint_d", "goimports-reviser", "golangci-lint", "graphql-lsp", "hadolint", "isort", "jdtls", "lua-language-server", "prettier", "prisma-language-server", "proselint", "pylint", "pylsp", "pyright", "pyright-langserver", "rubocop", "ruff-lsp", "rust-analyzer", "shellcheck", "shfmt", "solargraph", "stylua", "svelteserver", "tailwindcss-language-server", "typescript-language-server", "typos-lsp", "vim-language-server", "vint", "vscode-css-language-server", "vscode-eslint-language-server", "vscode-html-language-server", "vscode-json-language-server", "write-good"], "keymaps": [{"desc": "", "noremap": true, "lhs": "<Tab>", "mode": "n", "rhs": ":bnext<CR>"}, {"desc": "", "noremap": true, "lhs": "<Esc>", "mode": "n", "rhs": "<Cmd>nohlsearch<CR>"}, {"desc": "Buffer Local Keymaps (which-key)", "noremap": true, "lhs": "<Space>?", "mode": "n", "rhs": "<function>"}, {"desc": "Dismiss All Notifications", "noremap": true, "lhs": "<Space>un", "mode": "n", "rhs": "<function>"}, {"desc": "Float File Explorer", "noremap": true, "lhs": "<Space>ee", "mode": "n", "rhs": ":Neotree toggle float<CR>"}, {"desc": "Left File Explorer", "noremap": true, "lhs": "<Space><Tab>", "mode": "n", "rhs": ":Neotree toggle left<CR>"}, {"desc": "Toggle TS Context", "noremap": true, "lhs": "<Space>tc", "mode": "n", "rhs": "<function>"}, {"desc": "Quit Buffer", "noremap": true, "lhs": "<Space>q", "mode": "n", "rhs": "<function>"}, {"desc": "Delete Comment Style", "noremap": true, "lhs": "<Space>cd", "mode": "v", "rhs": "<function>"}, {"desc": "Delete Comment Style", "noremap": true, "lhs": "<Space>cd", "mode": "n", "rhs": "<function>"}, {"desc": "Catalog", "noremap": true, "lhs": "<Space>cc", "mode": "n", "rhs": "<function>"}, {"desc": "Marked", "noremap": true, "lhs": "<Space>cm", "mode": "v", "rhs": "<function>"}, {"desc": "Marked", "noremap": true, "lhs": "<Space>cm", "mode": "n", "rhs": "<function>"}, {"desc": "Line", "noremap": true, "lhs": "<Space>cl", "mode": "n", "rhs": "<function>"}, {"desc": "Tiled line", "noremap": true, "lhs": "<Space>ct", "mode": "v", "rhs": "<function>"}, {"desc": "Tiled line", "noremap": true, "lhs": "<Space>ct", "mode": "n", "rhs": "<function>"}, {"desc": "Comment Box", "noremap": true, "lhs": "<Space>cb", "mode": "v", "rhs": "<function>"}, {"desc": "Comment Box", "noremap": true, "lhs": "<Space>cb", "mode": "n", "rhs": "<function>"}, {"desc": "Nav", "noremap": true, "lhs": "<Space>nv", "mode": "n", "rhs": "<function>"}, {"desc": "toggle markdown preview", "noremap": true, "lhs": "<Space>mp", "mode": "n", "rhs": "<function>"}, {"desc": "Horizontal Terminal", "noremap": true, "lhs": "<Space>th", "mode": "n", "rhs": "<function>"}, {"desc": "Vertical Terminal", "noremap": true, "lhs": "<Space>tv", "mode": "n", "rhs": "<function>"}, {"desc": "Screenshot (Clipboard)", "noremap": true, "lhs": "<Space>cp", "mode": "v", "rhs": "<function>"}, {"desc": "Screenshot (Save)", "noremap": true, "lhs": "<Space>cP", "mode": "v", "rhs": "<function>"}, {"desc": "Maximize/minimize a split", "noremap": true, "lhs": "<Space>sm", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle zen mode", "noremap": true, "lhs": "<Space>zz", "mode": "n", "rhs": "<function>"}, {"desc": "Find File (CWD)", "noremap": true, "lhs": "<Space>sf", "mode": "n", "rhs": "<function>"}, {"desc": "Commands", "noremap": true, "lhs": "<Space>sC", "mode": "n", "rhs": "<function>"}, {"desc": "File Browser", "noremap": true, "lhs": "<Space>sF", "mode": "n", "rhs": "<function>"}, {"desc": "Open Recent File", "noremap": true, "lhs": "<Space>so", "mode": "n", "rhs": "<function>"}, {"desc": "Map Pages", "noremap": true, "lhs": "<Space>sM", "mode": "n", "rhs": "<function>"}, {"desc": "Find highlight groups", "noremap": true, "lhs": "<Space>sH", "mode": "n", "rhs": "<function>"}, {"desc": "Find Help", "noremap": true, "lhs": "<Space>sh", "mode": "n", "rhs": "<function>"}, {"desc": "Keymaps", "noremap": true, "lhs": "<Space>sk", "mode": "n", "rhs": "<function>"}, {"desc": "Grep String", "noremap": true, "lhs": "<Space>sw", "mode": "n", "rhs": "<function>"}, {"desc": "Live Grep", "noremap": true, "lhs": "<Space>sg", "mode": "n", "rhs": "<function>"}, {"desc": "Buffers", "noremap": true, "lhs": "<Space><Space>", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle Output Panel", "noremap": true, "lhs": "<Space>tO", "mode": "n", "rhs": "<function>"}, {"desc": "Show Output", "noremap": true, "lhs": "<Space>to", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle Summary", "noremap": true, "lhs": "<Space>ts", "mode": "n", "rhs": "<function>"}, {"desc": "Run Nearest", "noremap": true, "lhs": "<Space>tr", "mode": "n", "rhs": "<function>"}, {"desc": "Run All Test Files", "noremap": true, "lhs": "<Space>tT", "mode": "n", "rhs": "<function>"}, {"desc": "Run File", "noremap": true, "lhs": "<Space>tw", "mode": "n", "rhs": "<function>"}, {"desc": "Stop", "Line truncated
{"distribution": "custom", "masonTools": ["actionlint", "bash-language-server", "biome", "black", "clang-format", "clangd", "emmet-ls", "eslint_d", "goimports-reviser", "golangci-lint", "graphql-lsp", "hadolint", "isort", "jdtls", "lua-language-server", "prettier", "prisma-language-server", "proselint", "pylint", "pylsp", "pyright", "pyright-langserver", "rubocop", "ruff-lsp", "rust-analyzer", "shellcheck", "shfmt", "solargraph", "stylua", "svelteserver", "tailwindcss-language-server", "typescript-language-server", "typos-lsp", "vim-language-server", "vint", "vscode-css-language-server", "vscode-eslint-language-server", "vscode-html-language-server", "vscode-json-language-server", "write-good"], "keymaps": [{"desc": "", "noremap": true, "lhs": "<Tab>", "mode": "n", "rhs": ":bnext<CR>"}, {"desc": "", "noremap": true, "lhs": "<Esc>", "mode": "n", "rhs": "<Cmd>nohlsearch<CR>"}, {"desc": "Dismiss All Notifications", "noremap": true, "lhs": "<Space>un", "mode": "n", "rhs": "<function>"}, {"desc": "Buffer Local Keymaps (which-key)", "noremap": true, "lhs": "<Space>?", "mode": "n", "rhs": "<function>"}, {"desc": "Left File Explorer", "noremap": true, "lhs": "<Space><Tab>", "mode": "n", "rhs": ":Neotree toggle left<CR>"}, {"desc": "Float File Explorer", "noremap": true, "lhs": "<Space>ee", "mode": "n", "rhs": ":Neotree toggle float<CR>"}, {"desc": "Quit Buffer", "noremap": true, "lhs": "<Space>q", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle TS Context", "noremap": true, "lhs": "<Space>tc", "mode": "n", "rhs": "<function>"}, {"desc": "Live Grep", "noremap": true, "lhs": "<Space>sg", "mode": "n", "rhs": "<function>"}, {"desc": "Open Recent File", "noremap": true, "lhs": "<Space>so", "mode": "n", "rhs": "<function>"}, {"desc": "Map Pages", "noremap": true, "lhs": "<Space>sM", "mode": "n", "rhs": "<function>"}, {"desc": "Find highlight groups", "noremap": true, "lhs": "<Space>sH", "mode": "n", "rhs": "<function>"}, {"desc": "Find Help", "noremap": true, "lhs": "<Space>sh", "mode": "n", "rhs": "<function>"}, {"desc": "Find File (CWD)", "noremap": true, "lhs": "<Space>sf", "mode": "n", "rhs": "<function>"}, {"desc": "Buffers", "noremap": true, "lhs": "<Space><Space>", "mode": "n", "rhs": "<function>"}, {"desc": "File Browser", "noremap": true, "lhs": "<Space>sF", "mode": "n", "rhs": "<function>"}, {"desc": "Commands", "noremap": true, "lhs": "<Space>sC", "mode": "n", "rhs": "<function>"}, {"desc": "Keymaps", "noremap": true, "lhs": "<Space>sk", "mode": "n", "rhs": "<function>"}, {"desc": "Grep String", "noremap": true, "lhs": "<Space>sw", "mode": "n", "rhs": "<function>"}, {"desc": "LSP references/definitions/... (Trouble)", "noremap": true, "lhs": "<Space>cS", "mode": "n", "rhs": "<function>"}, {"desc": "Symbols (Trouble)", "noremap": true, "lhs": "<Space>cs", "mode": "n", "rhs": "<function>"}, {"desc": "Buffer Diagnostics (Trouble)", "noremap": true, "lhs": "<Space>xX", "mode": "n", "rhs": "<function>"}, {"desc": "Diagnostics (Trouble)", "noremap": true, "lhs": "<Space>xx", "mode": "n", "rhs": "<function>"}, {"desc": "Quickfix List (Trouble)", "noremap": true, "lhs": "<Space>xQ", "mode": "n", "rhs": "<function>"}, {"desc": "Location List (Trouble)", "noremap": true, "lhs": "<Space>xL", "mode": "n", "rhs": "<function>"}, {"desc": "Maximize/minimize a split", "noremap": true, "lhs": "<Space>sm", "mode": "n", "rhs": "<function>"}, {"desc": "Replace in Files (Spectre)", "noremap": true, "lhs": "<Space>sr", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle Undotree", "noremap": true, "lhs": "<Space>uu", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle zen mode", "noremap": true, "lhs": "<Space>zz", "mode": "n", "rhs": "<function>"}, {"desc": "Don't Save Current Session", "noremap": true, "lhs": "<Space>sd", "mode": "n", "rhs": "<function>"}, {"desc": "Restore Last Session", "noremap": true, "lhs": "<Space>sl", "mode": "n", "rhs": "<function>"}, {"desc": "Restore Session", "noremap": true, "lhs": "<Space>ss", "mode": "n", "rhs": "<function>"}, {"desc": "Stop", "noremap": true, "lhs": "<Space>tS", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle Output Panel", "noremap": true, "lhs": "<Space>tO", "mode": "n", "rhs": "<function>"}, {"desc": "Show Output", "noremap": true, "lhs": "<Space>to", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle Summary", "noremap": true, "lhs": "<Space>ts", "mode": "n", "rhs": "<function>"}, {"desc": "Run Nearest", "noremap": true, "lhs": "<Space>tr", "mode": "n", "rhs": "<function>"}, {"desc": "Run All Test Files", "noremap": true, "lhs": "<Space>tT", "mode": "n", "rhs": "<function>"}, {"desc": "Run File", "noremap": true, "lhs": "<Space>tw", "mode": "n", "rhs": "<function>"}, {"desc": "toggle markdown preview", "noremap": true, "lhs": "<Space>mp", "mode": "n", "rhs": "<function>"}, {"desc": "Horizontal Terminal", "noremap": true, "lhs": "<Space>th", "mode": "n", "rhs": "<function>"}, {"desc": "Vertical Terminal", "noremap": true, "lhs": "<Space>tv", "mode": "n", "rhs": "<functLine truncated
+2 -3
View File
@@ -16,7 +16,7 @@
"codesnap.nvim": { "branch": "main", "commit": "c2924bf6c9a2c2c03318fae9b7fe0706412b9d9c" },
"comment-box.nvim": { "branch": "main", "commit": "06bb771690bc9df0763d14769b779062d8f12bc5" },
"dotfyle-metadata.nvim": { "branch": "main", "commit": "342ef8f3f98f3ccc451c9cf2be74e95149ced05d" },
"dressing.nvim": { "branch": "master", "commit": "6741f1062d3dc6e4755367a7e9b347b553623f04" },
"dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
"eagle.nvim": { "branch": "main", "commit": "f590404f510be11ef2cf7c68e135441bfa48c9a8" },
"flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" },
"flatten.nvim": { "branch": "main", "commit": "e420e531d2ab24aebcf7b3c9fca28e6c5c34964d" },
@@ -62,7 +62,7 @@
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
"nvim-recorder": { "branch": "main", "commit": "2b307756704a0ba26e8a3adfe98d02eeaecaa52e" },
"nvim-spectre": { "branch": "master", "commit": "ba7fb777edff6c1fbbeffd343e113af64c04e90a" },
"nvim-treesitter": { "branch": "master", "commit": "59cc5f35656f97bc964229e3ec5066a7b5a8ee5b" },
"nvim-treesitter": { "branch": "master", "commit": "63e1337f1b60c84a4100ebedfb1dc80924c49122" },
"nvim-treesitter-context": { "branch": "master", "commit": "0f3332788e0bd37716fbd25f39120dcfd557c90f" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ced6375723b20616282f9f6a1018a63ae19b106a" },
"nvim-ts-autotag": { "branch": "main", "commit": "0cb76eea80e9c73b88880f0ca78fbd04c5bdcac7" },
@@ -75,7 +75,6 @@
"statuscol.nvim": { "branch": "main", "commit": "93d8bcda516fc86e11c03f9ef577bae9a72fba0e" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "a46780830b576049c675680650f773bedfa8677a" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
"telescope-media.nvim": { "branch": "main", "commit": "aa67b00b3a0811c10c9c545127020d0fed04fc7e" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "5972437de807c3bc101565175da66a1aa4f8707a" },
"termim.nvim": { "branch": "main", "commit": "58344167abb97bcef9bf720a762ea653a94e9daa" },
+1 -3
View File
@@ -44,10 +44,8 @@ return {
},
cond = vim.env.KITTY_SCROLLBACK_NVIM == nil,
opts = {
save_path = (os.getenv('HOME') .. '/Pictures/screenshots/code'),
save_path = (os.getenv('HOME') .. '/Pictures/screenshots/'),
title = 'CodeSnap.nvim',
code_font_family = 'JetBrainsMono Nerd Font',
watermark_font_family = 'JetBrainsMono Nerd Font',
watermark = '',
bg_theme = 'summer',
},