From 70fc061d1accb7e773b2835a10ba1c3e7cd8a16c Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sat, 6 Nov 2021 13:01:21 +0100 Subject: [PATCH] CMake config --- init.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 545c63f..aad52b4 100644 --- a/init.lua +++ b/init.lua @@ -111,8 +111,18 @@ require('Comment').setup({ }) -------------------- CMAKE --------------------------------- require('telescope').load_extension('cmake') -g.cmake_build_dir = '{cwd}/build_nvim' +local Path = require('plenary.path') +require('cmake').setup({ + parameters_file = 'neovim.json', -- JSON file to store information about selected target, run arguments and build type. + build_dir = '{cwd}/build_nvim', -- Build directory. The expressions `{cwd}`, `{os}` and `{build_type}` will be expanded with the corresponding text values. +}) utils.map('n', '', ':CMake build:copen') + +-- msbuild errorformat +opt.errorformat:append("\\ %#%f(%l\\\\\\,%c):\\ %m") +-- cl.exe errorformat +-- o.errorformat:append('\ %#%f(%l) : %#%t%[A-z]%# %m') + -------------------- NEOCLIP ------------------------------- require('neoclip').setup({ default_register = '+',