From 0fa1ad19a8ebdc1b811e7b14090b1c30332e359f Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 15 Aug 2024 17:24:03 +0200 Subject: [PATCH] Update .config/nvim/lazy-lock.json Update .config/nvim/lua/plugins/alpha.lua Update .config/nvim/lua/plugins/statusline.lua Update .config/nvim/lua/plugins/telescope.lua --- dot_config/nvim/lazy-lock.json | 9 +++++---- dot_config/nvim/lua/plugins/alpha.lua | 8 +++----- dot_config/nvim/lua/plugins/statusline.lua | 2 +- dot_config/nvim/lua/plugins/telescope.lua | 14 +++++++------- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/dot_config/nvim/lazy-lock.json b/dot_config/nvim/lazy-lock.json index e83c926..4955f95 100644 --- a/dot_config/nvim/lazy-lock.json +++ b/dot_config/nvim/lazy-lock.json @@ -9,18 +9,19 @@ "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, + "indent-blankline.nvim": { "branch": "master", "commit": "dddb5d21811c319eb6e51a993d8fb44b193aae3f" }, "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "f2acd4a21db1ca0a12559e7a9f7cdace3bdbfb09" }, + "lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "3ed90180e70a6a50cd37ce7ecc3693bcdaa7b290" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" }, "nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" }, "nvim-autopairs": { "branch": "master", "commit": "48ca9aaee733911424646cb1605f27bc01dedbe3" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, - "nvim-lspconfig": { "branch": "master", "commit": "ad32182cc4a03c8826a64e9ced68046c575fdb7d" }, - "nvim-treesitter": { "branch": "master", "commit": "3de418e73d5b912096229aaeea8bb7aef5094e0d" }, + "nvim-lspconfig": { "branch": "master", "commit": "037ea0901ce9a28cfcaa36302618f06d2e164fbf" }, + "nvim-treesitter": { "branch": "master", "commit": "bfb50de9cb0673a3bff620d881f690fb7e0d1328" }, "nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, - "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, "telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" }, "telescope.nvim": { "branch": "master", "commit": "54930e1abfc94409e1bb9266e752ef8379008592" }, "vim-snippets": { "branch": "master", "commit": "f0a3184d9f90b96b044d5914625a25c554d7f301" }, diff --git a/dot_config/nvim/lua/plugins/alpha.lua b/dot_config/nvim/lua/plugins/alpha.lua index 45ba169..e28c225 100644 --- a/dot_config/nvim/lua/plugins/alpha.lua +++ b/dot_config/nvim/lua/plugins/alpha.lua @@ -1,15 +1,12 @@ return { 'goolord/alpha-nvim', - dependencies = { - "nvim-telescope/telescope.nvim" - }, config = function() local alpha = require 'alpha' local dashboard = require 'alpha.themes.dashboard' local frappe = require("catppuccin.palettes").get_palette "frappe" - vim.api.nvim_set_hl(0, 'DashboardHeader', { fg = frappe.lavender }) + vim.api.nvim_set_hl(0, 'DashboardHeader', { fg = frappe.pink }) dashboard.section.header.val = { "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⡀⠒⠒⠦⣄⡀⠀⠀⠀⠀⠀⠀⠀", @@ -34,7 +31,8 @@ return { dashboard.section.buttons.val = { dashboard.button("e", " New file", ":ene startinsert "), dashboard.button("f", "󰈞 Find file", ":Telescope find_files "), - dashboard.button("p", " Open project", ":Telescope projects"), + dashboard.button("p", " Open project", + ":lua require'telescope'.extensions.project.project{}"), } alpha.setup(dashboard.opts) end diff --git a/dot_config/nvim/lua/plugins/statusline.lua b/dot_config/nvim/lua/plugins/statusline.lua index 3a01139..70c034d 100644 --- a/dot_config/nvim/lua/plugins/statusline.lua +++ b/dot_config/nvim/lua/plugins/statusline.lua @@ -2,6 +2,6 @@ return { 'nvim-lualine/lualine.nvim', dependencies = { 'nvim-tree/nvim-web-devicons' }, opts = { - extensions = { "mason" } + extensions = { "mason", "neo-tree", } } } diff --git a/dot_config/nvim/lua/plugins/telescope.lua b/dot_config/nvim/lua/plugins/telescope.lua index 6eb5edf..54b5f36 100644 --- a/dot_config/nvim/lua/plugins/telescope.lua +++ b/dot_config/nvim/lua/plugins/telescope.lua @@ -8,14 +8,14 @@ return { }, opts = {}, -- define config options here, or use a config() function config = function() - require('telescope').load_extension('projects') + require('telescope').load_extension('project') end, keys = { - { 'ff', function() require 'telescope.builtin'.find_files() end, desc = 'Find files', mode = 'n' }, - { 'fg', function() require('telescope.builtin').live_grep() end, desc = 'Live grep', mode = 'n' }, - { 'fb', function() require('telescope.builtin').buffers() end, desc = 'Buffers', mode = 'n' }, - { 'fh', function() require('telescope.builtin').help_tags() end, desc = 'Help tags', mode = 'n' }, - { 'fp', function() require('telescope').extensions.projects.projects {} end, desc = 'Projects', mode = 'n' }, - { 'fd', "Telescope diagnostics", desc = 'Diagnostics', mode = 'n' } + { 'ff', function() require 'telescope.builtin'.find_files() end, desc = 'Find files', mode = 'n' }, + { 'fg', function() require('telescope.builtin').live_grep() end, desc = 'Live grep', mode = 'n' }, + { 'fb', function() require('telescope.builtin').buffers() end, desc = 'Buffers', mode = 'n' }, + { 'fh', function() require('telescope.builtin').help_tags() end, desc = 'Help tags', mode = 'n' }, + { 'fp', function() require('telescope').extensions.project.project {} end, desc = 'Projects', mode = 'n' }, + { 'fd', "Telescope diagnostics", desc = 'Diagnostics', mode = 'n' } }, }