diff --git a/dot_config/nvim/lazy-lock.json b/dot_config/nvim/lazy-lock.json index 4955f95..5bd56a3 100644 --- a/dot_config/nvim/lazy-lock.json +++ b/dot_config/nvim/lazy-lock.json @@ -22,6 +22,7 @@ "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 e28c225..45ba169 100644 --- a/dot_config/nvim/lua/plugins/alpha.lua +++ b/dot_config/nvim/lua/plugins/alpha.lua @@ -1,12 +1,15 @@ 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.pink }) + vim.api.nvim_set_hl(0, 'DashboardHeader', { fg = frappe.lavender }) dashboard.section.header.val = { "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⡀⠒⠒⠦⣄⡀⠀⠀⠀⠀⠀⠀⠀", @@ -31,8 +34,7 @@ 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", - ":lua require'telescope'.extensions.project.project{}"), + dashboard.button("p", " Open project", ":Telescope projects"), } alpha.setup(dashboard.opts) end diff --git a/dot_config/nvim/lua/plugins/statusline.lua b/dot_config/nvim/lua/plugins/statusline.lua index 70c034d..3a01139 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", "neo-tree", } + extensions = { "mason" } } } diff --git a/dot_config/nvim/lua/plugins/telescope.lua b/dot_config/nvim/lua/plugins/telescope.lua index 54b5f36..6eb5edf 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('project') + require('telescope').load_extension('projects') 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.project.project {} 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.projects.projects {} end, desc = 'Projects', mode = 'n' }, + { 'fd', "Telescope diagnostics", desc = 'Diagnostics', mode = 'n' } }, }