Skip to content

Commit

Permalink
Lets work with wrapped lines
Browse files Browse the repository at this point in the history
Move pyright settings to lsp

Fix some BUILTINS for v0.10.0, update pre-commit

Add filetypes to terraform lsp

Set root_dir for terraformlsp using root pattern

Include hidden files in search with leader-fg

Add missing ensure_installed

add line seperator

Highlight selected buffer with white color font

Add vim repeat for motions

Add dracula theme

Add github copilot via zirbenbaum and enable completion with cmp

Add avante

Nord as default colorscheme

Remove AI for now, add k8s schema, improve yamllint/shfmt

Update kubernetes schemas

Uncomment for Mac

Replace stylua with yamlfmt

update precommit

update readme

add empty lines

Replace stylua with yamlfmt

Add conform for better formatting
  • Loading branch information
cschindlbeck committed Jan 31, 2025
1 parent ece1995 commit eec4892
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: yamlfmt
uses: yk-lab/[email protected]

lint:
runs-on: ubuntu-latest
steps:
Expand Down
22 changes: 22 additions & 0 deletions lua/plugins/formatter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
return {
"stevearc/conform.nvim",
opts = {},
config = function()
require("conform").setup({
formatters = {
yamlfmt = {
command = "yamlfmt --global_conf", -- Ensure yamlfmt is in your PATH
stdin = true, -- Makes yamlfmt read from stdin
},
},
formatters_by_ft = {
yaml = { "yamlfmt", stop_after_first = true },
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
})
end,
}

0 comments on commit eec4892

Please sign in to comment.