Skip to content

Commit

Permalink
feat: add codeium to lua plugin and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
andostronaut committed Jul 16, 2024
1 parent 07741cd commit 77bf026
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ local default_plugins = {
local git_blame = require "gitblame"

git_blame.is_blame_text_available() -- Returns a boolean value indicating whether blame message is available
git_blame.get_current_blame_text() -- Returns a string with blame message
git_blame.get_current_blame_text() -- Returns a string with blame message
end,
},

Expand Down Expand Up @@ -348,12 +348,12 @@ local default_plugins = {
{
"numToStr/Comment.nvim",
keys = {
{ "gcc", mode = "n", desc = "Comment toggle current line" },
{ "gc", mode = { "n", "o" }, desc = "Comment toggle linewise" },
{ "gc", mode = "x", desc = "Comment toggle linewise (visual)" },
{ "gbc", mode = "n", desc = "Comment toggle current block" },
{ "gb", mode = { "n", "o" }, desc = "Comment toggle blockwise" },
{ "gb", mode = "x", desc = "Comment toggle blockwise (visual)" },
{ "gcc", mode = "n", desc = "Comment toggle current line" },
{ "gc", mode = { "n", "o" }, desc = "Comment toggle linewise" },
{ "gc", mode = "x", desc = "Comment toggle linewise (visual)" },
{ "gbc", mode = "n", desc = "Comment toggle current block" },
{ "gb", mode = { "n", "o" }, desc = "Comment toggle blockwise" },
{ "gb", mode = "x", desc = "Comment toggle blockwise (visual)" },
},
init = function()
require("core.utils").load_mappings "comment"
Expand Down Expand Up @@ -428,7 +428,7 @@ local default_plugins = {

local keymap = vim.keymap

keymap.set("n", "<leader>wr", "<cmd>SessionRestore<CR>", { desc = "Restore session for cwd" }) -- restore last workspace session for current directory
keymap.set("n", "<leader>wr", "<cmd>SessionRestore<CR>", { desc = "Restore session for cwd" }) -- restore last workspace session for current directory
keymap.set("n", "<leader>ws", "<cmd>SessionSave<CR>", { desc = "Save session for auto session root dir" }) -- save workspace session for current working directory
end,
},
Expand All @@ -452,11 +452,11 @@ local default_plugins = {
},
},
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
},
config = function(self, opts)
Expand All @@ -465,6 +465,18 @@ local default_plugins = {
vim.notify = require("noice").notify
end,
},

-- codeium
{
"Exafunction/codeium.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
config = function()
require("codeium").setup({})
end
},
}

local config = require("core.utils").load_config()
Expand Down

0 comments on commit 77bf026

Please sign in to comment.