From 55a7dc6a38cab6b874d19052254f19d4aa9a9b71 Mon Sep 17 00:00:00 2001 From: blob42 Date: Mon, 4 Mar 2024 07:56:17 +0100 Subject: [PATCH] tabby localai config --- lua/custom/plugins/configs/tabby.lua | 22 ++++++++++++++++++++++ lua/custom/plugins/init.lua | 28 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 lua/custom/plugins/configs/tabby.lua diff --git a/lua/custom/plugins/configs/tabby.lua b/lua/custom/plugins/configs/tabby.lua new file mode 100644 index 0000000..f57a8bd --- /dev/null +++ b/lua/custom/plugins/configs/tabby.lua @@ -0,0 +1,22 @@ +local M = {} + +M.setup = function() + vim.g.tabby_keybinding_accept = '' + vim.g.tabby_filetype_dict = { + bash = "shellscript", + sh = "shellscript", + cs = "csharp", + objc = "objective-c", + objcpp = "objective-cpp", + make = "makefile", + cuda = "cuda-cpp", + text = "plaintext", + rust = "rust", + go = "go", + javascript = "javascript" + } + + +end + +return M diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 9c0437f..4e890a1 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -207,6 +207,34 @@ return { } }, + ["TabbyML/vim-tabby"] = { + keys = {"tb"}, + -- event = "BufRead", + cmd = {"Tabby*"}, + config = function() + require("custom.plugins.configs.tabby").setup() + vim.fn["tabby#OnVimEnter"]() + end + }, + -- ["jackMort/ChatGPT.nvim"] = { + -- -- lock = true, + -- opt = true, + -- keys = {"gpt"}, + -- module_pattern = {"chatgpt*"}, + -- after = {"nui.nvim", "telescope.nvim"}, + -- setup = function() + -- require("custom.plugins.configs.chat-gpt").load_api_key() + -- end, + -- config = function() + -- require("custom.plugins.configs.chat-gpt").setup() + -- end, + -- requires = { + -- "MunifTanjim/nui.nvim", + -- "nvim-lua/plenary.nvim", + -- "nvim-telescope/telescope.nvim" + -- } + -- }, + -- snippets ["honza/vim-snippets"] = { -- {{{ module = { "cmp", "cmp_nvim_lsp" },