diff --git a/init.lua b/init.lua index 708ac17..343c241 100644 --- a/init.lua +++ b/init.lua @@ -3,10 +3,7 @@ local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to access global variables local opt = vim.opt -- to set options -local fn = vim.fn - -- Auto install packer.nvim if not exists -local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) @@ -116,7 +113,6 @@ require('Comment').setup({ }) -------------------- CMAKE --------------------------------- require('telescope').load_extension('cmake') -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.