commit 1df6e11baeaf09197fc27e7187071114f378a569
parent 5ba22b3bbb28c4634a3529c0b1a125e31499cba2
Author: Tomas Nemec <owl@gtms.dev>
Date: Sun, 13 Oct 2024 12:26:34 +0200
update
Diffstat:
5 files changed, 42 insertions(+), 4 deletions(-)
diff --git a/after/plugin/dap.lua b/after/plugin/dap.lua
@@ -37,7 +37,7 @@ end, { silent = true, desc = 'DAP Set Log Point' })
-- DAP UI
local has_dapui, dapui = pcall(require, 'dapui')
if has_dapui then
- dapui.setup({
+ dapui.setup {
layouts = {
{
elements = {
@@ -56,7 +56,7 @@ if has_dapui then
position = 'bottom',
}
}
- })
+ }
dap.listeners.after.event_initialized['dapui_config'] = function()
dapui.open({ layout = 2 })
@@ -228,6 +228,41 @@ if has_dapgo then
dapgo.setup()
end
+-- ZIG
+-- "configurations": [
+-- {
+-- "type": "lldb",
+-- "request": "launch",
+-- "name": "Debug",
+-- "program": "${workspaceFolder}/zig-out/bin/my-test",
+-- "args": ["/usr/local/bin/zig"],
+-- "cwd": "${workspaceFolder}",
+--
+-- }
+-- ]
+
+dap.adapters.codelldb = {
+ type = "server",
+ host = "127.0.0.1",
+ port = "${port}",
+ executable = {
+ command = "codelldb",
+ args = { "--port", "${port}" },
+ }
+}
+
+dap.configurations.zig = {
+ {
+ name = "Launch file",
+ type = "codelldb",
+ request = "launch",
+ program = vim.fn.exepath("zig"),
+ args = { "run", "${file}" },
+ cwd = "${workspaceFolder}",
+ -- stopOnEntry = false,
+ },
+}
+
-- dap godot
dap.adapters.godot = { type = 'server', host = '127.0.0.1', port = 6006 }
diff --git a/after/plugin/format.lua b/after/plugin/format.lua
@@ -7,6 +7,7 @@ local shfmt = { 'shfmt' }
require 'conform'.setup {
formatters_by_ft = {
dart = { 'injected' },
+ python = { 'autopep8' },
sh = shfmt,
bash = shfmt,
zsh = shfmt,
diff --git a/after/plugin/neocodeium.lua b/after/plugin/neocodeium.lua
@@ -9,7 +9,7 @@ codeium.setup {
}
vim.keymap.set('i', '<c-y>', codeium.accept, { expr = true, desc = 'Codeium Accept' })
-vim.keymap.set('i', '<c-l>', codeium.accept_line, { expr = true, desc = 'Codeium Accept Line' })
+-- vim.keymap.set('i', '<c-l>', codeium.accept_line, { expr = true, desc = 'Codeium Accept Line' })
vim.keymap.set('i', '<c-e>', codeium.clear, { desc = 'Codeium Clear' })
vim.keymap.set('i', '<c-n>', function() codeium.cycle(1) end, { desc = 'Codeium Next' })
vim.keymap.set('i', '<c-p>', function() codeium.cycle(-1) end, { desc = 'Codeium Prev' })
diff --git a/ftplugin/zig.lua b/ftplugin/zig.lua
@@ -0,0 +1,2 @@
+-- vim.cmd.compiler "zig"
+vim.treesitter.start(0, "zig")
diff --git a/lua/plugins.lua b/lua/plugins.lua
@@ -31,7 +31,7 @@ return require('paq') {
'stevearc/quicker.nvim',
'shortcuts/no-neck-pain.nvim',
'nagy135/typebreak.nvim',
- 'm4xshen/hardtime.nvim',
+ -- 'm4xshen/hardtime.nvim',
{ 'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' } },
'sindrets/diffview.nvim',
'tpope/vim-fugitive',