From ea0f4bf8ffade657b1d45152dbc183d4679e75c4 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Fri, 12 Jul 2024 11:18:14 -0300 Subject: Feat: PI --- lua/plugins/animation.lua | 2 +- lua/plugins/completition.lua | 2 +- lua/plugins/dap.lua | 2 +- lua/plugins/lsp.lua | 2 +- lua/plugins/lualine.lua | 2 +- lua/plugins/smooth-cursor.lua | 32 ++++++++++++++++++++++++++++++++ lua/plugins/smooth-cursor.lua.n | 32 -------------------------------- lua/plugins/snippets.lua | 2 +- lua/plugins/telescope.lua | 4 ++-- lua/plugins/test.lua | 4 ++-- lua/plugins/vimwiki.lua | 2 +- 11 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 lua/plugins/smooth-cursor.lua delete mode 100644 lua/plugins/smooth-cursor.lua.n (limited to 'lua/plugins') diff --git a/lua/plugins/animation.lua b/lua/plugins/animation.lua index 26cf364..386c761 100644 --- a/lua/plugins/animation.lua +++ b/lua/plugins/animation.lua @@ -5,7 +5,7 @@ return { }, keys = { {"aa", function () - require("alpha.animations").redraw_buffer() + require("pi.animations").redraw_buffer() end} }, } diff --git a/lua/plugins/completition.lua b/lua/plugins/completition.lua index 0037c40..7366d7a 100644 --- a/lua/plugins/completition.lua +++ b/lua/plugins/completition.lua @@ -52,6 +52,6 @@ return { }, event = "VeryLazy", config = function() - require "alpha.completition" + require "pi.completition" end, } diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index a6582a6..921c560 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -11,7 +11,7 @@ return { }, keys = { { "d", desc = "Open Debug menu" } }, config = function() - require "alpha.dap" + require "pi.dap" local ok_telescope, telescope = pcall(require, "telescope") if ok_telescope then telescope.load_extension "dap" diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index c381931..d5b7245 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -15,7 +15,7 @@ return { "WhoIsSethDaniel/mason-tool-installer.nvim", }, event = "VeryLazy", - main = "alpha.lsp", + main = "pi.lsp", opts = { mason = { enable = true, diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 8406d42..b5a4b47 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -53,7 +53,7 @@ return { return { options = { - disabled_filetypes = { 'alpha', 'dbui', 'fugitiveblame' }, + disabled_filetypes = { 'pi', 'dbui', 'fugitiveblame' }, theme = 'catppuccin', }, tabline = { diff --git a/lua/plugins/smooth-cursor.lua b/lua/plugins/smooth-cursor.lua new file mode 100644 index 0000000..bc870a5 --- /dev/null +++ b/lua/plugins/smooth-cursor.lua @@ -0,0 +1,32 @@ +return { + "gen740/SmoothCursor.nvim", + config = function() + require("smoothcursor").setup { cursor = "" } + + vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#8a9baa" }) + + local autocmd = vim.api.nvim_create_autocmd + + autocmd({ "ModeChanged" }, { + callback = function() + local current_mode = vim.fn.mode() + if current_mode == "n" then + vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#8a9baa" }) + vim.fn.sign_define("smoothcursor", { text = "" }) + elseif current_mode == "v" then + vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" }) + vim.fn.sign_define("smoothcursor", { text = "" }) + elseif current_mode == "V" then + vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" }) + vim.fn.sign_define("smoothcursor", { text = "" }) + elseif current_mode == "\22" then + vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" }) + vim.fn.sign_define("smoothcursor", { text = "" }) + elseif current_mode == "i" then + vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#668aab" }) + vim.fn.sign_define("smoothcursor", { text = "" }) + end + end, + }) + end, +} diff --git a/lua/plugins/smooth-cursor.lua.n b/lua/plugins/smooth-cursor.lua.n deleted file mode 100644 index 71fe431..0000000 --- a/lua/plugins/smooth-cursor.lua.n +++ /dev/null @@ -1,32 +0,0 @@ -return { - "gen740/SmoothCursor.nvim", - config = function() - require("smoothcursor").setup { cursor = "󰀫" } - - vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#8a9baa" }) - - local autocmd = vim.api.nvim_create_autocmd - - autocmd({ "ModeChanged" }, { - callback = function() - local current_mode = vim.fn.mode() - if current_mode == "n" then - vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#8a9baa" }) - vim.fn.sign_define("smoothcursor", { text = "󰀫" }) - elseif current_mode == "v" then - vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" }) - vim.fn.sign_define("smoothcursor", { text = "" }) - elseif current_mode == "V" then - vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" }) - vim.fn.sign_define("smoothcursor", { text = "" }) - elseif current_mode == "\22" then - vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" }) - vim.fn.sign_define("smoothcursor", { text = "" }) - elseif current_mode == "i" then - vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#668aab" }) - vim.fn.sign_define("smoothcursor", { text = "" }) - end - end, - }) - end, -} diff --git a/lua/plugins/snippets.lua b/lua/plugins/snippets.lua index 48c93b8..0a75943 100644 --- a/lua/plugins/snippets.lua +++ b/lua/plugins/snippets.lua @@ -97,7 +97,7 @@ local config = function() end ls.cleanup() - for _, ft_path in ipairs(vim.api.nvim_get_runtime_file("lua/alpha/snips/ft/*.lua", true)) do + for _, ft_path in ipairs(vim.api.nvim_get_runtime_file("lua/pi/snips/ft/*.lua", true)) do local ft = vim.fn.fnamemodify(ft_path, ":t:r") ls.add_snippets(ft, make(loadfile(ft_path)())) end diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 291f777..c34e299 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -28,8 +28,8 @@ return { }, event = "VeryLazy", config = function() - require "alpha.telescope.setup" - require "alpha.telescope.mappings" + require "pi.telescope.setup" + require "pi.telescope.mappings" require("telescope").load_extension("live_grep_args") end, } diff --git a/lua/plugins/test.lua b/lua/plugins/test.lua index 5c8c218..389eefd 100644 --- a/lua/plugins/test.lua +++ b/lua/plugins/test.lua @@ -47,8 +47,8 @@ return { end end - require "alpha.test_strategy" + require "pi.test_strategy" - require "alpha.test_menu" + require "pi.test_menu" end, } diff --git a/lua/plugins/vimwiki.lua b/lua/plugins/vimwiki.lua index b07e090..79c266f 100644 --- a/lua/plugins/vimwiki.lua +++ b/lua/plugins/vimwiki.lua @@ -4,7 +4,7 @@ return { enabled = false, init = function() vim.g.vimwiki_list = {{ - path = "/mnt/nas/alpha/wiki", + path = "/mnt/nas/pi/wiki", syntax = "markdown", ext = ".md", }} -- cgit v1.2.3