-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# fittencode.nvim | ||
|
||
删繁就简,彻底重写了之前的 `fittencode.nvim` 插件。 | ||
|
||
新版本更加灵活和强大,具有许多新功能和改进: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
local Config = require("fittencode.config") | ||
|
||
---@class fittencode.Action | ||
local M = {} | ||
|
||
function M.setup() | ||
end | ||
|
||
---@class Conversation | ||
---@field id string | ||
---@field message string[] | ||
---@field source 'Bot'|'User' | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
local M = {} | ||
|
||
function M._action(action) | ||
end | ||
|
||
return setmetatable(M, { | ||
__index = function(_, k) | ||
return M._action(k) | ||
end | ||
}) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
---@class fittencode.Config | ||
local M = {} | ||
|
||
local defaults = {} | ||
|
||
local options = {} | ||
|
||
---@param opts? fittencode.Config | ||
function M.setup(opts) | ||
vim.api.nvim_create_user_command('FittenCode', function(input) | ||
require('fittencode.command').execute(input) | ||
end, { | ||
nargs = '*', | ||
complete = function(...) | ||
return require('fittencode.command').complete(...) | ||
end, | ||
desc = 'FittenCode', | ||
}) | ||
end | ||
|
||
return setmetatable(M, { | ||
__index = function(_, key) | ||
return options[key] | ||
end, | ||
}) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
---@class fittencode.api | ||
local M = {} | ||
|
||
---@param opts? fittencode.Config | ||
function M.setup(opts) | ||
require('fittencode.config').setup(opts) | ||
end | ||
|
||
return setmetatable(M, { | ||
__index = function(_, key) | ||
return require('fittencode.api')[key] | ||
end, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
local Config = require("fittencode.config") | ||
|
||
---@class fittencode.Inline | ||
local M = {} | ||
|
||
function M.setup() | ||
|
||
end | ||
|
||
function M.accpet() | ||
end | ||
|
||
return M |