diff --git a/nix/user/home.nix b/nix/user/home.nix index 2b638f9..a448c53 100644 --- a/nix/user/home.nix +++ b/nix/user/home.nix @@ -1,5 +1,5 @@ {pkgs, ...}: let -username = "rhydian"; + username = "rhydian"; in { home = { username = "${username}"; @@ -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; diff --git a/nvim/after/plugin/cmp.lua b/nvim/after/plugin/cmp.lua index a3359c9..104e137 100644 --- a/nvim/after/plugin/cmp.lua +++ b/nvim/after/plugin/cmp.lua @@ -20,7 +20,6 @@ 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" }) @@ -28,7 +27,6 @@ local source_mapping = { buffer = "[Buf]", nvim_lsp = "[LSP]", nvim_lua = "[Lua]", - cmp_tabnine = "[TN]", path = "[Path]", copilot = "[CP]", codeium = "[CD]", @@ -78,7 +76,6 @@ cmp.setup({ { name = "luasnip" }, }, { { name = "copilot" }, - { name = "cmp_tabnine" }, { name = "codeium" }, }, { { name = "path" }, @@ -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 = "" diff --git a/nvim/after/plugin/tabnine.lua b/nvim/after/plugin/tabnine.lua deleted file mode 100644 index afd56cb..0000000 --- a/nvim/after/plugin/tabnine.lua +++ /dev/null @@ -1,20 +0,0 @@ -local present, tabnine = pcall(require, "cmp_tabnine.config") - -if not present then - print("tabnine plugin not found") - return -end - -tabnine:setup({ - max_lines = 1000, - max_num_results = 1, - sort = true, - run_on_every_keystroke = true, - snippet_placeholder = "...", - ignored_file_types = { - -- default is not to ignore - -- uncomment to ignore in lua: - -- lua = true - }, - show_prediction_strength = false, -}) diff --git a/nvim/lua/rhydian/plugins.lua b/nvim/lua/rhydian/plugins.lua index bd0f78b..afe334e 100644 --- a/nvim/lua/rhydian/plugins.lua +++ b/nvim/lua/rhydian/plugins.lua @@ -96,11 +96,6 @@ return { }, }, - { - "tzachar/cmp-tabnine", - build = "./install.sh", - }, - "folke/neodev.nvim", {