diff options
Diffstat (limited to '.nvim.lua')
| -rw-r--r-- | .nvim.lua | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,3 +1,6 @@ +vim.opt.exrc = false +vim.g.autoformat = true + local workspace_folder = vim.fn.getcwd() local function safe_require(module) @@ -20,12 +23,6 @@ default_clangd_config.cmd = { vim.lsp.config("clangd", default_clangd_config) -vim.filetype.add({ - pattern = { - [".*/kstd/include/kstd/.*"] = "cpp", - } -}) - -- Debugging local dap = require("dap") local qemu_job_id = nil @@ -110,6 +107,10 @@ dap.listeners.after.event_exited["teachos_qemu_teardown"] = teardown_qemu dap.listeners.after.disconnect["teachos_qemu_teardown"] = teardown_qemu require("cmake-tools").setup({ + cmake_compile_commands_options = { + action = "soft_link", + target = string.format("%s/build", workspace_folder), + }, cmake_dap_configuration = { name = "(gdb) QEMU MI Attach", type = "teachos_qemu_mi", |
