diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-06-17 09:05:21 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-06-17 09:13:11 +0200 |
| commit | 9c09097156dc70315364d27e61daef19b2844139 (patch) | |
| tree | 6829c5a52dde09dab3447f39e9e754c208dbe3f4 /.lazy.lua | |
| download | ttwhy-9c09097156dc70315364d27e61daef19b2844139.tar.xz ttwhy-9c09097156dc70315364d27e61daef19b2844139.zip | |
initial commit
Diffstat (limited to '.lazy.lua')
| -rw-r--r-- | .lazy.lua | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/.lazy.lua b/.lazy.lua new file mode 100644 index 0000000..49182ed --- /dev/null +++ b/.lazy.lua @@ -0,0 +1,66 @@ +local workspace_folder = vim.fn.getcwd() + +return { + { + "neovim/nvim-lspconfig", + opts = { + servers = { + clangd = { + cmd = { + "clangd", + "--background-index", + "--clang-tidy", + "--compile-commands-dir=" .. workspace_folder .. "/build", + "--completion-style=detailed", + "-experimental-modules-support", + "--header-insertion=iwyu", + }, + }, + }, + }, + }, + { + "lucaSartore/fastspell.nvim", + config = function() + local fastspell = require("fastspell") + + fastspell.setup({ + cspell_json_file_path = workspace_folder .. "/cspell.json", + }) + + vim.api.nvim_create_autocmd({ "TextChanged", "TextChangedI", "BufEnter", "WinScrolled" }, { + callback = function(_) + local first_line = vim.fn.line('w0') - 1 + local last_line = vim.fn.line('w$') + fastspell.sendSpellCheckRequest(first_line, last_line) + end, + }) + end + }, + { + "Civitasv/cmake-tools.nvim", + opts = { + cmake_compile_commands_options = { + action = "copy", + target = workspace_folder .. "/build", + }, + }, + }, + { + "nvim-neo-tree/neo-tree.nvim", + opts = { + filesystem = { + filtered_items = { + visible = false, + hide_gitignored = true, + }, + }, + nesting_rules = { + ['tests_under_sources'] = { + pattern = "(.*).cppm", + files = { "%1.tests.cpp" } + }, + }, + }, + }, +} |
