This commit is contained in:
Alexander Neonxp Kiryukhin 2025-07-20 13:55:45 +03:00
parent 972802e532
commit 9c05c52ebf
Signed by: NeonXP
SSH key fingerprint: SHA256:SVt7TjxbVc87m1QYaQziOJ0N3OCFURv2g76gD/UTTXI
17 changed files with 63 additions and 36 deletions

View file

@ -4,3 +4,10 @@ end, { force = true })
vim.api.nvim_create_user_command("Upper", function()
vim.cmd([[normal! gUaw]])
end, { force = true })
vim.api.nvim_create_user_command("GoTestDebug", function()
require('dap-go').debug_test()
end, { force = true })
vim.api.nvim_create_user_command("GoTestDebugLast", function()
require('dap-go').debug_last_test()
end, { force = true })

View file

@ -41,3 +41,9 @@ lspconfig.templ.setup(config({
filetypes = { "templ" },
root_markers = { "go.work", "go.mod", ".git" },
}))
lspconfig.v_analyzer.setup(config({
cmd = { "v-analyzer" },
filetypes = { "v", "vv", "vsh" },
root_markers = { "v.mod", ".git" },
}))

View file

@ -35,6 +35,9 @@ return {
opts = {
keymap = {
preset = "enter",
["<Tab>"] = false,
["<C-k>"] = { "snippet_forward", "fallback" },
["<C-S-k>"] = { "snippet_backward", "fallback" },
},
completion = {
list = {
@ -61,7 +64,13 @@ return {
signature = { enabled = true },
snippets = { preset = "luasnip" },
sources = {
default = { "lsp", "path", "snippets", "buffer", "codecompanion" },
default = {
"lsp",
"path",
"snippets",
"buffer",
"codecompanion",
},
},
},
}

View file

@ -25,7 +25,7 @@ return {
},
schema = {
model = {
default = "Qwen/Qwen2.5-Coder-14B-Instruct",
default = "Qwen/Qwen2.5-Coder-32B-Instruct-GPTQ-Int8",
},
},
})

View file

@ -23,10 +23,9 @@ local function setup_go_configuration(dap, configs)
name = "Debug",
request = "launch",
program = "${workspaceFolder}",
args = {},
buildFlags = configs.delve.build_flags,
outputMode = configs.delve.output_mode,
outputMode = "remote",
},
}
if dap.configurations.go == nil then

View file

@ -6,16 +6,12 @@ return {
picker = "telescope",
lsp = {
-- `config` is passed to `vim.lsp.start(config)`
config = {
name = "zk",
cmd = { "zk", "lsp" },
filetypes = { "markdown" },
-- on_attach = ...
-- etc, see `:h vim.lsp.start()`
},
-- automatically attach buffers in a zk notebook that match the given filetypes
auto_attach = {
enabled = true,
filetypes = { "markdown" }, -- moved to lsp.config above