Format workspace with CodeFormat
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
-- requires shellcheck also (for linting)
|
||||
|
||||
return {
|
||||
cmd = { 'bash-language-server', 'start' },
|
||||
cmd_env = { GLOB_PATTERN = '*@(.sh|.inc|.bash|.command)' },
|
||||
single_file_support = true
|
||||
cmd = { "bash-language-server", "start", },
|
||||
cmd_env = { GLOB_PATTERN = "*@(.sh|.inc|.bash|.command)", },
|
||||
single_file_support = true,
|
||||
}
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
return {
|
||||
cmd = {
|
||||
'clangd',
|
||||
'--clang-tidy',
|
||||
'--enable-config',
|
||||
'--log=verbose'
|
||||
"clangd",
|
||||
"--clang-tidy",
|
||||
"--enable-config",
|
||||
"--log=verbose",
|
||||
},
|
||||
single_file_support = true,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { 'cmake-language-server' },
|
||||
cmd = { "cmake-language-server", },
|
||||
single_file_support = true,
|
||||
init_options = {
|
||||
buildDirectory = "build"
|
||||
}
|
||||
buildDirectory = "build",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,162 +15,162 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { 'diagnostic-languageserver', '--stdio' },
|
||||
cmd = { "diagnostic-languageserver", "--stdio", },
|
||||
single_file_support = true,
|
||||
-- For more info see https://github.com/iamcco/diagnostic-languageserver
|
||||
init_options = {
|
||||
filetypes = { python = 'flake8', lua = 'luaFormatter' },
|
||||
filetypes = { python = "flake8", lua = "luaFormatter", },
|
||||
linters = {
|
||||
-- some help from this:
|
||||
-- https://github.com/creativenull/diagnosticls-configs-nvim/blob/main/lua/diagnosticls-configs/linters/flake8.lua
|
||||
flake8 = {
|
||||
command = 'flake8',
|
||||
command = "flake8",
|
||||
args = {
|
||||
'--config',
|
||||
'tox.ini',
|
||||
'--format',
|
||||
'%(row)d,%(col)d,%(code).1s,%(code)s: %(text)s',
|
||||
'-'
|
||||
"--config",
|
||||
"tox.ini",
|
||||
"--format",
|
||||
"%(row)d,%(col)d,%(code).1s,%(code)s: %(text)s",
|
||||
"-",
|
||||
},
|
||||
rootPatterns = { 'Pipfile', '.git', 'tox.ini' },
|
||||
rootPatterns = { "Pipfile", ".git", "tox.ini", },
|
||||
isStdout = true,
|
||||
isStderr = false,
|
||||
debounce = 100,
|
||||
offsetLine = 0,
|
||||
offsetColumn = 0,
|
||||
sourceName = 'flake8',
|
||||
sourceName = "flake8",
|
||||
formatLines = 1,
|
||||
formatPattern = {
|
||||
[[(\d+),(\d+),([A-Z]),(.*)(\r|\n)*$]],
|
||||
{ line = 1, column = 2, security = 3, message = { 4 } }
|
||||
{ line = 1, column = 2, security = 3, message = { 4, }, },
|
||||
},
|
||||
securities = {
|
||||
-- Available securities are { 'error', 'warning', 'hint', 'info' }
|
||||
E = 'error',
|
||||
W = 'warning',
|
||||
B = 'hint',
|
||||
F = 'error',
|
||||
D = 'info'
|
||||
}
|
||||
}
|
||||
E = "error",
|
||||
W = "warning",
|
||||
B = "hint",
|
||||
F = "error",
|
||||
D = "info",
|
||||
},
|
||||
},
|
||||
},
|
||||
formatFiletypes = {
|
||||
python = { 'black', 'isort' },
|
||||
lua = { 'luaFormatter' },
|
||||
sh = { 'shfmt' }
|
||||
python = { "black", "isort", },
|
||||
lua = { "luaFormatter", },
|
||||
sh = { "shfmt", },
|
||||
},
|
||||
formatters = {
|
||||
black = {
|
||||
sourceName = 'black',
|
||||
command = 'black',
|
||||
sourceName = "black",
|
||||
command = "black",
|
||||
args = {
|
||||
'--stdin-filename',
|
||||
'%filename',
|
||||
'-t',
|
||||
'py39',
|
||||
'--quiet',
|
||||
'-'
|
||||
"--stdin-filename",
|
||||
"%filename",
|
||||
"-t",
|
||||
"py39",
|
||||
"--quiet",
|
||||
"-",
|
||||
},
|
||||
rootPatterns = { 'Pipfile', '.git', 'tox.ini' },
|
||||
rootPatterns = { "Pipfile", ".git", "tox.ini", },
|
||||
isStdout = true,
|
||||
isStderr = false,
|
||||
ignoreExitCode = false
|
||||
ignoreExitCode = false,
|
||||
},
|
||||
isort = {
|
||||
sourceName = 'isort',
|
||||
command = 'isort',
|
||||
args = { '--quiet', '-' },
|
||||
rootPatterns = { 'Pipfile', '.git', 'tox.ini' },
|
||||
sourceName = "isort",
|
||||
command = "isort",
|
||||
args = { "--quiet", "-", },
|
||||
rootPatterns = { "Pipfile", ".git", "tox.ini", },
|
||||
isStdout = true,
|
||||
isStderr = false,
|
||||
ignoreExitCode = false
|
||||
ignoreExitCode = false,
|
||||
},
|
||||
luaFormatter = {
|
||||
sourceName = 'luaFormatter',
|
||||
command = 'lua-format',
|
||||
sourceName = "luaFormatter",
|
||||
command = "lua-format",
|
||||
isStdout = true,
|
||||
isStderr = false,
|
||||
ignoreExitCode = false,
|
||||
args = {
|
||||
'--column-limit',
|
||||
'80', -- Column limit of one line
|
||||
'--indent-width',
|
||||
'4', -- Number of spaces used for indentation
|
||||
"--column-limit",
|
||||
"80", -- Column limit of one line
|
||||
"--indent-width",
|
||||
"4", -- Number of spaces used for indentation
|
||||
-- '--use-tab', -- Use tab for indentation
|
||||
'--no-use-tab', -- Do not use tab for indentation
|
||||
'--tab-width',
|
||||
'4', -- Number of spaces used per tab
|
||||
'--continuation-indent-width',
|
||||
'4', -- Indent width for continuations line
|
||||
'--spaces-before-call',
|
||||
'1', -- Space on function calls
|
||||
'--keep-simple-control-block-one-line', -- Keep block in one line
|
||||
"--no-use-tab", -- Do not use tab for indentation
|
||||
"--tab-width",
|
||||
"4", -- Number of spaces used per tab
|
||||
"--continuation-indent-width",
|
||||
"4", -- Indent width for continuations line
|
||||
"--spaces-before-call",
|
||||
"1", -- Space on function calls
|
||||
"--keep-simple-control-block-one-line", -- Keep block in one line
|
||||
-- '--no-keep-simple-control-block-one-line', -- Do not keep block in one line
|
||||
'--keep-simple-function-one-line', -- Keep function in one line
|
||||
"--keep-simple-function-one-line", -- Keep function in one line
|
||||
-- '--no-keep-simple-function-one-line', -- Do not keep function in one line
|
||||
'--align-args', -- Align the arguments
|
||||
"--align-args", -- Align the arguments
|
||||
-- '--no-align-args', -- Do not align the arguments
|
||||
'--break-after-functioncall-lp', -- Break after '(' of function call
|
||||
"--break-after-functioncall-lp", -- Break after '(' of function call
|
||||
-- '--no-break-after-functioncall-lp', -- Do not break after '(' of function call
|
||||
'--break-before-functioncall-rp', -- Break before ')' of function call
|
||||
"--break-before-functioncall-rp", -- Break before ')' of function call
|
||||
-- '--no-break-before-functioncall-rp', -- Do not break before ')' of function call
|
||||
-- '--spaces-inside-functioncall-parens', -- Put spaces on the inside of parens in function calls
|
||||
'--no-spaces-inside-functioncall-parens', -- Do not put spaces on the inside of parens in function calls
|
||||
"--no-spaces-inside-functioncall-parens", -- Do not put spaces on the inside of parens in function calls
|
||||
-- '--spaces-inside-functiondef-parens', -- Put spaces on the inside of parens in function headers
|
||||
'--no-spaces-inside-functiondef-parens', -- Do not put spaces on the inside of parens in function headers
|
||||
'--align-parameter', -- Align the parameters
|
||||
"--no-spaces-inside-functiondef-parens", -- Do not put spaces on the inside of parens in function headers
|
||||
"--align-parameter", -- Align the parameters
|
||||
-- '--no-align-parameter', -- Do not align the parameters
|
||||
'--chop-down-parameter', -- Chop down all parameters
|
||||
"--chop-down-parameter", -- Chop down all parameters
|
||||
-- '--no-chop-down-parameter', -- Do not chop down all parameters
|
||||
'--break-after-functiondef-lp', -- Break after '(' of function def
|
||||
"--break-after-functiondef-lp", -- Break after '(' of function def
|
||||
-- '--no-break-after-functiondef-lp', -- Do not break after '(' of function def
|
||||
'--break-before-functiondef-rp', -- Break before ')' of function def
|
||||
"--break-before-functiondef-rp", -- Break before ')' of function def
|
||||
-- '--no-break-before-functiondef-rp', -- Do not break before ')' of function def
|
||||
'--align-table-field', -- Align fields of table
|
||||
"--align-table-field", -- Align fields of table
|
||||
-- '--no-align-table-field', -- Do not align fields of table
|
||||
'--break-after-table-lb', -- Break after '{' of table
|
||||
"--break-after-table-lb", -- Break after '{' of table
|
||||
-- '--no-break-after-table-lb', -- Do not break after '{' of table
|
||||
'--break-before-table-rb', -- Break before '}' of table
|
||||
"--break-before-table-rb", -- Break before '}' of table
|
||||
-- '--no-break-before-table-rb', -- Do not break before '}' of table
|
||||
'--chop-down-table', -- Chop down any table
|
||||
"--chop-down-table", -- Chop down any table
|
||||
-- '--no-chop-down-table', -- Do not chop down any table
|
||||
'--chop-down-kv-table', -- Chop down table if table contains key
|
||||
"--chop-down-kv-table", -- Chop down table if table contains key
|
||||
-- '--no-chop-down-kv-table', -- Do not chop down table if table contains key
|
||||
'--table-sep',
|
||||
',', -- Character to separate table fields
|
||||
'--column-table-limit',
|
||||
'80', -- Column limit of each line of a table
|
||||
"--table-sep",
|
||||
",", -- Character to separate table fields
|
||||
"--column-table-limit",
|
||||
"80", -- Column limit of each line of a table
|
||||
-- '--extra-sep-at-table-end', -- Add a extra field separator
|
||||
'--no-extra-sep-at-table-end', -- Do not add a extra field separator
|
||||
'--spaces-inside-table-braces', -- Put spaces on the inside of braces in table constructors
|
||||
"--no-extra-sep-at-table-end", -- Do not add a extra field separator
|
||||
"--spaces-inside-table-braces", -- Put spaces on the inside of braces in table constructors
|
||||
-- '--no-spaces-inside-table-braces', -- Do not put spaces on the inside of braces in table constructors
|
||||
'--break-after-operator', -- Put break after operators
|
||||
"--break-after-operator", -- Put break after operators
|
||||
-- '--no-break-after-operator', -- Do not put break after operators
|
||||
'--double-quote-to-single-quote', -- Transform string literals to use single quote
|
||||
"--double-quote-to-single-quote", -- Transform string literals to use single quote
|
||||
-- '--no-double-quote-to-single-quote', -- Do not transform string literals to use single quote
|
||||
-- '--single-quote-to-double-quote', -- Transform string literals to use double
|
||||
'--no-single-quote-to-double-quote', -- Do not transform string literals to use double
|
||||
'--spaces-around-equals-in-field', -- Put spaces around the equal sign in key/value fields
|
||||
"--no-single-quote-to-double-quote", -- Do not transform string literals to use double
|
||||
"--spaces-around-equals-in-field", -- Put spaces around the equal sign in key/value fields
|
||||
-- '--no-spaces-around-equals-in-field', -- Do not put spaces around the equal sign in key/value fields
|
||||
'--line-breaks-after-function-body',
|
||||
'1', -- Line brakes after function body
|
||||
'--line-separator',
|
||||
'input' -- input(determined by the input content),
|
||||
"--line-breaks-after-function-body",
|
||||
"1", -- Line brakes after function body
|
||||
"--line-separator",
|
||||
"input", -- input(determined by the input content),
|
||||
-- os(Use line ending of the current Operating system),
|
||||
-- lf(Unix style "\n"),
|
||||
-- crlf(Windows style "\r\n"),
|
||||
-- cr(classic Max style "\r")
|
||||
}
|
||||
},
|
||||
},
|
||||
shfmt = {
|
||||
sourceName = 'shfmt',
|
||||
command = 'shfmt',
|
||||
args = { '-s', '-i', '4', '-ci' },
|
||||
rootPatterns = { 'Pipfile', '.git', 'tox.ini' },
|
||||
sourceName = "shfmt",
|
||||
command = "shfmt",
|
||||
args = { "-s", "-i", "4", "-ci", },
|
||||
rootPatterns = { "Pipfile", ".git", "tox.ini", },
|
||||
isStdout = true,
|
||||
isStderr = false,
|
||||
ignoreExitCode = false
|
||||
}
|
||||
}
|
||||
}
|
||||
ignoreExitCode = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { "golangci-lint-langserver" },
|
||||
cmd = { "golangci-lint-langserver", },
|
||||
init_options = {
|
||||
command = { "golangci-lint", "run", "--out-format", "json" }
|
||||
}
|
||||
}
|
||||
command = { "golangci-lint", "run", "--out-format", "json", },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { "gopls", "serve" },
|
||||
cmd = { "gopls", "serve", },
|
||||
-- https://github.com/golang/tools/blob/master/gopls/doc/settings.md
|
||||
settings = {
|
||||
gopls = {
|
||||
@@ -27,7 +27,7 @@ return {
|
||||
run_vulncheck_exp = true,
|
||||
tidy = true,
|
||||
upgrade_dependency = true,
|
||||
vendor = true
|
||||
vendor = true,
|
||||
},
|
||||
usePlaceholders = true,
|
||||
analyses = {
|
||||
@@ -77,8 +77,8 @@ return {
|
||||
undeclaredname = true,
|
||||
unusedvariable = true,
|
||||
fillstruct = true,
|
||||
stubmethods = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stubmethods = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
return {
|
||||
cmd = {
|
||||
'java', '-jar',
|
||||
'/usr/share/java/groovy-language-server/groovy-language-server-all.jar'
|
||||
"java", "-jar",
|
||||
"/usr/share/java/groovy-language-server/groovy-language-server-all.jar",
|
||||
},
|
||||
single_file_support = true
|
||||
}
|
||||
single_file_support = true,
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { 'jedi-language-server' },
|
||||
cmd = { "jedi-language-server", },
|
||||
single_file_support = true,
|
||||
-- For more info see https://github.com/pappasam/jedi-language-server#configurationSources
|
||||
-- and https://github.com/pappasam/coc-jedi#configuration (good descriptions)
|
||||
@@ -41,7 +41,7 @@ return {
|
||||
-- That said, there are situations where IDE developers,
|
||||
-- or some programmers in some code bases, may want to filter some completions by name.
|
||||
-- This flexible interface is provided to accommodate these advanced use cases.
|
||||
ignorePatterns = {}
|
||||
ignorePatterns = {},
|
||||
},
|
||||
-- Built-in diagnostics seem to be very basic,
|
||||
-- to the point where you are wondering if it's even active.
|
||||
@@ -63,7 +63,7 @@ return {
|
||||
-- When diagnostics are enabled, run on document save (to disk)
|
||||
-- type: boolean
|
||||
-- default: true
|
||||
didSave = true
|
||||
didSave = true,
|
||||
},
|
||||
hover = {
|
||||
-- Enable (or disable) all hover text.
|
||||
@@ -87,17 +87,17 @@ return {
|
||||
-- type: string[]
|
||||
-- default: []
|
||||
disable = {
|
||||
class = { all = false, names = {}, fullNames = {} },
|
||||
class = { all = false, names = {}, fullNames = {}, },
|
||||
-- Need to escape lua keyword
|
||||
['function'] = { all = false, names = {}, fullNames = {} },
|
||||
instance = { all = false, names = {}, fullNames = {} },
|
||||
keyword = { all = false, names = {}, fullNames = {} },
|
||||
module = { all = false, names = {}, fullNames = {} },
|
||||
param = { all = false, names = {}, fullNames = {} },
|
||||
path = { all = false, names = {}, fullNames = {} },
|
||||
property = { all = false, names = {}, fullNames = {} },
|
||||
statement = { all = false, names = {}, fullNames = {} }
|
||||
}
|
||||
["function"] = { all = false, names = {}, fullNames = {}, },
|
||||
instance = { all = false, names = {}, fullNames = {}, },
|
||||
keyword = { all = false, names = {}, fullNames = {}, },
|
||||
module = { all = false, names = {}, fullNames = {}, },
|
||||
param = { all = false, names = {}, fullNames = {}, },
|
||||
path = { all = false, names = {}, fullNames = {}, },
|
||||
property = { all = false, names = {}, fullNames = {}, },
|
||||
statement = { all = false, names = {}, fullNames = {}, },
|
||||
},
|
||||
},
|
||||
jediSettings = {
|
||||
-- Modules that jedi will directly import without analyzing.
|
||||
@@ -117,7 +117,7 @@ return {
|
||||
-- Print jedi debugging messages to stderr.
|
||||
-- type: boolean
|
||||
-- default: false
|
||||
debug = false
|
||||
debug = false,
|
||||
},
|
||||
-- The preferred MarkupKind for all jedi-language-server messages that take MarkupContent.
|
||||
-- type: string
|
||||
@@ -154,18 +154,18 @@ return {
|
||||
-- If you manually set this option, it overrides the default.
|
||||
-- Setting it to an empty array will result in no ignored folders.
|
||||
ignoreFolders = {
|
||||
'.nox', '.tox', '.venv', '__pycache__', 'venv',
|
||||
'artifacts', 'config', '.vscode', '.pytest_cache',
|
||||
'build', 'scripts', 'incoax_tests.egg-info',
|
||||
'node_modules'
|
||||
".nox", ".tox", ".venv", "__pycache__", "venv",
|
||||
"artifacts", "config", ".vscode", ".pytest_cache",
|
||||
"build", "scripts", "incoax_tests.egg-info",
|
||||
"node_modules",
|
||||
},
|
||||
-- Maximum number of symbols returned by a call to workspace/symbols.
|
||||
-- type: number
|
||||
-- default: 20
|
||||
-- A value less than or equal to zero removes the maximum
|
||||
-- and allows jedi-language-server to return all workplace symbols found by jedi.
|
||||
maxSymbols = 20
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
maxSymbols = 20,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,16 +15,16 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { 'lemminx' },
|
||||
cmd = { "lemminx", },
|
||||
single_file_support = true,
|
||||
init_options = {
|
||||
settings = {
|
||||
xml = {
|
||||
trace = { server = 'verbose' },
|
||||
trace = { server = "verbose", },
|
||||
catalogs = {},
|
||||
logs = {
|
||||
client = false,
|
||||
file = '/home/oscar/lsp4xml.log'
|
||||
file = "/home/oscar/lsp4xml.log",
|
||||
},
|
||||
format = {
|
||||
splitAttributes = true,
|
||||
@@ -32,9 +32,9 @@ return {
|
||||
joinContentLines = true,
|
||||
joinCommentLines = false,
|
||||
spaceBeforeEmptyCloseLine = false,
|
||||
enabled = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
+13
-13
@@ -14,34 +14,34 @@
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
local runtime_path = vim.split(package.path, ';')
|
||||
table.insert(runtime_path, 'lua/?.lua')
|
||||
table.insert(runtime_path, 'lua/?/init.lua')
|
||||
local runtime_path = vim.split(package.path, ";")
|
||||
table.insert(runtime_path, "lua/?.lua")
|
||||
table.insert(runtime_path, "lua/?/init.lua")
|
||||
|
||||
-- spec: https://luals.github.io/wiki/settings/
|
||||
|
||||
return {
|
||||
cmd = { 'lua-language-server' },
|
||||
cmd = { "lua-language-server", },
|
||||
single_file_support = true,
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT',
|
||||
version = "LuaJIT",
|
||||
-- Setup your lua path
|
||||
path = runtime_path
|
||||
path = runtime_path,
|
||||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
globals = { 'vim' }
|
||||
globals = { "vim", },
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
library = vim.api.nvim_get_runtime_file('', true),
|
||||
checkThirdParty = false
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
checkThirdParty = false,
|
||||
},
|
||||
-- Do not send telemetry data containing a randomized but unique identifier
|
||||
telemetry = { enable = false }
|
||||
}
|
||||
}
|
||||
}
|
||||
telemetry = { enable = false, },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
+18
-18
@@ -15,7 +15,7 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { 'pylsp' },
|
||||
cmd = { "pylsp", },
|
||||
single_file_support = true,
|
||||
-- Reference: https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md
|
||||
settings = {
|
||||
@@ -23,11 +23,11 @@ return {
|
||||
-- configurationSources = { "flake8", "jedi_completion", "jedi_definition", "jedi_hover", "jedi_references", "jedi_signature_help", "jedi_symbols" },
|
||||
plugins = {
|
||||
flake8 = {
|
||||
config = 'tox.ini',
|
||||
enabled = true
|
||||
config = "tox.ini",
|
||||
enabled = true,
|
||||
-- executable = "flake8"
|
||||
},
|
||||
pyls_isort = { enabled = true },
|
||||
pyls_isort = { enabled = true, },
|
||||
jedi_completion = {
|
||||
enabled = true,
|
||||
include_params = false,
|
||||
@@ -36,26 +36,26 @@ return {
|
||||
eager = true,
|
||||
resolve_at_most = 25,
|
||||
cache_for = {
|
||||
'pandas',
|
||||
'numpy',
|
||||
'tensorflow',
|
||||
'matplotlib'
|
||||
}
|
||||
"pandas",
|
||||
"numpy",
|
||||
"tensorflow",
|
||||
"matplotlib",
|
||||
},
|
||||
},
|
||||
jedi_definition = {
|
||||
enabled = true,
|
||||
follow_imports = true,
|
||||
follow_builtin_imports = true
|
||||
follow_builtin_imports = true,
|
||||
},
|
||||
jedi_hover = { enabled = true },
|
||||
jedi_references = { enabled = true },
|
||||
jedi_signature_help = { enabled = true },
|
||||
jedi_hover = { enabled = true, },
|
||||
jedi_references = { enabled = true, },
|
||||
jedi_signature_help = { enabled = true, },
|
||||
jedi_symbols = {
|
||||
enabled = true,
|
||||
all_scopes = true,
|
||||
include_import_symbols = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
include_import_symbols = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { 'pyright-langserver', '--stdio' },
|
||||
cmd = { "pyright-langserver", "--stdio", },
|
||||
single_file_support = true,
|
||||
-- see https://github.com/microsoft/pyright/blob/main/docs/configuration.md
|
||||
-- and https://github.com/fannheyward/coc-pyright
|
||||
@@ -26,14 +26,14 @@ return {
|
||||
analysis = {
|
||||
autoImportCompletions = true,
|
||||
autoSearchPaths = true,
|
||||
diagnosticMode = 'workspace',
|
||||
stubPath = 'typings',
|
||||
diagnosticMode = "workspace",
|
||||
stubPath = "typings",
|
||||
typeschedPaths = {},
|
||||
diagnosticSeverityOverrides = {},
|
||||
typeCheckingMode = 'off',
|
||||
useLibraryCodeForTypes = true
|
||||
typeCheckingMode = "off",
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
completion = { importSupport = true, snippetSupport = true }
|
||||
}
|
||||
}
|
||||
completion = { importSupport = true, snippetSupport = true, },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,24 +15,24 @@
|
||||
]]
|
||||
|
||||
return {
|
||||
cmd = { 'rust-analyzer' },
|
||||
cmd = { "rust-analyzer", },
|
||||
settings = {
|
||||
-- https://github.com/rust-lang/rust-analyzer/blob/master/docs/user/generated_config.adoc
|
||||
['rust-analyzer'] = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = {
|
||||
-- Extra environment variables that will be set when running cargo, rustc
|
||||
-- or other commands within the workspace. Useful for setting RUSTFLAGS.
|
||||
extraEnv = {
|
||||
OPENSSL_INCLUDE_DIR = '/usr/include/openssl-1.0/',
|
||||
OPENSSL_LIB_DIR = '/usr/lib/openssl-1.0/'
|
||||
}
|
||||
}
|
||||
OPENSSL_INCLUDE_DIR = "/usr/include/openssl-1.0/",
|
||||
OPENSSL_LIB_DIR = "/usr/lib/openssl-1.0/",
|
||||
},
|
||||
},
|
||||
--[[ inlayHints = {
|
||||
closingBraceHints = {
|
||||
-- Whether to show inlay hints after a closing `}` to indicate what item it belongs to.
|
||||
enable = false
|
||||
},
|
||||
} ]]
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user