2022-06-02 13:59:15 -04:00
|
|
|
local present, gps = pcall(require, "nvim-gps")
|
|
|
|
|
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local icons = require "plugins.configs.lspkind_icons"
|
|
|
|
|
|
|
|
local options = {
|
|
|
|
|
|
|
|
icons = {
|
2022-06-05 09:41:26 -04:00
|
|
|
["class-name"] = "%#GpsItemKindClass#" .. icons.Class .. "%*" .. " ",
|
|
|
|
["function-name"] = "%#GpsItemKindFunction#" .. icons.Function .. "%*" .. " ",
|
|
|
|
["method-name"] = "%#GpsItemKindMethod#" .. icons.Method .. "%*" .. " ",
|
|
|
|
["container-name"] = "%#GpsItemKindProperty#" .. icons.Object .. "%*" .. " ",
|
|
|
|
["tag-name"] = "%#GpsItemKindKeyword#" .. icons.Tag .. "%*" .. " ",
|
|
|
|
["mapping-name"] = "%#GpsItemKindProperty#" .. icons.Object .. "%*" .. " ",
|
|
|
|
["sequence-name"] = "%GpsItemKindProperty#" .. icons.Array .. "%*" .. " ",
|
|
|
|
["null-name"] = "%GpsItemKindField#" .. icons.Field .. "%*" .. " ",
|
|
|
|
["boolean-name"] = "%GpsItemKindValue#" .. icons.Boolean .. "%*" .. " ",
|
|
|
|
["integer-name"] = "%GpsItemKindValue#" .. icons.Number .. "%*" .. " ",
|
|
|
|
["float-name"] = "%GpsItemKindValue#" .. icons.Number .. "%*" .. " ",
|
|
|
|
["string-name"] = "%GpsItemKindValue#" .. icons.String .. "%*" .. " ",
|
|
|
|
["array-name"] = "%GpsItemKindProperty#" .. icons.Array .. "%*" .. " ",
|
|
|
|
["object-name"] = "%GpsItemKindProperty#" .. icons.Object .. "%*" .. " ",
|
|
|
|
["number-name"] = "%GpsItemKindValue#" .. icons.Number .. "%*" .. " ",
|
|
|
|
["table-name"] = "%GpsItemKindProperty#" .. icons.Table .. "%*" .. " ",
|
|
|
|
["date-name"] = "%GpsItemKindValue#" .. icons.Calendar .. "%*" .. " ",
|
|
|
|
["date-time-name"] = "%GpsItemKindValue#" .. icons.Table .. "%*" .. " ",
|
|
|
|
["inline-table-name"] = "%GpsItemKindProperty#" .. icons.Calendar .. "%*" .. " ",
|
|
|
|
["time-name"] = "%GpsItemKindValue#" .. icons.Watch .. "%*" .. " ",
|
|
|
|
["module-name"] = "%GpsItemKindModule#" .. icons.Module .. "%*" .. " ",
|
2022-06-02 13:59:15 -04:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2022-06-05 09:41:26 -04:00
|
|
|
options = require("core.utils").load_override(options, "SmiteshP/nvim-gps")
|
|
|
|
|
2022-06-02 13:59:15 -04:00
|
|
|
gps.setup(options)
|