generated from 2KAbhishek/template.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
24 lines (19 loc) · 649 Bytes
/
config.lua
File metadata and controls
24 lines (19 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- Define config structure here, setup function will override defaults with user config
---@class TemplateConfig
local M = {}
---@class TemplateConfigOptions
---@field name string Name to greet. Default: 'World!'
---@field add_default_keybindings boolean Whether to add default keybindings. Default: true
---@type TemplateConfigOptions
local config = {
name = 'World!',
add_default_keybindings = true,
}
---@type TemplateConfigOptions
M.config = config
---Setup configuration with user options
---@param args TemplateConfigOptions?
M.setup = function(args)
M.config = vim.tbl_deep_extend('force', M.config, args or {})
end
return M