Skip to content

Commit

Permalink
remove tabnine
Browse files Browse the repository at this point in the history
  • Loading branch information
RhydianJenkins committed Mar 21, 2024
1 parent 7c66178 commit 96c136d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 35 deletions.
4 changes: 2 additions & 2 deletions nix/user/home.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{pkgs, ...}: let
username = "rhydian";
username = "rhydian";
in {
home = {
username = "${username}";
Expand All @@ -21,7 +21,7 @@ in {
home.file.".wezterm.lua".source = ../../dotfiles/.wezterm.lua;
home.file.".zshrc".source = ../../dotfiles/.zshrc;
home.file.".config/i3".source = ../../i3;
home.file.".config/nvim".source = ../../nvim;
# home.file.".config/nvim".source = ../../nvim;

services.gpg-agent.enable = true;

Expand Down
8 changes: 0 additions & 8 deletions nvim/after/plugin/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ end
require("luasnip.loaders.from_vscode").lazy_load()

vim.api.nvim_set_hl(0, "CmpItemKindCopilot", { fg = "#6CC644" })
vim.api.nvim_set_hl(0, "CmpItemKindTabnine", { fg = "#d61577" })
vim.api.nvim_set_hl(0, "CmpItemKindBuffer", { fg = "#928374" })
vim.api.nvim_set_hl(0, "CmpItemKindCodeium", { fg = "#48E0CE" })

local source_mapping = {
buffer = "[Buf]",
nvim_lsp = "[LSP]",
nvim_lua = "[Lua]",
cmp_tabnine = "[TN]",
path = "[Path]",
copilot = "[CP]",
codeium = "[CD]",
Expand Down Expand Up @@ -78,7 +76,6 @@ cmp.setup({
{ name = "luasnip" },
}, {
{ name = "copilot" },
{ name = "cmp_tabnine" },
{ name = "codeium" },
}, {
{ name = "path" },
Expand All @@ -92,11 +89,6 @@ cmp.setup({
vim_item.kind = lspkind.presets.default[vim_item.kind]
local menu = source_mapping[entry.source.name]

if entry.source.name == "cmp_tabnine" then
vim_item.kind_hl_group = "CmpItemKindTabnine"
vim_item.kind = ""
end

if entry.source.name == "copilot" then
vim_item.kind_hl_group = "CmpItemKindCopilot"
vim_item.kind = ""
Expand Down
20 changes: 0 additions & 20 deletions nvim/after/plugin/tabnine.lua

This file was deleted.

5 changes: 0 additions & 5 deletions nvim/lua/rhydian/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ return {
},
},

{
"tzachar/cmp-tabnine",
build = "./install.sh",
},

"folke/neodev.nvim",

{
Expand Down

0 comments on commit 96c136d

Please sign in to comment.