feat: complete LSP and formatter configuration
- Add missing LSPs: lua_ls, bashls, yamlls, jsonls, marksman, taplo, sqls - Add missing formatters: prettier, shfmt, sqlfluff, cmake_format - Configure ruff with import organization and auto-fixes - Tune basedpyright to reduce diagnostic noise (basic mode) All LSPs verified attaching and formatters working correctly.
This commit is contained in:
parent
611ed89f33
commit
647b352970
3 changed files with 93 additions and 39 deletions
|
|
@ -67,16 +67,21 @@ function M.get_servers()
|
|||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
diagnosticMode = 'openFilesOnly',
|
||||
typeCheckingMode = 'standard',
|
||||
typeCheckingMode = 'basic',
|
||||
useLibraryCodeForTypes = true,
|
||||
|
||||
diagnosticSeverityOverrides = {
|
||||
reportOptionalCall = 'none',
|
||||
reportOptionalSubscript = 'none',
|
||||
reportOptionalMemberAccess = 'none',
|
||||
reportOptionalIterable = 'none',
|
||||
reportAttributeAccessIssue = 'none',
|
||||
reportUnknownMemberType = 'warning',
|
||||
reportUnknownVariableType = 'warning',
|
||||
reportUnknownAssignmentType = 'warning',
|
||||
reportUnknownMemberType = 'none',
|
||||
reportUnknownVariableType = 'none',
|
||||
reportUnknownArgumentType = 'none',
|
||||
reportUnknownParameterType = 'none',
|
||||
reportUnknownAssignmentType = 'none',
|
||||
reportMissingTypeStubs = 'none',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -99,6 +104,41 @@ function M.get_servers()
|
|||
root_dir = util.root_pattern('CMakeLists.txt', '.git'),
|
||||
},
|
||||
|
||||
-- Lua Language Server
|
||||
lua_ls = {
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = { version = 'LuaJIT' },
|
||||
diagnostics = {
|
||||
globals = { 'vim' },
|
||||
},
|
||||
workspace = {
|
||||
library = vim.api.nvim_get_runtime_file('', true),
|
||||
checkThirdParty = false,
|
||||
},
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Bash Language Server
|
||||
bashls = {},
|
||||
|
||||
-- YAML Language Server
|
||||
yamlls = {},
|
||||
|
||||
-- JSON Language Server
|
||||
jsonls = {},
|
||||
|
||||
-- Markdown Language Server
|
||||
marksman = {},
|
||||
|
||||
-- TOML Language Server
|
||||
taplo = {},
|
||||
|
||||
-- SQL Language Server
|
||||
sqls = {},
|
||||
|
||||
-- Add more servers here as needed
|
||||
-- Example:
|
||||
-- rust_analyzer = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue