master
blob42 1 year ago
parent 33aa97c9e0
commit 898a383d4d

@ -1,10 +1,10 @@
NVIM v0.9.0-dev-77-gf175ca9f7
NVIM v0.9.0-dev-888+g81c5483dc
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-10 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/cmake.config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az47-468
Compilation: /usr/bin/gcc-10 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fno-common -fdiagnostics-color=always -fstack-protector-strong -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DMIN_LOG_LEVEL=3 -DNVIM_UNIBI_HAS_VAR_FROM -I/home/runner/work/neovim/neovim/.deps/usr/include/luajit-2.1 -I/usr/include -I/home/runner/work/neovim/neovim/.deps/usr/include -I/home/runner/work/neovim/neovim/.deps/usr/include -I/home/runner/work/neovim/neovim/.deps/usr/include -I/home/runner/work/neovim/neovim/.deps/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include -I/home/runner/work/neovim/neovim/build/cmake.config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/home/runner/work/neovim/neovim/.deps/usr/include -I/home/runner/work/neovim/neovim/.deps/usr/include
Compiled by runner@fv-az454-10
Features: +acl +iconv +tui
Features: +acl +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"

@ -1096,6 +1096,9 @@ M.copilot = {
["<leader>cpn"] = { "<cmd> lua require'copilot.panel'.open()<CR>", "copilot panel" },
["]p"] = { "<cmd> lua require'copilot.panel'.jump_next()<CR> ", "copilot panel next" },
["[p"] = { "<cmd> lua require'copilot.panel'.jump_prev()<CR> ", "copilot panel prev" },
},
i = {
["<M-c>p"] = { "<cmd> lua require'copilot.panel'.open()<CR>", "copilot panel" },
}
}

@ -9,73 +9,79 @@ end
local config = {
-- welcome_message = WELCOME_MESSAGE, -- set to "" if you don't like the fancy godot robot
loading_text = "loading",
question_sign = "", -- you can use emoji if you want e.g. 🙂
answer_sign = "", -- 🤖
max_line_length = 120,
yank_register = "+",
chat_layout = {
relative = "editor",
position = "50%",
size = {
height = "80%",
width = "80%",
-- welcome_message = WELCOME_MESSAGE,
loading_text = "loading",
question_sign = "", -- you can use emoji if you want e.g. 🙂
answer_sign = "", -- 🤖
max_line_length = 120,
yank_register = "+",
chat_layout = {
relative = "editor",
position = "50%",
size = {
height = "80%",
width = "80%",
},
},
},
settings_window = {
border = {
style = "rounded",
text = {
top = " Settings ",
},
settings_window = {
border = {
style = "rounded",
text = {
top = " Settings ",
},
},
},
},
chat_window = {
filetype = "chatgpt",
border = {
highlight = "FloatBorder",
style = "rounded",
text = {
top = " ChatGPT ",
},
chat_window = {
filetype = "chatgpt",
border = {
highlight = "FloatBorder",
style = "rounded",
text = {
top = " ChatGPT ",
},
},
},
},
chat_input = {
prompt = "",
border = {
highlight = "FloatBorder",
style = "rounded",
text = {
top_align = "center",
top = " Prompt ",
},
chat_input = {
prompt = "",
border = {
highlight = "FloatBorder",
style = "rounded",
text = {
top_align = "center",
top = " Prompt ",
},
},
},
openai_params = {
model = "gpt-3.5-turbo",
frequency_penalty = 0,
presence_penalty = 0,
max_tokens = 300,
temperature = 0,
top_p = 1,
n = 1,
},
openai_edit_params = {
model = "code-davinci-edit-001",
temperature = 0,
top_p = 1,
n = 1,
},
keymaps = {
close = { "<C-c>" },
submit = "<C-Enter>",
yank_last = "<C-y>",
yank_last_code = "<C-k>",
scroll_up = "<C-u>",
scroll_down = "<C-d>",
toggle_settings = "<C-o>",
new_session = "<C-n>",
cycle_windows = "<Tab>",
-- in the Sessions pane
select_session = "<Space>",
rename_session = "r",
delete_session = "d",
},
},
openai_params = {
model = "text-davinci-003",
frequency_penalty = 0,
presence_penalty = 0,
max_tokens = 300,
temperature = 0,
top_p = 1,
n = 1,
},
openai_edit_params = {
model = "code-davinci-edit-001",
temperature = 0,
top_p = 1,
n = 1,
},
keymaps = {
close = { "<C-c>", "<Esc>" },
yank_last = "<C-y>",
scroll_up = "<C-u>",
scroll_down = "<C-d>",
toggle_settings = "<C-o>",
new_session = "<C-n>",
cycle_windows = "<Tab>",
},
}
M.setup = function()

@ -0,0 +1,33 @@
local M = {}
-- config for dap ui virt text
local dap_ui_virt_text_config = {
enabled = true, -- enable this plugin (the default)
enabled_commands = true, -- create commands DapVirtualTextEnable, DapVirtualTextDisable, DapVirtualTextToggle, (DapVirtualTextForceRefresh for refreshing when debug adapter did not notify its termination)
highlight_changed_variables = true, -- highlight changed values with NvimDapVirtualTextChanged, else always NvimDapVirtualText
highlight_new_as_changed = false, -- highlight new variables in the same way as changed variables (if highlight_changed_variables)
show_stop_reason = true, -- show stop reason when stopped for exceptions
commented = false, -- prefix virtual text with comment string
only_first_definition = true, -- only show virtual text at first definition (if there are multiple)
all_references = false, -- show virtual text on all all references of the variable (not only definitions)
filter_references_pattern = '<module', -- filter references (not definitions) pattern when all_references is activated (Lua gmatch pattern, default filters out Python modules)
-- experimental features:
virt_text_pos = 'eol', -- position of virtual text, see `:h nvim_buf_set_extmark()`
all_frames = true, -- show virtual text for all stack frames not only current. Only works for debugpy on my machine.
virt_lines = false, -- show virtual lines instead of virtual text (will flicker!)
virt_text_win_col = 60 -- position the virtual text at a fixed window column (starting from the first text column) ,
-- e.g. 80 to position at column 80, see `:h nvim_buf_set_extmark()`
}
M.setup_virt_text = function()
local ok, dap_virt_text = pcall(require, 'nvim-dap-virtual-text')
if not ok then
vim.notify("missing module nvim-dap-virtual-text", vim.log.levels.WARN)
return
end
dap_virt_text.setup(dap_ui_virt_text_config)
end
return M

@ -1,41 +1,9 @@
-- local dap = require("dap")
local M = {}
local opts = {
}
-- config for dap ui virt text
local dap_ui_virt_text_config = {
enabled = true, -- enable this plugin (the default)
enabled_commands = true, -- create commands DapVirtualTextEnable, DapVirtualTextDisable, DapVirtualTextToggle, (DapVirtualTextForceRefresh for refreshing when debug adapter did not notify its termination)
highlight_changed_variables = true, -- highlight changed values with NvimDapVirtualTextChanged, else always NvimDapVirtualText
highlight_new_as_changed = false, -- highlight new variables in the same way as changed variables (if highlight_changed_variables)
show_stop_reason = true, -- show stop reason when stopped for exceptions
commented = false, -- prefix virtual text with comment string
only_first_definition = true, -- only show virtual text at first definition (if there are multiple)
all_references = false, -- show virtual text on all all references of the variable (not only definitions)
filter_references_pattern = '<module', -- filter references (not definitions) pattern when all_references is activated (Lua gmatch pattern, default filters out Python modules)
-- experimental features:
virt_text_pos = 'eol', -- position of virtual text, see `:h nvim_buf_set_extmark()`
all_frames = true, -- show virtual text for all stack frames not only current. Only works for debugpy on my machine.
virt_lines = false, -- show virtual lines instead of virtual text (will flicker!)
virt_text_win_col = 60 -- position the virtual text at a fixed window column (starting from the first text column) ,
-- e.g. 80 to position at column 80, see `:h nvim_buf_set_extmark()`
}
M.setup = function()
end
M.setup_virt_text = function()
local ok, dap_virt_text = pcall(require, 'nvim-dap-virtual-text')
if not ok then
vim.notify("missing module nvim-dap-virtual-text", vim.log.levels.WARN)
return
end
P("setup dap ui virt text")
dap_virt_text.setup(dap_ui_virt_text_config)
end
return M

@ -170,6 +170,12 @@ return {
module_pattern = {"nui.*"}
},
-- TODO: review/test the following
-- https://github.com/dpayne/CodeGPT.nvim
-- https://github.com/thmsmlr/gpt.nvim
["dpayne/CodeGPT.nvim"] = {
keys = {"<leader>gpT"},
},
["jackMort/ChatGPT.nvim"] = {
-- lock = true,
opt = true,
@ -260,13 +266,13 @@ return {
["mfussenegger/nvim-dap"] = { -- {{{
lock = true,
module = "dap",
module = {"dap"},
setup = function()
require("core.utils").load_mappings "dap"
require('spike.dap').setup()
end,
config = function()
require("custom.plugins.configs.dap").setup()
require('spike.dap').setup()
-- require("custom.plugins.configs.dap").setup()
end
},
@ -274,7 +280,7 @@ return {
-- tag = "*",
lock = true,
commit = "1e21b3b",
after = "nvim-dap",
after = {"nvim-dap"},
config = function()
require('custom.plugins.configs.dapui').setup()
end
@ -282,11 +288,9 @@ return {
["theHamsta/nvim-dap-virtual-text"] = {
lock = true,
-- opt = true,
after = {"nvim-dap"},
config = function()
require("custom.plugins.configs.dap").setup_virt_text()
-- P("config dap ui virt text")
require("custom.plugins.configs.dap-virt-text").setup_virt_text()
end
}, -- }}}

@ -41,6 +41,7 @@ local modes = {
}
local function is_dapmode()
if not _BLOB42_DAPMODE_LOADED then return false end
return require("spike.dap.dapmode").is_active()
-- return false
end
@ -139,11 +140,13 @@ return {
end
local present, dap = pcall(require, "dap")
if present then
local session = dap.session()
if session ~= nil and session.initialized == true then
dap_status = "%#St_Dap#" .. "%* "
if _BLOB42_DAPMODE_LOADED then
local present, dap = pcall(require, "dap")
if present then
local session = dap.session()
if session ~= nil and session.initialized == true then
dap_status = "%#St_Dap#" .. "%* "
end
end
end

@ -3,6 +3,7 @@ local daputils = require 'spike.dap.utils'
local M = {}
M.layer = nil
_BLOB42_DAPMODE_LOADED = _BLOB42_DAPMODE_LOADED or true
local config = {

@ -29,7 +29,6 @@ M.run_cmd = function(input, opts)
end
M.rerun_last_cmd = function()
P(M.last_cmds)
if #M.last_cmds > 0 then terminal.send(M.last_cmds[1]) end
end

@ -22,4 +22,5 @@ return {
}))
}, { --autosnippets
-- s("uuid#", f(gen_uuid))
s("ret ", t("return "))
}

@ -7,7 +7,6 @@
local M = {}
local function fzf_display_bookmarks(bookmarks)
P(bookmarks)
local fzf_exec_opts = {
previewer = "builtin",

Loading…
Cancel
Save