A readme explaining how to make neovim work fast
able to restart lsp with cz
5 files changed, +20 -8
+5-5lazy-lock.json
| @@ -1,12 +1,11 @@ | ||
| 1 | 1 | { |
| 2 | - "CopilotChat.nvim": { "branch": "main", "commit": "f0e9b6cdeabdc7e05c4b9a462ed252cc0b5fb159" }, | |
| 2 | + "CopilotChat.nvim": { "branch": "main", "commit": "75653259442a8eb895abfc70d7064e07aeb7134c" }, | |
| 3 | 3 | "LazyVim": { "branch": "main", "commit": "3f034d0a7f58031123300309f2efd3bb0356ee21" }, |
| 4 | 4 | "LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" }, |
| 5 | 5 | "SchemaStore.nvim": { "branch": "main", "commit": "ad028f85ec81d58fc5e128c705b8d0f1365898a4" }, |
| 6 | 6 | "Toggleterm": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" }, |
| 7 | 7 | "alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" }, |
| 8 | - "auto-session": { "branch": "main", "commit": "9725cdd4dc96746ff1e1a8e59c7244852ca886df" }, | |
| 9 | - "blink-cmp-copilot": { "branch": "main", "commit": "439cff78780c033aa23cf061d7315314b347e3c1" }, | |
| 8 | + "auto-session": { "branch": "main", "commit": "7a61d31770bffcf0e31a40781314699b6e66c7ab" }, | |
| 10 | 9 | "blink.cmp": { "branch": "main", "commit": "cb5e346d9e0efa7a3eee7fd4da0b690c48d2a98e" }, |
| 11 | 10 | "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, |
| 12 | 11 | "catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" }, |
| @@ -32,16 +31,17 @@ | ||
| 32 | 31 | "multicursors.nvim": { "branch": "main", "commit": "72225ea9e4443c3f4b9df91d0193e07c4ee8d382" }, |
| 33 | 32 | "neo-tree.nvim": { "branch": "main", "commit": "1ef260eb4f54515fe121a2267b477efb054d108a" }, |
| 34 | 33 | "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" }, |
| 35 | - "nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" }, | |
| 34 | + "nui.nvim": { "branch": "main", "commit": "8d5b0b568517935d3c84f257f272ef004d9f5a59" }, | |
| 36 | 35 | "nvim-lint": { "branch": "master", "commit": "d698d3b6fd7b1b85657d05a2a31d843ddb682c63" }, |
| 37 | 36 | "nvim-lspconfig": { "branch": "master", "commit": "5af60bbb835d5b6efdc64cdff2a5b27cde4120de" }, |
| 37 | + "nvim-tree.lua": { "branch": "master", "commit": "be5b788f2dc1522c73fb7afad9092331c8aebe80" }, | |
| 38 | 38 | "nvim-treesitter": { "branch": "master", "commit": "684eeac91ed8e297685a97ef70031d19ac1de25a" }, |
| 39 | 39 | "nvim-treesitter-textobjects": { "branch": "master", "commit": "205e3369bc83d8cb83f7409c36120e24611f8c5c" }, |
| 40 | 40 | "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, |
| 41 | 41 | "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" }, |
| 42 | 42 | "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, |
| 43 | 43 | "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, |
| 44 | - "render-markdown.nvim": { "branch": "main", "commit": "2d2b30f9fd487e8754a87563f7e8d6485a12493a" }, | |
| 44 | + "render-markdown.nvim": { "branch": "main", "commit": "642222acbab66d56727ac0f38d9432649a479ed4" }, | |
| 45 | 45 | "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, |
| 46 | 46 | "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, |
| 47 | 47 | "telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" }, |
+6-3lua/config/keymaps/init.lua
| @@ -15,7 +15,7 @@ vim.keymap.set("n", "<leader>ch", function() | ||
| 15 | 15 | end, { desc = "Toggle Markdown Conceal" }) |
| 16 | 16 | |
| 17 | 17 | -- Toggle inlay hints |
| 18 | -vim.keymap.set({ "n", "i", "v", "x", "t" }, "<M-i>", function() | |
| 18 | +vim.keymap.set({ "n" }, "<leader>ci", function() | |
| 19 | 19 | vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) |
| 20 | 20 | if vim.lsp.inlay_hint.is_enabled() then |
| 21 | 21 | vim.notify("Enabled inlay hint") |
| @@ -29,5 +29,8 @@ vim.keymap.set("n", "<leader>cu", function() | ||
| 29 | 29 | vim.cmd(":%s/\r//g") |
| 30 | 30 | end, { desc = "Remove carriage return" }) |
| 31 | 31 | |
| 32 | --- Go to normal mode | |
| 33 | -vim.keymap.set("i", ";;", "<Esc>", { desc = "Go to normal`" }) | |
| 32 | +-- restart lsp | |
| 33 | +vim.keymap.set("n", "<leader>cz", function() | |
| 34 | + vim.notify("Running LspRestart") | |
| 35 | + vim.cmd("LspRestart") | |
| 36 | +end) |
+1-0lua/plugins/neotree.lua
| @@ -2,6 +2,7 @@ return { | ||
| 2 | 2 | { |
| 3 | 3 | -- https://github.com/nvim-neo-tree/neo-tree.nvim/wiki/Recipes#open-with-system-viewer |
| 4 | 4 | "nvim-neo-tree/neo-tree.nvim", |
| 5 | + -- enabled = false, | |
| 5 | 6 | opts = { |
| 6 | 7 | filesystem = { |
| 7 | 8 | hijack_netrw_behavior = "disabled", |
+7-0lua/plugins/nvim-tree.lua
| @@ -0,0 +1,7 @@ | ||
| 1 | +return { | |
| 2 | + "nvim-tree/nvim-tree.lua", | |
| 3 | + enabled = false, | |
| 4 | + config = function() | |
| 5 | + require("nvim-tree").setup() | |
| 6 | + end, | |
| 7 | +} |
+1-0tmux.conf
| @@ -62,6 +62,7 @@ set -g @plugin 'sainnhe/tmux-fzf' | ||
| 62 | 62 | set -g @plugin 'imomaliev/tmux-keyboard-layout' |
| 63 | 63 | set -g @plugin 'joshmedeski/tmux-nerd-font-window-name' |
| 64 | 64 | set -g @plugin 'huncholane/tmux-fzf-keys' |
| 65 | +set -g @plugin 'huncholane/tmux-env-menu' | |
| 65 | 66 | |
| 66 | 67 | |
| 67 | 68 | # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) |