aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2024-08-22 09:33:40 -0300
committerElvis Claros Castro <elvis@claros.ar>2024-08-22 09:33:40 -0300
commit59ab00e081d92db8760d65f3146f4156a962d5e4 (patch)
treea376f5dcf4692c8a26356c937e0a9347e090a436
parent56758415b40197ff1e7dab653ab24af58727aa4e (diff)
downloadnvim-conf-59ab00e081d92db8760d65f3146f4156a962d5e4.tar.gz
nvim-conf-59ab00e081d92db8760d65f3146f4156a962d5e4.zip
Feat: add codeium and icons cmp
-rw-r--r--lazy-lock.json36
-rw-r--r--lua/pi/completition/init.lua89
-rw-r--r--lua/plugins/codeium.lua11
-rw-r--r--lua/plugins/completition.lua18
-rw-r--r--lua/plugins/nvim-html-css.lua9
5 files changed, 90 insertions, 73 deletions
diff --git a/lazy-lock.json b/lazy-lock.json
index c37b9e8..0d8b6d0 100644
--- a/lazy-lock.json
+++ b/lazy-lock.json
@@ -1,7 +1,7 @@
{
"CodeGPT.nvim": { "branch": "master", "commit": "6333509027c8dd66b646e0f70c0ea6b2c283abae" },
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
- "CopilotChat.nvim": { "branch": "canary", "commit": "4b9ca95bbc737a94e8be582716a04e827911b9b6" },
+ "CopilotChat.nvim": { "branch": "canary", "commit": "1a92bb6d69b35bbfe32a57f81dc4f254abb56352" },
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
"LuaSnip": { "branch": "master", "commit": "500981ff6cefc7343e3959ef0f939bd0bfd49ba9" },
"NeoColumn.nvim": { "branch": "main", "commit": "db7695c7c70fcacd290712deef659bca464634ee" },
@@ -9,7 +9,7 @@
"animation.nvim": { "branch": "main", "commit": "fb77091ab72ec9971aee0562e7081182527aaa6a" },
"baleia.nvim": { "branch": "main", "commit": "1b25eac3ac03659c3d3af75c7455e179e5f197f7" },
"buffer_manager.nvim": { "branch": "main", "commit": "fd36131b2b3e0f03fd6353ae2ffc88cf920b3bbb" },
- "catppuccin": { "branch": "main", "commit": "18bab5ec4c782cdf7d7525dbe89c60bfa02fc195" },
+ "catppuccin": { "branch": "main", "commit": "4fd72a9ab64b393c2c22b168508fd244877fec96" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-dap": { "branch": "master", "commit": "ea92773e84c0ad3288c3bc5e452ac91559669087" },
@@ -19,6 +19,7 @@
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
+ "codeium.nvim": { "branch": "main", "commit": "f6a2ef32a9e923cb0104a19d3e426b0e40e49505" },
"color-picker.nvim": { "branch": "master", "commit": "06cb5f853535dea529a523e9a0e8884cdf9eba4d" },
"composer.nvim": { "branch": "main", "commit": "ec9537969adc7fc128cfe9c3a9925850455896c8" },
"copilot-cmp": { "branch": "master", "commit": "b6e5286b3d74b04256d0a7e3bd2908eabec34b44" },
@@ -28,8 +29,8 @@
"duck.nvim": { "branch": "main", "commit": "d8a6b08af440e5a0e2b3b357e2f78bb1883272cd" },
"elixir-tools.nvim": { "branch": "main", "commit": "5e7596be469be0800e9cbe3415de971f7286c3d0" },
"firenvim": { "branch": "master", "commit": "bb70728c13c305ff35193586d5f6ce68668af063" },
- "flutter-tools.nvim": { "branch": "main", "commit": "cd4222bcaa5c20eb1e244a09d4ced397b097f0a8" },
- "fzf": { "branch": "master", "commit": "387c6ef664688582ca1be950e2fe260699aa8862" },
+ "flutter-tools.nvim": { "branch": "main", "commit": "de817aaf2f1553db3da3650b196e8936b04e7f14" },
+ "fzf": { "branch": "master", "commit": "8cb59e6fcac3dce8dfa44b678fdc94cf81efa11b" },
"fzf.vim": { "branch": "master", "commit": "6f28c8c7bb551161a0315a76488522204f39c1f4" },
"git-worktree.nvim": { "branch": "master", "commit": "f247308e68dab9f1133759b05d944569ad054546" },
"gitsigns.nvim": { "branch": "main", "commit": "562dc47189ad3c8696dbf460d38603a74d544849" },
@@ -37,9 +38,9 @@
"hydra.nvim": { "branch": "master", "commit": "3ced42c0b6a6c85583ff0f221635a7f4c1ab0dd0" },
"icon-picker.nvim": { "branch": "master", "commit": "3ee9a0ea9feeef08ae35e40c8be6a2fa2c20f2d3" },
"image.nvim": { "branch": "main", "commit": "acbd1d7d64ac0643021a6146eb0557e7c2e793d0" },
- "indent-blankline.nvim": { "branch": "master", "commit": "dddb5d21811c319eb6e51a993d8fb44b193aae3f" },
+ "indent-blankline.nvim": { "branch": "master", "commit": "db926997af951da38e5004ec7b9fbdc480b48f5d" },
"indent-o-matic": { "branch": "master", "commit": "4d11e98f523d3c4500b1dc33f0d1a248a4f69719" },
- "laravel.nvim": { "branch": "main", "commit": "bd2d8cf68ae09556a07dec014384aa6e15709938" },
+ "laravel.nvim": { "branch": "main", "commit": "e4f39d942352b03396a9df79896b0a8801675199" },
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
"lspkind-nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" },
"lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
@@ -47,15 +48,15 @@
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
"luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" },
"markdown-preview.nvim": { "branch": "main", "commit": "cc05a30393e2bf9f12e2d59fc35a1aa928ed1727" },
- "mason-lspconfig.nvim": { "branch": "main", "commit": "1c55991321d1a861537e32446affc5de5d9a6eaf" },
+ "mason-lspconfig.nvim": { "branch": "main", "commit": "482350b050bd413931c2cdd4857443c3da7d57cb" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"middleclass": { "branch": "master", "commit": "9fab4d5bca67262614960960ca35c4740eb2be2c" },
- "mini.icons": { "branch": "main", "commit": "fe63fe080e76d80713557e5f0c65bc15b14b152d" },
- "mini.nvim": { "branch": "main", "commit": "04649417dd63f470f74f5ce23f9b39a827de0058" },
+ "mini.icons": { "branch": "main", "commit": "12e7b5d47bfc1b4c5ba4278fb49ec9100138df14" },
+ "mini.nvim": { "branch": "main", "commit": "71b5694a2df4f7e3661855eb8e2814980d2e0ac9" },
"neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
"neogen": { "branch": "main", "commit": "2cad4d6fe9fb7d359ef60f169cf4dad8eb17d6c5" },
- "neorg": { "branch": "main", "commit": "09deca2ba5adcf1a729d1e3abf64438d7ce4d7ee" },
+ "neorg": { "branch": "main", "commit": "85f15f033d8c56366ac1e6ae93c940db8ad067ca" },
"neotest": { "branch": "master", "commit": "32ff2ac21135a372a42b38ae131e531e64833bd3" },
"neotest-go": { "branch": "main", "commit": "92950ad7be2ca02a41abca5c6600ff6ffaf5b5d6" },
"neotest-plenary": { "branch": "master", "commit": "2cc925246d7e5324ddf9585fad891cec73c3947b" },
@@ -68,33 +69,34 @@
"none-ls.nvim": { "branch": "main", "commit": "cfa65d86e21eeb60544d5e823f6db43941322a53" },
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
"numb.nvim": { "branch": "master", "commit": "3f7d4a74bd456e747a1278ea1672b26116e0824d" },
- "nvim-autopairs": { "branch": "master", "commit": "48ca9aaee733911424646cb1605f27bc01dedbe3" },
+ "nvim-autopairs": { "branch": "master", "commit": "19606af7c039271d5aa96bceff101e7523af3136" },
"nvim-bqf": { "branch": "main", "commit": "1b24dc6050c34e8cd377b6b4cd6abe40509e0187" },
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
- "nvim-dap": { "branch": "master", "commit": "2b428ff2632e73295e9decbcf1c40d8e26213305" },
+ "nvim-dap": { "branch": "master", "commit": "281a2e4cd1e7a17cea7ecb1745d84a8ab1249925" },
"nvim-dap-go": { "branch": "main", "commit": "5511788255c92bdd845f8d9690f88e2e0f0ff9f2" },
"nvim-dap-ui": { "branch": "master", "commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "484995d573c0f0563f6a66ebdd6c67b649489615" },
"nvim-dap-vscode-js": { "branch": "main", "commit": "03bd29672d7fab5e515fc8469b7d07cc5994bbf6" },
- "nvim-lspconfig": { "branch": "master", "commit": "a89de2e049b5f89a0ee55029d5a31213bd4de6f8" },
+ "nvim-html-css": { "branch": "main", "commit": "c514bd27ad560636ed39dea3e370b3103754e244" },
+ "nvim-lspconfig": { "branch": "master", "commit": "b21c166bbf337734f2a39734a905c1c3e298205c" },
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
"nvim-python-repl": { "branch": "main", "commit": "3d63e4f298233cb97e0fb2d8360857120235112f" },
"nvim-spectre": { "branch": "master", "commit": "ba7fb777edff6c1fbbeffd343e113af64c04e90a" },
"nvim-transparent": { "branch": "main", "commit": "2c78d94448b534c35ca1d88a3bae90b1cd1a3d4d" },
- "nvim-treesitter": { "branch": "master", "commit": "63e1337f1b60c84a4100ebedfb1dc80924c49122" },
+ "nvim-treesitter": { "branch": "master", "commit": "0b8b78f9d08dc338a146eb4cd4bcbed8dd36a783" },
"nvim-treesitter-context": { "branch": "master", "commit": "0f3332788e0bd37716fbd25f39120dcfd557c90f" },
"nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
- "nvim-treesitter-textobjects": { "branch": "master", "commit": "ced6375723b20616282f9f6a1018a63ae19b106a" },
+ "nvim-treesitter-textobjects": { "branch": "master", "commit": "41e3abf6bfd9a9a681eb1f788bdeba91c9004b2b" },
"nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" },
"oil-git-status.nvim": { "branch": "main", "commit": "a7ea816bac0cc3b8b4c3605e2f2b87960be60a05" },
- "oil-image-preview.nvim": { "branch": "master", "commit": "cda53b47ae8b0fd3ac414bde7222783b0b6c4edc" },
+ "oil-image-preview.nvim": { "branch": "master", "commit": "6183f23ba094283c04f00ae060cc45e59a4c3441" },
"oil.nvim": { "branch": "master", "commit": "a632c898fbe0e363ef89b9577f1a7714ab67d682" },
"pathlib.nvim": { "branch": "main", "commit": "7a5a6facd29e306bc73a37719fa67c0d2226f852" },
"phpactor.nvim": { "branch": "main", "commit": "0aa4ad09c2024e24d630c0ec616d65396caa39e0" },
"playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
- "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
+ "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"refactoring.nvim": { "branch": "master", "commit": "c406fc5fb4d7ba5fce7b668637075fad6e75e9f8" },
"rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" },
diff --git a/lua/pi/completition/init.lua b/lua/pi/completition/init.lua
index 667e30b..ec128a0 100644
--- a/lua/pi/completition/init.lua
+++ b/lua/pi/completition/init.lua
@@ -55,12 +55,28 @@ cmp.setup {
["<c-space>"] = cmp.mapping.complete(),
},
sources = {
- { name = "dictionary" },
+ { name = "dictionary", keyword_length = 2},
{ name = "nvim_lua" },
{ name = "nvim_lsp" },
{ name = "path" },
{ name = "luasnip" },
{ name = "copilot" },
+ {name = "codeium"},
+ { name = 'html-css',
+ option = {
+ max_count = {}, -- not ready yet
+ enable_on = {
+ "html",
+ "css"
+ }, -- set the file types you want the plugin to work on
+ file_extensions = { "css", "sass", "less" }, -- set the local filetypes from which you want to derive classes
+ style_sheets = {
+ -- example of remote styles, only css no js for now
+ "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css",
+ "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css",
+ }
+ }
+ },
{
name = "buffer",
keyword_length = 4,
@@ -87,46 +103,40 @@ cmp.setup {
formatting = {
format = function (entry, vim_item)
- lspkind.cmp_format {
- with_text = true,
- menu = {
- buffer = "[buf]",
- nvim_lsp = "[ ]",
- nvim_lua = "[api]",
- path = "[path]",
- luasnip = "[snip]",
- copilot = "[ﮧ ]",
- ["vim-dadbod-completion"] = "[DB]",
- },
- }
+ if entry.source.name == "html-css" then
+ vim_item.menu = entry.completion_item.menu
+ end
local KIND_ICONS = {
Tailwind = '󰹞󰹞󰹞󰹞󰹞󰹞󰹞󰹞',
- Color = ' ',
- -- Class = 7,
- -- Constant = '󰚞',
- -- Constructor = 4,
- -- Enum = 13,
- -- EnumMember = 20,
- -- Event = 23,
- -- Field = 5,
- -- File = 17,
- -- Folder = 19,
- -- Function = 3,
- -- Interface = 8,
- -- Keyword = 14,
- -- Method = 2,
- -- Module = 9,
- -- Operator = 24,
- -- Property = 10,
- -- Reference = 18,
- Snippet = " ",
- -- Struct = 22,
- -- Text = "",
- -- TypeParameter = 25,
- -- Unit = 11,
- -- Value = 12,
- -- Variable = 6
+ Copilot = "",
+ Text = "󰉿",
+ Method = "󰆧",
+ Function = "󰊕",
+ Constructor = "",
+ Field = "󰜢",
+ Variable = "󰀫",
+ Class = "󰠱",
+ Interface = "",
+ Module = "",
+ Property = "󰜢",
+ Unit = "󰑭",
+ Value = "󰎠",
+ Enum = "",
+ Keyword = "󰌋",
+ Snippet = "",
+ Color = "󰏘",
+ File = "󰈙",
+ Reference = "󰈇",
+ Folder = "󰉋",
+ EnumMember = "",
+ Constant = "󰏿",
+ Struct = "󰙅",
+ Event = "",
+ Operator = "󰆕",
+ Codeium = "",
+ TypeParameter = "󰜅",
}
+
if vim_item.kind == 'Color' and entry.completion_item.documentation then
local _, _, r, g, b =
---@diagnostic disable-next-line: param-type-mismatch
@@ -167,7 +177,8 @@ cmp.setup {
},
}
-vim.api.nvim_set_hl(0, "CmpItemKindCopilot", { fg = "#6CC644" })
+vim.api.nvim_set_hl(0, "CmpItemKindCopilot", { fg = "#3426C3" })
+vim.api.nvim_set_hl(0, "CmpItemKindCodeium", { fg = "#2ACDBA" })
-- Set configuration for specific filetype.
cmp.setup.filetype("gitcommit", {
diff --git a/lua/plugins/codeium.lua b/lua/plugins/codeium.lua
new file mode 100644
index 0000000..2de0def
--- /dev/null
+++ b/lua/plugins/codeium.lua
@@ -0,0 +1,11 @@
+return {
+ "Exafunction/codeium.nvim",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "hrsh7th/nvim-cmp",
+ },
+ config = function()
+ require("codeium").setup({
+ })
+ end
+}
diff --git a/lua/plugins/completition.lua b/lua/plugins/completition.lua
index ab65317..480da46 100644
--- a/lua/plugins/completition.lua
+++ b/lua/plugins/completition.lua
@@ -35,23 +35,7 @@ return {
}
local dict = require("cmp_dictionary")
- dict.setup({
- -- The following are default values.
-
- paths = dict_fl["*"],
- exact_length = 2,
- first_case_insensitive = false,
- -- document = {
- -- enable = true,
- -- command = { "wn", "${label}", "-over" },
- -- },
- })
-
- -- dict.switcher({
- -- spelllang = {
- -- es = "./../../spell/dic_es.dict",
- -- },
- -- })
+ dict.setup({ paths = dict_fl["*"], exact_length = 3, first_case_insensitive = false })
end,
},
diff --git a/lua/plugins/nvim-html-css.lua b/lua/plugins/nvim-html-css.lua
new file mode 100644
index 0000000..d755f75
--- /dev/null
+++ b/lua/plugins/nvim-html-css.lua
@@ -0,0 +1,9 @@
+return { "Jezda1337/nvim-html-css",
+ dependencies = {
+ "nvim-treesitter/nvim-treesitter",
+ "nvim-lua/plenary.nvim"
+ },
+ config = function()
+ require("html-css"):setup()
+ end
+}