update config for cpp versions
This commit is contained in:
parent
84f25d5591
commit
286d21cd0e
4 changed files with 46 additions and 38 deletions
|
|
@ -8,6 +8,11 @@ local function log(msg, level)
|
|||
vim.notify(("[cp.nvim]: %s"):format(msg), level or vim.log.levels.INFO)
|
||||
end
|
||||
|
||||
if not vim.fn.has("nvim-0.10.0") then
|
||||
log("cp.nvim requires Neovim 0.10.0+", vim.log.levels.ERROR)
|
||||
return M
|
||||
end
|
||||
|
||||
local function clearcol()
|
||||
vim.api.nvim_set_option_value("number", false, { scope = "local" })
|
||||
vim.api.nvim_set_option_value("relativenumber", false, { scope = "local" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue