Move lsp config to local file structure
This commit is contained in:
parent
e5c3bb2492
commit
20801272fc
383 changed files with 11829 additions and 114 deletions
71
.config/nvim/lsp/anakin_language_server.lua
Normal file
71
.config/nvim/lsp/anakin_language_server.lua
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
---@brief
|
||||
---
|
||||
--- https://pypi.org/project/anakin-language-server/
|
||||
---
|
||||
--- `anakin-language-server` is yet another Jedi Python language server.
|
||||
---
|
||||
--- Available options:
|
||||
---
|
||||
--- * Initialization: https://github.com/muffinmad/anakin-language-server#initialization-option
|
||||
--- * Configuration: https://github.com/muffinmad/anakin-language-server#configuration-options
|
||||
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { 'anakinls' },
|
||||
filetypes = { 'python' },
|
||||
root_markers = {
|
||||
'pyproject.toml',
|
||||
'setup.py',
|
||||
'setup.cfg',
|
||||
'requirements.txt',
|
||||
'Pipfile',
|
||||
'.git',
|
||||
},
|
||||
settings = {
|
||||
anakinls = {
|
||||
pyflakes_errors = {
|
||||
-- Full list: https://github.com/PyCQA/pyflakes/blob/master/pyflakes/messages.py
|
||||
|
||||
'ImportStarNotPermitted',
|
||||
|
||||
'UndefinedExport',
|
||||
'UndefinedLocal',
|
||||
'UndefinedName',
|
||||
|
||||
'DuplicateArgument',
|
||||
'MultiValueRepeatedKeyLiteral',
|
||||
'MultiValueRepeatedKeyVariable',
|
||||
|
||||
'FutureFeatureNotDefined',
|
||||
'LateFutureImport',
|
||||
|
||||
'ReturnOutsideFunction',
|
||||
'YieldOutsideFunction',
|
||||
'ContinueOutsideLoop',
|
||||
'BreakOutsideLoop',
|
||||
|
||||
'TwoStarredExpressions',
|
||||
'TooManyExpressionsInStarredAssignment',
|
||||
|
||||
'ForwardAnnotationSyntaxError',
|
||||
'RaiseNotImplemented',
|
||||
|
||||
'StringDotFormatExtraPositionalArguments',
|
||||
'StringDotFormatExtraNamedArguments',
|
||||
'StringDotFormatMissingArgument',
|
||||
'StringDotFormatMixingAutomatic',
|
||||
'StringDotFormatInvalidFormat',
|
||||
|
||||
'PercentFormatInvalidFormat',
|
||||
'PercentFormatMixedPositionalAndNamed',
|
||||
'PercentFormatUnsupportedFormat',
|
||||
'PercentFormatPositionalCountMismatch',
|
||||
'PercentFormatExtraNamedArguments',
|
||||
'PercentFormatMissingArgument',
|
||||
'PercentFormatExpectedMapping',
|
||||
'PercentFormatExpectedSequence',
|
||||
'PercentFormatStarRequiresSequence',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue