mirror of
https://github.com/ivuorinen/astronvim_config.git
synced 2026-01-26 03:14:06 +00:00
Formatting, yamlls config
This commit is contained in:
35
init.lua
35
init.lua
@@ -130,15 +130,22 @@ local config = {
|
|||||||
-- example for addings schemas to yamlls
|
-- example for addings schemas to yamlls
|
||||||
yamlls = {
|
yamlls = {
|
||||||
-- override table for require("lspconfig").yamlls.setup({...})
|
-- override table for require("lspconfig").yamlls.setup({...})
|
||||||
-- settings = {
|
settings = {
|
||||||
-- yaml = {
|
yaml = {
|
||||||
-- schemas = {
|
editor = {
|
||||||
-- ["http://json.schemastore.org/github-workflow"] = ".github/workflows/*.{yml,yaml}",
|
tabSize = 2,
|
||||||
-- ["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}",
|
},
|
||||||
-- ["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}",
|
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 = {
|
n = {
|
||||||
-- second key is the lefthand side of the map
|
-- second key is the lefthand side of the map
|
||||||
-- mappings seen under group name "Buffer"
|
-- mappings seen under group name "Buffer"
|
||||||
["<leader>bb"] = { "<cmd>tabnew<cr>", desc = "New tab" },
|
["<leader>bb"] = { "<cmd>tabnew<cr>", desc = "New tab" },
|
||||||
["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
|
["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
|
||||||
["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
|
["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
|
||||||
["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
|
["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
|
||||||
-- tables with the `name` key will be registered with which-key if it's installed
|
-- tables with the `name` key will be registered with which-key if it's installed
|
||||||
-- this is useful for naming menus
|
-- this is useful for naming menus
|
||||||
["<leader>b"] = { name = "Buffers" },
|
["<leader>b"] = { name = "Buffers" },
|
||||||
-- quick save
|
-- quick save
|
||||||
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user