From aa3191de6adbc45abf770b368d1926e543a2f0bb Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 23 Nov 2023 15:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20netrw=20and=20games?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - lazy-lock.json | 39 +++++++++++++++++++++++++++++++++++++++ lua/core.lua | 1 + lua/lazy-plugins.lua | 27 ++++++++++++++++++++++++--- 4 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 lazy-lock.json diff --git a/.gitignore b/.gitignore index dd994f7..af0a254 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ #exclude precomplied things /plugin/* -lazy-lock.json diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..bd1a5ec --- /dev/null +++ b/lazy-lock.json @@ -0,0 +1,39 @@ +{ + "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, + "LuaSnip": { "branch": "master", "commit": "cab667e2674881001a86a7478fff7dc7791c63f5" }, + "cmp-async-path": { "branch": "main", "commit": "d8229a93d7b71f22c66ca35ac9e6c6cd850ec61d" }, + "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, + "cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" }, + "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, + "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, + "cmp-treesitter": { "branch": "master", "commit": "b8bc760dfcc624edd5454f0982b63786a822eed9" }, + "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, + "dressing.nvim": { "branch": "master", "commit": "fe3071330a0720ce3695ac915820c8134b22d1b0" }, + "friendly-snippets": { "branch": "main", "commit": "43727c2ff84240e55d4069ec3e6158d74cb534b6" }, + "gitmoji.nvim": { "branch": "main", "commit": "326ddf01cbf3425566a089126ece7e8bd2560601" }, + "gitsigns.nvim": { "branch": "main", "commit": "0ccd5fb2316b3f8d8b2f775bc31cae7bc6a77a55" }, + "gruvbox.nvim": { "branch": "main", "commit": "517b012757fbe7a4d6e507baf5cc75837e62734f" }, + "hardtime.nvim": { "branch": "main", "commit": "ddf9c8d1028ce318e8c6a0acece6bad31b6f49c5" }, + "killersheep.nvim": { "branch": "master", "commit": "506823c47b854df02e78d5fec9468ab0e542dcf5" }, + "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, + "lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "ab640b38ca9fa50d25d2d249b6606b9456b628d5" }, + "mason-null-ls.nvim": { "branch": "main", "commit": "ae0c5fa57468ac65617f1bf821ba0c3a1e251f0c" }, + "mason.nvim": { "branch": "main", "commit": "41e75af1f578e55ba050c863587cffde3556ffa6" }, + "nui.nvim": { "branch": "main", "commit": "c0c8e347ceac53030f5c1ece1c5a5b6a17a25b32" }, + "null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" }, + "nvim-autopairs": { "branch": "master", "commit": "0f04d78619cce9a5af4f355968040f7d675854a1" }, + "nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" }, + "nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" }, + "nvim-lspconfig": { "branch": "master", "commit": "553c4e0e667167640c5398573f6f3a488ff8047a" }, + "nvim-treesitter": { "branch": "master", "commit": "cd583cfb5b492c4f81edc5e1916c9f59b7b0ef16" }, + "nvim-treesitter-context": { "branch": "master", "commit": "bf4d15ee4e96ff5201f16a4ed14443670662eb90" }, + "nvim-web-devicons": { "branch": "master", "commit": "cdbcca210cf3655aa9b31ebf2422763ecd85ee5c" }, + "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, + "range-highlight.nvim": { "branch": "master", "commit": "8b5e8ccb3460b2c3675f4639b9f54e64eaab36d9" }, + "symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" }, + "telescope.nvim": { "branch": "master", "commit": "18774ec7929c8a8003a91e9e1f69f6c32258bbfe" }, + "vim-fugitive": { "branch": "master", "commit": "46eaf8918b347906789df296143117774e827616" }, + "vim-matchup": { "branch": "master", "commit": "d30b72d20f01478a8486f15a57c89fe3177373db" }, + "vim-sandwich": { "branch": "master", "commit": "c5a2cc438ce6ea2005c556dc833732aa53cae21a" } +} \ No newline at end of file diff --git a/lua/core.lua b/lua/core.lua index ef3a5af..157f908 100644 --- a/lua/core.lua +++ b/lua/core.lua @@ -9,6 +9,7 @@ o.relativenumber = true o.number = true o.showmode = false o.scrolloff = 10 +global.netrw_bufsettings = "noma nomod relativenumber nowrap ro nobl" -- controlling vim.opt.completeopt = { 'menu', 'menuone', 'noselect' } diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index 1057bb5..efddb06 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -14,6 +14,9 @@ vim.opt.rtp:prepend(lazypath) local opts = { install = { colorscheme = { "gruvbox" } + }, + dev = { + path = "~/.local/src" } } @@ -45,7 +48,8 @@ local plugins = { lazy = true, config = function() require("plugins.treesitter") - end + end, + build = ":TSUpdate" }, { "nvim-treesitter/nvim-treesitter-context", @@ -63,7 +67,6 @@ local plugins = { "hrsh7th/nvim-cmp", dependencies = { "hrsh7th/cmp-nvim-lsp", - -- TODO: check the cmp sources "hrsh7th/cmp-buffer", "hrsh7th/cmp-nvim-lua", "hrsh7th/cmp-cmdline", @@ -148,6 +151,7 @@ local plugins = { { "nvim-telescope/telescope.nvim", dependencies = { 'nvim-lua/plenary.nvim' }, + event = "CmdlineEnter", config = function() require("plugins.telescope") end @@ -177,7 +181,8 @@ local plugins = { opts = { autofold_depth = 12 } }, { - 'stevearc/dressing.nvim' + 'stevearc/dressing.nvim', + event = "UIEnter" }, { "lewis6991/gitsigns.nvim", @@ -191,6 +196,22 @@ local plugins = { virt_text_priority = 100, }, }, + }, + + -- misc and games + { + "m4xshen/hardtime.nvim", + dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, + opts = { + restriction_mode = "hint", + max_count = 4, + disable_mouse = false + }, + event = "VeryLazy" + }, + { + "seandewar/killersheep.nvim", + cmd = "KillKillKill" } }