diff --git a/init.lua b/init.lua index 9420fd5..31af447 100644 --- a/init.lua +++ b/init.lua @@ -130,15 +130,22 @@ local config = { -- example for addings schemas to yamlls yamlls = { -- override table for require("lspconfig").yamlls.setup({...}) - -- settings = { - -- yaml = { - -- schemas = { - -- ["http://json.schemastore.org/github-workflow"] = ".github/workflows/*.{yml,yaml}", - -- ["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}", - -- ["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}", - -- }, - -- }, - -- }, + settings = { + yaml = { + editor = { + tabSize = 2, + }, + completion = true, + schemastore = { + enabled = true, + }, + -- schemas = { + -- ["http://json.schemastore.org/github-workflow"] = ".github/workflows/*.{yml,yaml}", + -- ["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}", + -- ["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}", + -- }, + }, + }, }, }, }, @@ -152,13 +159,13 @@ local config = { n = { -- second key is the lefthand side of the map -- mappings seen under group name "Buffer" - ["bb"] = { "tabnew", desc = "New tab" }, - ["bc"] = { "BufferLinePickClose", desc = "Pick to close" }, - ["bj"] = { "BufferLinePick", desc = "Pick to jump" }, - ["bt"] = { "BufferLineSortByTabs", desc = "Sort by tabs" }, + ["bb"] = { "tabnew", desc = "New tab" }, + ["bc"] = { "BufferLinePickClose", desc = "Pick to close" }, + ["bj"] = { "BufferLinePick", desc = "Pick to jump" }, + ["bt"] = { "BufferLineSortByTabs", desc = "Sort by tabs" }, -- tables with the `name` key will be registered with which-key if it's installed -- this is useful for naming menus - ["b"] = { name = "Buffers" }, + ["b"] = { name = "Buffers" }, -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command },