diff options
author | Abouzar Parvan <[email protected]> | 2021-07-15 05:44:25 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 21:14:25 -0400 |
commit | f95e150518e40f08a2cb31365e90895e31465d7e (patch) | |
tree | eaae7a371124c4fb0a7778a79768a26be89d85a9 /lua/default-config.lua | |
parent | 7f11162bd80b37af8ae67e41f10e962baacf8047 (diff) |
Default config reformat (#951)
Diffstat (limited to 'lua/default-config.lua')
-rw-r--r-- | lua/default-config.lua | 224 |
1 files changed, 22 insertions, 202 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua index d3a6bf69..903606ed 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -85,196 +85,8 @@ O = { -- TODO move all of this into lang specific files, only require when using lang = { - cmake = { - formatter = { - exe = "clang-format", - args = {}, - }, - }, - css = { - virtual_text = true, - formatter = { - exe = "prettier", - args = {}, - }, - }, - dart = { - sdk_path = "/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot", - formatter = { - exe = "dart", - args = { "format" }, - }, - }, - docker = {}, efm = {}, - elm = {}, emmet = { active = false }, - elixir = { - formatter = { - exe = "mix", - args = { "format" }, - stdin = true, - }, - }, - graphql = {}, - go = { - formatter = { - exe = "gofmt", - args = {}, - }, - }, - html = {}, - java = { - java_tools = { - active = false, - }, - formatter = { - exe = "prettier", - args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" }, - }, - }, - json = { - diagnostics = { - virtual_text = { spacing = 0, prefix = "ï„‘" }, - signs = true, - underline = true, - }, - formatter = { - exe = "python", - args = { "-m", "json.tool" }, - }, - }, - kotlin = {}, - latex = { - filetypes = { "tex", "bib"}, - aux_directory = nil, - bibtex_formatter = "texlab", - diagnostics_delay = 300, - formatter_line_length = 80, - latex_formatter = "latexindent", - build = { - executable = "latexmk", - args = {'-pdf', '-interaction=nonstopmode', '-synctex=1', '%f'}, - on_save = false, - forward_search_after = false, - }, - chktex = { - on_open_and_save = false, - on_edit = false, - }, - forward_search = { - executable = nil, - args = {} - }, - latexindent = { - ["local"] = nil, - modify_line_breaks = false - }, - diagnostics = { - virtual_text = {spacing = 0, prefix = "ï„‘"}, - signs = true, - underline = true, - }, - auto_save = false, - ignore_errors = {}, - }, - lua = { - diagnostics = { - virtual_text = { spacing = 0, prefix = "ï„‘" }, - signs = true, - underline = true, - }, - formatter = { - exe = "stylua", - args = {}, - stdin = false, - }, - }, - php = { - format = { - format = { - default = "psr12", - }, - }, - environment = { - php_version = "7.4", - }, - diagnostics = { - virtual_text = { spacing = 0, prefix = "ï„‘" }, - signs = true, - underline = true, - }, - filetypes = { "php", "phtml" }, - formatter = { - exe = "phpcbf", - args = { "--standard=PSR12", vim.api.nvim_buf_get_name(0) }, - stdin = false, - }, - }, - python = { - -- @usage can be flake8 or yapf - linter = "", - isort = false, - diagnostics = { - virtual_text = { spacing = 0, prefix = "ï„‘" }, - signs = true, - underline = true, - }, - analysis = { - type_checking = "basic", - auto_search_paths = true, - use_library_code_types = true, - }, - formatter = { - exe = "yapf", - args = {}, - }, - }, - ruby = { - diagnostics = { - virtualtext = { spacing = 0, prefix = "ï„‘" }, - signs = true, - underline = true, - }, - filetypes = { "rb", "erb", "rakefile", "ruby" }, - formatter = { - exe = "rufo", - args = { "-x" }, - }, - }, - rust = { - rust_tools = { - active = false, - parameter_hints_prefix = "<-", - other_hints_prefix = "=>", -- prefix for all the other hints (type, chaining) - }, - -- @usage can be clippy - formatter = { - exe = "rustfmt", - args = { "--emit=stdout", "--edition=2018" }, - }, - linter = "", - diagnostics = { - virtual_text = { spacing = 0, prefix = "ï„‘" }, - signs = true, - underline = true, - }, - }, - sh = { - -- @usage can be 'shellcheck' - linter = "", - -- @usage can be 'shfmt' - diagnostics = { - virtual_text = { spacing = 0, prefix = "ï„‘" }, - signs = true, - underline = true, - }, - formatter = { - exe = "shfmt", - args = { "-w" }, - stdin = false, - }, - }, svelte = {}, tailwindcss = { active = false, @@ -288,13 +100,6 @@ O = { "typescriptreact", }, }, - terraform = { - formatter = { - exe = "terraform", - args = { "fmt" }, - stdin = false, - }, - }, tsserver = { -- @usage can be 'eslint' or 'eslint_d' linter = "", @@ -308,13 +113,6 @@ O = { args = {}, }, }, - vim = {}, - yaml = { - formatter = { - exe = "prettier", - args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" }, - }, - }, }, } @@ -330,3 +128,25 @@ require("core.treesitter").config() require("core.which-key").config() require("lang.clang").config() +require("lang.cmake").config() +require("lang.css").config() +require("lang.dart").config() +require("lang.dockerfile").config() +require("lang.elixir").config() +require("lang.elm").config() +require("lang.go").config() +require("lang.graphql").config() +require("lang.html").config() +require("lang.java").config() +require("lang.json").config() +require("lang.kotlin").config() +require("lang.lua").config() +require("lang.php").config() +require("lang.python").config() +require("lang.ruby").config() +require("lang.rust").config() +require("lang.sh").config() +require("lang.terraform").config() +require("lang.tex").config() +require("lang.vim").config() +require("lang.yaml").config() |