diff options
-rw-r--r-- | ftplugin/rust.lua | 4 | ||||
-rw-r--r-- | lua/default-config.lua | 131 |
2 files changed, 68 insertions, 67 deletions
diff --git a/ftplugin/rust.lua b/ftplugin/rust.lua index 6a6af9d2..4fb47582 100644 --- a/ftplugin/rust.lua +++ b/ftplugin/rust.lua @@ -32,11 +32,11 @@ if O.lang.rust.rust_tools.active then -- prefix for parameter hints -- default: "<-" - parameter_hints_prefix = "<-", + parameter_hints_prefix = O.lang.rust.rust_tools.parameter_hints_prefix, -- prefix for all the other hints (type, chaining) -- default: "=>" - other_hints_prefix = "=>", + other_hints_prefix = O.lang.rust.rust_tools.other_hints_prefix, -- whether to align to the lenght of the longest line in the file max_len_align = false, 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 = { |