configuration.nix/home/laptop/programs/neovim/nvim/util.lua
Ivan Dimitrov f5e1e3cb5b Squashed commit of the following:
commit eb451fe1a7324b35621921cd232480d0fbbec34b
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 15:40:15 2023 +0300

    nvim bash

commit fe31d8e972e5729715f2f9a70e8226f35759dc9a
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 15:35:16 2023 +0300

    nvim nix

commit af96dff98e80c54eabff9d219119950993878e27
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 15:25:03 2023 +0300

    some js cleanup

commit ffee7d74c9c7c06f879afa8542c4f55492566bb7
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 15:20:41 2023 +0300

    nvim lua

commit 9607813c11893b96070cb056d03eda6b821f9282
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 15:11:20 2023 +0300

    server capabilities check for doc highlight

commit d889f14fb93c35f4d5a4d9e9430a5770d080ef96
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 14:29:47 2023 +0300

    adding servers

commit e91f8f81b6c2ccc35926cac13e71da1a8997b98a
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 13:42:26 2023 +0300

    lists

commit 9239ed57fe73dcde7c11547d211ebec1e8d3078f
Author: Ivan Dimitrov <ivan@idimitrov.dev>
Date:   Thu Oct 5 13:39:10 2023 +0300

    neovim split
2023-10-05 15:48:01 +03:00

28 lines
656 B
Lua

local servers = {}
local addServers = function(srv)
servers = vim.tbl_deep_extend("force", servers, srv)
end
local function dump(o)
if type(o) == 'table' then
local s = '{ '
for k, v in pairs(o) do
if type(k) ~= 'number' then k = '"' .. k .. '"' end
s = s .. '[' .. k .. '] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
local function log(o)
local file = io.open("./.nvim.log", "a+")
if file then
file:write(os.date("%Y/%m/%d %H:%M:%S") .. " || " .. dump(o) .. "\n")
file:write("---\n")
file:close()
end
end