diff options
| author | Henrik Nilsson <[email protected]> | 2021-07-08 18:58:22 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-08 12:58:22 -0400 | 
| commit | d9fc6ec826da6330b243fe200eedbebd16dbbd98 (patch) | |
| tree | b7e4523fcaf279b874d5d5b4043cf2b9ec18cd5d /lua | |
| parent | 53fed9d65538e0b9dcad6f32cca63b1d445a76dd (diff) | |
User config option to change Rust inline hint/param prefixes (#774)
* User configurable Rust inline hint prefixes
* Ordered the language list
* Rust param hints and ordered lang list
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/default-config.lua | 131 | 
1 files changed, 66 insertions, 65 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua index 87a9e99b..ea2642c2 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -101,76 +101,76 @@ O = {    },    lang = { -    python = { -      linter = "", -      isort = false, +    cmake = {}, +    clang = {        diagnostics = {          virtual_text = { spacing = 0, prefix = "ï„‘" },          signs = true,          underline = true,        }, -      analysis = { -        type_checking = "basic", -        auto_search_paths = true, -        use_library_code_types = true, -      }, +      cross_file_rename = true, +      header_insertion = "never", +    }, +    css = { +      virtual_text = true,      },      dart = {        sdk_path = "/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot",      }, -    lua = { +    docker = {}, +    efm = {}, +    elm = {}, +    emmet = { active = true }, +    elixir = {}, +    graphql = {}, +    go = {}, +    html = {}, +    java = {}, +    json = {        diagnostics = {          virtual_text = { spacing = 0, prefix = "ï„‘" },          signs = true,          underline = true,        },      }, -    sh = { -      -- @usage can be 'shellcheck' -      linter = "", -      -- @usage can be 'shfmt' +    kotlin = {}, +    latex = {}, +    lua = {        diagnostics = {          virtual_text = { spacing = 0, prefix = "ï„‘" },          signs = true,          underline = true,        },      }, -    tsserver = { -      -- @usage can be 'eslint' -      linter = "", -      diagnostics = { -        virtual_text = { spacing = 0, prefix = "ï„‘" }, -        signs = true, -        underline = true, +    php = { +      format = { +        format = { +          default = "psr12", +        }, +      }, +      environment = { +        php_version = "7.4",        }, -    }, -    json = {        diagnostics = {          virtual_text = { spacing = 0, prefix = "ï„‘" },          signs = true,          underline = true,        }, +      filetypes = { "php", "phtml" },      }, -    tailwindcss = { -      active = false, -      filetypes = { -        "html", -        "css", -        "scss", -        "javascript", -        "javascriptreact", -        "typescript", -        "typescriptreact", -      }, -    }, -    clang = { +    python = { +      linter = "", +      isort = false,        diagnostics = {          virtual_text = { spacing = 0, prefix = "ï„‘" },          signs = true,          underline = true,        }, -      cross_file_rename = true, -      header_insertion = "never", +      analysis = { +        type_checking = "basic", +        auto_search_paths = true, +        use_library_code_types = true, +      },      },      ruby = {        diagnostics = { @@ -180,14 +180,11 @@ O = {        },        filetypes = { "rb", "erb", "rakefile", "ruby" },      }, -    go = {}, -    elixir = {}, -    vim = {}, -    yaml = {}, -    terraform = {},      rust = {        rust_tools = {          active = false, +        parameter_hints_prefix = "<-", +        other_hints_prefix = "=>", -- prefix for all the other hints (type, chaining)        },        linter = "",        diagnostics = { @@ -196,37 +193,41 @@ O = {          underline = true,        },      }, -    svelte = {}, - -    php = { -      format = { -        format = { -          default = "psr12", -        }, +    sh = { +      -- @usage can be 'shellcheck' +      linter = "", +      -- @usage can be 'shfmt' +      diagnostics = { +        virtual_text = { spacing = 0, prefix = "ï„‘" }, +        signs = true, +        underline = true,        }, -      environment = { -        php_version = "7.4", +    }, +    svelte = {}, +    tailwindcss = { +      active = false, +      filetypes = { +        "html", +        "css", +        "scss", +        "javascript", +        "javascriptreact", +        "typescript", +        "typescriptreact",        }, +    }, +    terraform = {}, +    tsserver = { +      -- @usage can be 'eslint' +      linter = "",        diagnostics = {          virtual_text = { spacing = 0, prefix = "ï„‘" },          signs = true,          underline = true,        }, -      filetypes = { "php", "phtml" }, -    }, -    latex = {}, -    kotlin = {}, -    html = {}, -    elm = {}, -    emmet = { active = true }, -    graphql = {}, -    efm = {}, -    docker = {}, -    cmake = {}, -    java = {}, -    css = { -      virtual_text = true,      }, +    vim = {}, +    yaml = {},    },    dashboard = {  | 
