mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 01:08:53 +02:00
add: config global variable
This commit is contained in:
parent
77436b89c4
commit
a7726a6b33
30 changed files with 703 additions and 857 deletions
|
@ -1,13 +1,12 @@
|
|||
local run = 0
|
||||
local data_exists, frmt = pcall(require, "core.config")
|
||||
if not data_exists then
|
||||
run = 1
|
||||
end
|
||||
if frmt.format_on_save == 1 then
|
||||
local frmt = vim.g.pcode_format_on_save
|
||||
if frmt == 1 then
|
||||
run = 1
|
||||
else
|
||||
run = 0
|
||||
end
|
||||
|
||||
local buf_clients = vim.lsp.buf_get_clients()
|
||||
local buf_clients = vim.lsp.get_clients()
|
||||
if next(buf_clients) == nil then
|
||||
run = 0
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue