diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/lua/config/treesitter.lua | 7 | ||||
| -rw-r--r-- | nvim/lua/plugins/format.lua | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/nvim/lua/config/treesitter.lua b/nvim/lua/config/treesitter.lua index df03ef2..5451c6d 100644 --- a/nvim/lua/config/treesitter.lua +++ b/nvim/lua/config/treesitter.lua | |||
| @@ -14,7 +14,7 @@ M.languages = { | |||
| 14 | "lua", | 14 | "lua", |
| 15 | "make", | 15 | "make", |
| 16 | "markdown", | 16 | "markdown", |
| 17 | "markdown_inline", | 17 | "markdown_inline", -- kein eigener Dateityp, nur fuer Injections in Markdown |
| 18 | "po", | 18 | "po", |
| 19 | "powershell", | 19 | "powershell", |
| 20 | "prisma", | 20 | "prisma", |
| @@ -32,6 +32,11 @@ local extra_filetypes = { | |||
| 32 | -- nvim-treesitter stellt keinen jsonc-Parser bereit; der json-Parser | 32 | -- nvim-treesitter stellt keinen jsonc-Parser bereit; der json-Parser |
| 33 | -- versteht // und /* */ Kommentare. | 33 | -- versteht // und /* */ Kommentare. |
| 34 | jsonc = "json", | 34 | jsonc = "json", |
| 35 | |||
| 36 | -- Dateityp und Parser heissen unterschiedlich; ohne diese Zuordnung findet | ||
| 37 | -- vim.treesitter.start() keinen Parser und die FileType-Autocmd feuert nicht. | ||
| 38 | sh = "bash", | ||
| 39 | ps1 = "powershell", | ||
| 35 | } | 40 | } |
| 36 | 41 | ||
| 37 | -- Macht die Parser der Filetypes ohne gleichnamigen Parser bekannt. | 42 | -- Macht die Parser der Filetypes ohne gleichnamigen Parser bekannt. |
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index 77abc76..d8f96e2 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua | |||
| @@ -27,7 +27,6 @@ return { | |||
| 27 | opts = { | 27 | opts = { |
| 28 | formatters_by_ft = { | 28 | formatters_by_ft = { |
| 29 | awk = gawk, | 29 | awk = gawk, |
| 30 | bash = shfmt, | ||
| 31 | c = clang, | 30 | c = clang, |
| 32 | cpp = clang, | 31 | cpp = clang, |
| 33 | html = prettier, | 32 | html = prettier, |
