avante and remote sshfs
This commit is contained in:
parent
0799ca73d0
commit
615c53c8fb
6 changed files with 210 additions and 49 deletions
|
@ -1,36 +0,0 @@
|
|||
return {
|
||||
"yetone/avante.nvim",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
--- The below dependencies are optional,
|
||||
-- {
|
||||
-- -- support for image pasting
|
||||
-- "HakonHarnes/img-clip.nvim",
|
||||
-- event = "VeryLazy",
|
||||
-- opts = {
|
||||
-- -- recommended settings
|
||||
-- default = {
|
||||
-- embed_image_as_base64 = false,
|
||||
-- prompt_for_file_name = false,
|
||||
-- drag_and_drop = {
|
||||
-- insert_mode = true,
|
||||
-- },
|
||||
-- -- required for Windows users
|
||||
-- use_absolute_path = true,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
},
|
||||
event = "VeryLazy",
|
||||
lazy = false,
|
||||
opts = {
|
||||
provider = "claude",
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("avante_lib").load()
|
||||
require("avante").setup(opts)
|
||||
end,
|
||||
}
|
80
lua/plugins/avante.lua
Normal file
80
lua/plugins/avante.lua
Normal file
|
@ -0,0 +1,80 @@
|
|||
return {
|
||||
-- cond = false,
|
||||
"yetone/avante.nvim",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
--- The below dependencies are optional,
|
||||
-- {
|
||||
-- -- support for image pasting
|
||||
-- "HakonHarnes/img-clip.nvim",
|
||||
-- event = "VeryLazy",
|
||||
-- opts = {
|
||||
-- -- recommended settings
|
||||
-- default = {
|
||||
-- embed_image_as_base64 = false,
|
||||
-- prompt_for_file_name = false,
|
||||
-- drag_and_drop = {
|
||||
-- insert_mode = true,
|
||||
-- },
|
||||
-- -- required for Windows users
|
||||
-- use_absolute_path = true,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
},
|
||||
event = "VeryLazy",
|
||||
build = function()
|
||||
-- TODO does this actually work? I still dont have full non nix support tested for this config.
|
||||
if not NIX then
|
||||
vim.cmd("make")
|
||||
end
|
||||
end,
|
||||
lazy = false,
|
||||
opts = {
|
||||
provider = "claude",
|
||||
behavior = {
|
||||
-- auto_suggestions = true, -- Experimental stage
|
||||
auto_set_keymaps = false,
|
||||
support_paste_from_clipboard = true,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("avante_lib").load()
|
||||
require("avante").setup(opts)
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader><leader>c",
|
||||
"<cmd>AvanteToggle<cr>",
|
||||
desc = "Avante - Toggle Chat",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
{
|
||||
"<leader><leader>r",
|
||||
"<cmd>AvanteRefresh<cr>",
|
||||
desc = "Avante - Refresh",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
{
|
||||
"<leader><leader>f",
|
||||
"<cmd>AvanteFocus<cr>",
|
||||
desc = "CopilotChat - Quick chat",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
{
|
||||
"<leader><leader>e",
|
||||
"<cmd>AvanteEdit<cr>",
|
||||
desc = "Avante - Edit Selection",
|
||||
mode = { "v", "x" },
|
||||
},
|
||||
{
|
||||
"<leader><leader>e",
|
||||
"<esc>ggVG<cmd>AvanteEdit<cr>",
|
||||
desc = "Avante - Edit File",
|
||||
mode = { "n" },
|
||||
},
|
||||
},
|
||||
}
|
|
@ -50,9 +50,8 @@ return {
|
|||
},
|
||||
},
|
||||
keys = {
|
||||
-- Show help actions with telescope
|
||||
{
|
||||
"<leader><leader>h",
|
||||
"<leader>ch",
|
||||
function()
|
||||
local actions = require("CopilotChat.actions")
|
||||
require("CopilotChat.integrations.telescope").pick(actions.help_actions())
|
||||
|
@ -60,9 +59,8 @@ return {
|
|||
desc = "CopilotChat - Help actions",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
-- Show prompts actions with telescope
|
||||
{
|
||||
"<leader><leader>p",
|
||||
"<leader>cp",
|
||||
function()
|
||||
local actions = require("CopilotChat.actions")
|
||||
require("CopilotChat.integrations.telescope").pick(actions.prompt_actions())
|
||||
|
@ -70,9 +68,8 @@ return {
|
|||
desc = "CopilotChat - Prompt actions",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
-- Quick chat with Copilot
|
||||
{
|
||||
"<leader><leader>q",
|
||||
"<leader>cq",
|
||||
function()
|
||||
local input = vim.fn.input("Quick Chat: ")
|
||||
if input ~= "" then
|
||||
|
@ -82,9 +79,8 @@ return {
|
|||
desc = "CopilotChat - Quick chat",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
-- Quick chat with Copilot
|
||||
{
|
||||
"<leader><leader>c",
|
||||
"<leader>cc",
|
||||
function()
|
||||
require("CopilotChat").toggle()
|
||||
end,
|
||||
|
|
17
lua/plugins/remote-sshfs.lua
Normal file
17
lua/plugins/remote-sshfs.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
"nosduco/remote-sshfs.nvim",
|
||||
cmd = {
|
||||
"RemoteSshfs",
|
||||
"RemoteSSHFSConnect",
|
||||
"RemoteSSHFSDisconnect",
|
||||
"RemoteSSHFSEdit",
|
||||
"RemoteSSHFSFindFiles",
|
||||
"RemoteSSHFSLiveGrep",
|
||||
},
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
require("remote-sshfs").setup(opts)
|
||||
require("telescope").load_extension("remote-sshfs")
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue