updates
parent
5216048827
commit
33aa97c9e0
@ -1 +1 @@
|
|||||||
require 'spike.diagnostics'.set_diagnostics_level(vim.diagnostic.severity.WARN)
|
require 'spike.diagnostics'.set_diagnostics_level(vim.diagnostic.severity.ERROR)
|
||||||
|
@ -0,0 +1,58 @@
|
|||||||
|
local ok, copilot = pcall(require, 'copilot')
|
||||||
|
if not ok then
|
||||||
|
vim.notify("missing module copilot", vim.log.levels.WARN)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
local config = {
|
||||||
|
panel = {
|
||||||
|
enabled = true,
|
||||||
|
auto_refresh = false,
|
||||||
|
keymap = {
|
||||||
|
jump_prev = "[[",
|
||||||
|
jump_next = "]]",
|
||||||
|
accept = "<CR>",
|
||||||
|
refresh = "gr",
|
||||||
|
open = "<M-CR>"
|
||||||
|
},
|
||||||
|
layout = {
|
||||||
|
position = "bottom", -- | top | left | right
|
||||||
|
ratio = 0.4
|
||||||
|
},
|
||||||
|
},
|
||||||
|
suggestion = {
|
||||||
|
enabled = true,
|
||||||
|
auto_trigger = false,
|
||||||
|
debounce = 75,
|
||||||
|
keymap = {
|
||||||
|
accept = "<M-l>",
|
||||||
|
accept_word = false,
|
||||||
|
accept_line = false,
|
||||||
|
next = "<M-]>",
|
||||||
|
prev = "<M-[>",
|
||||||
|
dismiss = "<C-]>",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
filetypes = {
|
||||||
|
yaml = false,
|
||||||
|
markdown = false,
|
||||||
|
help = false,
|
||||||
|
gitcommit = false,
|
||||||
|
gitrebase = false,
|
||||||
|
hgcommit = false,
|
||||||
|
svn = false,
|
||||||
|
cvs = false,
|
||||||
|
["."] = false,
|
||||||
|
},
|
||||||
|
copilot_node_command = 'node', -- Node.js version must be > 16.x
|
||||||
|
server_opts_overrides = {},
|
||||||
|
}
|
||||||
|
|
||||||
|
M.setup = function()
|
||||||
|
copilot.setup(config)
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
return {
|
||||||
|
-- AGPL3
|
||||||
|
s("AGPL3", fmt([[
|
||||||
|
# The AGPLv3 License (AGPLv3)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 {}
|
||||||
|
#
|
||||||
|
# {} is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
]], {
|
||||||
|
i(1), i(0)
|
||||||
|
}))
|
||||||
|
}, { --autosnippets
|
||||||
|
-- s("uuid#", f(gen_uuid))
|
||||||
|
}
|
Loading…
Reference in New Issue