mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2026-05-01 20:51:42 +01:00
Added emmylua annotations where valuable
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
---@class IconDef
|
||||
---@field icon string
|
||||
---@field color string
|
||||
---@field cterm_color string
|
||||
---@field name string
|
||||
|
||||
---@type table<string, IconDef>
|
||||
return {
|
||||
Ada = {
|
||||
icon = "",
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
---@class Keymap
|
||||
---@field [1] string LHS key
|
||||
---@field [2] string|function RHS command or function
|
||||
---@field desc string Description for which-key/vim.keymap
|
||||
---@field mode? string|string[] Mode (n, v, i, etc.)
|
||||
---@field expr? boolean Whether to use expression mapping
|
||||
|
||||
---@class KeyConfig : table<string, Keymap>
|
||||
|
||||
---@type KeyConfig
|
||||
return {
|
||||
groups = {
|
||||
{ "<leader>s", group = "[S]earch", icon = "" },
|
||||
@@ -310,6 +320,7 @@ return {
|
||||
mode = "n",
|
||||
},
|
||||
},
|
||||
---@param telescope_builtin table
|
||||
telescope = function(telescope_builtin)
|
||||
return {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user