You've already forked dotfiles
Merge branch 'development'
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
return {
|
return {
|
||||||
settings = {
|
settings = {
|
||||||
|
redhat = {
|
||||||
|
telemetry = {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
yaml = {
|
yaml = {
|
||||||
-- schemaStore = {
|
validate = true,
|
||||||
-- enable = true
|
schemaStore = {
|
||||||
-- },
|
enable = true
|
||||||
|
},
|
||||||
format = {
|
format = {
|
||||||
enable = true,
|
enable = true,
|
||||||
singleQuote = true
|
singleQuote = true
|
||||||
|
|||||||
@@ -35,4 +35,6 @@ require('lazy').setup({
|
|||||||
require('plugins.render-markdown'), -- Render markdown directly in nvim (experimental, may take over for markdown-preview)
|
require('plugins.render-markdown'), -- Render markdown directly in nvim (experimental, may take over for markdown-preview)
|
||||||
require('plugins.autopairs'), -- Autocomplete symbol pairs when typing (experimental)
|
require('plugins.autopairs'), -- Autocomplete symbol pairs when typing (experimental)
|
||||||
require('plugins.twilight'), -- Focus mode, dim lines around the current segment of code
|
require('plugins.twilight'), -- Focus mode, dim lines around the current segment of code
|
||||||
|
require('plugins.yaml-companion'), -- Additional YAML and JSON schema helper
|
||||||
|
-- require('plugins.schemastore'), -- Loads YAML and JSON schemas for autocompletion
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
|
local function get_schema()
|
||||||
|
local schema = require('yaml-companion').get_buf_schema(0)
|
||||||
|
if schema.result[1].name == 'none' then
|
||||||
|
return ''
|
||||||
|
end
|
||||||
|
return schema.result[1].name
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
-- options = {
|
|
||||||
-- component_separators = { left = '\\', right = '/' },
|
|
||||||
-- component_separators = { left = '⧹', right = '⧸' },
|
|
||||||
-- section_separators = { left = '', right = '' },
|
|
||||||
-- globalstatus = true,
|
|
||||||
-- theme = 'gruvbox',
|
|
||||||
-- },
|
|
||||||
tabline = {
|
tabline = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
'tabs',
|
'tabs',
|
||||||
@@ -16,6 +17,11 @@ return {
|
|||||||
lualine_z = {
|
lualine_z = {
|
||||||
'buffers',
|
'buffers',
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_x = {
|
||||||
|
'encoding', 'fileformat', 'filetype', get_schema
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -5,10 +5,18 @@ return {
|
|||||||
yaml = { 'cfn_lint' }
|
yaml = { 'cfn_lint' }
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ 'BufWritePost', 'BufReadPost' }, {
|
-- vim.api.nvim_create_autocmd({ 'BufWritePost', 'BufReadPost' }, {
|
||||||
callback = function()
|
-- callback = function()
|
||||||
require('lint').try_lint()
|
-- require('lint').try_lint()
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
end,
|
end,
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
';l',
|
||||||
|
function()
|
||||||
|
require('lint').try_lint()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
8
nvim/lua/plugins/yaml-companion.lua
Normal file
8
nvim/lua/plugins/yaml-companion.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
'mosheavni/yaml-companion.nvim',
|
||||||
|
config = function(_, opts)
|
||||||
|
local cfg = require('yaml-companion').setup(opts)
|
||||||
|
vim.lsp.config('yamlls', cfg)
|
||||||
|
vim.lsp.enable('yamlls')
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -16,9 +16,9 @@ set-option -g allow-rename
|
|||||||
|
|
||||||
# Bindings
|
# Bindings
|
||||||
## More comfortable prefix binding
|
## More comfortable prefix binding
|
||||||
unbind C-b
|
# unbind C-b
|
||||||
set-option -g prefix C-Space
|
# set-option -g prefix C-Space
|
||||||
bind-key C-Space send-prefix
|
# bind-key C-Space send-prefix
|
||||||
|
|
||||||
## More natural window splits
|
## More natural window splits
|
||||||
bind \\ split-window -h -c "#{pane_current_path}"
|
bind \\ split-window -h -c "#{pane_current_path}"
|
||||||
|
|||||||
Reference in New Issue
Block a user