From c5d996a2b734febb77d893aaabc022244c7db58b Mon Sep 17 00:00:00 2001 From: Hendrik Date: Wed, 26 Feb 2025 16:21:34 +0100 Subject: [PATCH] updates --- lazy-lock.json | 34 ++++++++++++------------- lua/plugins/disabled.lua | 23 +++++++++++++++++ lua/plugins/example.lua | 35 -------------------------- lua/plugins/fzf.lua | 10 ++++++++ lua/plugins/nvim_lsp.lua | 10 ++++++++ lua/plugins/telescope.lua | 52 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 112 insertions(+), 52 deletions(-) create mode 100644 lua/plugins/disabled.lua create mode 100644 lua/plugins/fzf.lua create mode 100644 lua/plugins/nvim_lsp.lua create mode 100644 lua/plugins/telescope.lua diff --git a/lazy-lock.json b/lazy-lock.json index 5f106bd..14c28d5 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,46 +1,46 @@ { - "LazyVim": { "branch": "main", "commit": "2bea40c447b72e54ffb2d5cddc98d7798990796f" }, + "LazyVim": { "branch": "main", "commit": "eb8ddea8c9438c34e71db097eb77a44185dd1093" }, "LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" }, - "accent.vim": { "branch": "master", "commit": "5d1be3c49ea81e6223da09f603bbbcfed3a856c1" }, + "accent.vim": { "branch": "master", "commit": "54e0b255cb2c93555014197c8adc59d631c25696" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, - "catppuccin": { "branch": "main", "commit": "f67b886d65a029f12ffa298701fb8f1efd89295d" }, + "catppuccin": { "branch": "main", "commit": "4965db2d6155c25db4e8417465fc2703fdf4c2b7" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, "conform.nvim": { "branch": "master", "commit": "363243c03102a531a8203311d4f2ae704c620d9b" }, - "flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" }, + "flash.nvim": { "branch": "main", "commit": "f899265876ecdcf7352dbc9f0adf87068cedefbb" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, - "fzf-lua": { "branch": "main", "commit": "d26acfea8d2b873a6c5f66e8d0168871e5be3945" }, - "gitsigns.nvim": { "branch": "main", "commit": "c6fedfd0b1715ee624384b134becec0a7b0a3d28" }, - "grug-far.nvim": { "branch": "main", "commit": "59e744e21069fa382c898913e77d576fe9132214" }, + "fzf-lua": { "branch": "main", "commit": "e3fefd97875827e47dc4bbf1074ee464b2d8e6a8" }, + "gitsigns.nvim": { "branch": "main", "commit": "9b36d497495436c135659902054ee637e0ba6021" }, + "grug-far.nvim": { "branch": "main", "commit": "3a8690461afac34c0e5bacb0f7b4bc3066aab665" }, "gruvbox.nvim": { "branch": "main", "commit": "68c3460a5d1d1a362318960035c9f3466d5011f5" }, "lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" }, "lazydev.nvim": { "branch": "main", "commit": "a1b78b2ac6f978c72e76ea90ae92a94edf380cfc" }, "lazygit.nvim": { "branch": "main", "commit": "77a0d42943d8265271e6e6beaed72da54eeb17e7" }, "lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "e942edf5c85b6a2ab74059ea566cac5b3e1514a4" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "f75e877f5266e87523eb5a18fcde2081820d087b" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, - "mini.ai": { "branch": "main", "commit": "ebb04799794a7f94628153991e6334c3304961b8" }, - "mini.icons": { "branch": "main", "commit": "910db5df9724d65371182948f921fce23c2c881e" }, - "mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" }, + "mini.ai": { "branch": "main", "commit": "640418aafb5a6e830eade483cdc2d4f0cd0e3f1a" }, + "mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" }, + "mini.pairs": { "branch": "main", "commit": "1a3e73649c0eaef2f6c48ce1e761c6f0a7c11918" }, "neo-tree.nvim": { "branch": "main", "commit": "6a4f0a830f2322f187bce6f18a9e6b5b7ba188e3" }, - "noice.nvim": { "branch": "main", "commit": "eaed6cc9c06aa2013b5255349e4f26a6b17ab70f" }, + "noice.nvim": { "branch": "main", "commit": "e3c68a4d2275a01268a52e2931bfccfbfb693d15" }, "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" }, "nvim-cmp": { "branch": "main", "commit": "12509903a5723a876abd65953109f926f4634c30" }, "nvim-lint": { "branch": "master", "commit": "789b7ada1b4f00e08d026dffde410dcfa6a0ba87" }, - "nvim-lspconfig": { "branch": "master", "commit": "9962e25a23f0e992116b99a9a6400947d5a7177b" }, - "nvim-treesitter": { "branch": "master", "commit": "13f4346876f394973ff676670304a2b734174538" }, + "nvim-lspconfig": { "branch": "master", "commit": "f98fa715acc975c2dd5fb5ba7ceddeb1cc725ad2" }, + "nvim-treesitter": { "branch": "master", "commit": "4e701776f8824fc188a6254f57d080971ce28c92" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" }, "nvim-ts-autotag": { "branch": "main", "commit": "1cca23c9da708047922d3895a71032bc0449c52d" }, - "nvim-web-devicons": { "branch": "master", "commit": "1c9136332840edee0c593f2f4f89598c8ed97f5f" }, + "nvim-web-devicons": { "branch": "master", "commit": "402377242b04be3f4f0f3720bd952df86e946c30" }, "oil.nvim": { "branch": "master", "commit": "add50252b5e9147c0a09d36480d418c7e2737472" }, "persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" }, "plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" }, - "snacks.nvim": { "branch": "main", "commit": "2f396b341dc1a072643eb402bfaa8a73f6be19a1" }, + "snacks.nvim": { "branch": "main", "commit": "adf93a32ae79b7279e48608fa0705545fc7a36ae" }, "telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" }, "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, - "tokyonight.nvim": { "branch": "main", "commit": "8cb8b1aded4087712030ef3e840ad6468fbc7b0f" }, + "tokyonight.nvim": { "branch": "main", "commit": "dca4adba7dc5f09302a00b0e76078d54d82d2658" }, "trouble.nvim": { "branch": "main", "commit": "6f380b8826fb819c752c8fd7daaee9ef96d4c689" }, "ts-comments.nvim": { "branch": "main", "commit": "872dcfa0418f4a33b7437fb4d9f4e89f2f000d74" }, "which-key.nvim": { "branch": "main", "commit": "0e76a87ac51772569aec678dc74baa8e2a86100c" } diff --git a/lua/plugins/disabled.lua b/lua/plugins/disabled.lua new file mode 100644 index 0000000..626f869 --- /dev/null +++ b/lua/plugins/disabled.lua @@ -0,0 +1,23 @@ +return { + { + "neovim/nvim-lspconfig", + inlay_hints = { + enabled = false, + exclude = { "vue" }, -- filetypes for which you don't want to enable inlay hints + }, + }, + { + "echasnovski/mini.pairs", + enabled = false, + }, + { + "ibhagwan/fzf-lua", + enabled = false, + }, + { + "snacks.nvim", + opts = { + indent = { enabled = false }, + }, + }, +} diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 8bac0c5..3ac24a4 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -1,7 +1,6 @@ -- since this is just an example spec, don't actually load anything here and return an empty spec -- stylua: ignore return { - { "stevearc/conform.nvim", opts ={ @@ -21,41 +20,7 @@ return { dependencies = { 'nvim-tree/nvim-web-devicons' }, config = function() require('oil').setup {} - vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) end, }, - { - "nvim-telescope/telescope.nvim", - keys = { - -- add a keymap to browse plugin files - -- stylua: ignore - { - "fp", - function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end, - desc = "Find Plugin File", - }, - { - "sf", - function() - require("telescope.builtin").find_files() - end, - desc = "Find Files", - }, - { - "sg", - function() - require("telescope.builtin").live_grep() - end, - desc = "Live Grep", - }, - { - "", - function() - require("telescope.builtin").buffers() - end, - desc = "Buffers", - }, - }, - }, } diff --git a/lua/plugins/fzf.lua b/lua/plugins/fzf.lua new file mode 100644 index 0000000..a6cbd3c --- /dev/null +++ b/lua/plugins/fzf.lua @@ -0,0 +1,10 @@ +return { + { + "ibhagwan/fzf-lua", + opts = { + files = { + fd_opts = "--hidden --exclude .git --exclude node_modules --exclude dist --exclude Client/dist --exclude build --exclude vendor", + }, + }, + }, +} diff --git a/lua/plugins/nvim_lsp.lua b/lua/plugins/nvim_lsp.lua new file mode 100644 index 0000000..0ab3966 --- /dev/null +++ b/lua/plugins/nvim_lsp.lua @@ -0,0 +1,10 @@ +-- LSP keymaps +return { + { + "neovim/nvim-lspconfig", + opts = function() + local keys = require("lazyvim.plugins.lsp.keymaps").get() + keys[#keys + 1] = { "gd", false } + end, + }, +} diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..b499d20 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,52 @@ +return { + { + "nvim-telescope/telescope.nvim", + keys = { + { "/", false }, + -- add a keymap to browse plugin files + -- stylua: ignore + { + "fp", + function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end, + desc = "Find Plugin File", + }, + { + "sf", + function() + require("telescope.builtin").find_files() + end, + desc = "Find Files", + }, + { + "sg", + function() + require("telescope.builtin").live_grep() + end, + desc = "Live Grep", + }, + { + "sd", + function() + require("telescope.builtin").diagnostics() + end, + desc = "Live Grep", + }, + { + "gd", + function() + require("telescope.builtin").lsp_definitions({ include_declaration = false }) + end, + desc = "Goto Definition", + noremap = true, + silent = true, + }, + { + "", + function() + require("telescope.builtin").buffers() + end, + desc = "Buffers", + }, + }, + }, +}