mirror of https://github.com/LazyVim/starter
Lsp symbols for latex
parent
5d3f173b42
commit
840ee35eb3
377
lua/output.txt
377
lua/output.txt
|
@ -1,377 +0,0 @@
|
|||
|
||||
{ {
|
||||
children = { {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 13,
|
||||
name = "Definition",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 16,
|
||||
line = 18
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 15
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 16,
|
||||
line = 18
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 15
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = { {
|
||||
children = { {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 176,
|
||||
line = 23
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 23
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 176,
|
||||
line = 23
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 23
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 107,
|
||||
line = 24
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 24
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 107,
|
||||
line = 24
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 24
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = { {
|
||||
children = { {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 40,
|
||||
line = 28
|
||||
},
|
||||
start = {
|
||||
character = 9,
|
||||
line = 28
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 40,
|
||||
line = 28
|
||||
},
|
||||
start = {
|
||||
character = 9,
|
||||
line = 28
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 53,
|
||||
line = 29
|
||||
},
|
||||
start = {
|
||||
character = 9,
|
||||
line = 29
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 53,
|
||||
line = 29
|
||||
},
|
||||
start = {
|
||||
character = 9,
|
||||
line = 29
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 45,
|
||||
line = 30
|
||||
},
|
||||
start = {
|
||||
character = 9,
|
||||
line = 30
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 45,
|
||||
line = 30
|
||||
},
|
||||
start = {
|
||||
character = 9,
|
||||
line = 30
|
||||
}
|
||||
}
|
||||
} },
|
||||
deprecated = false,
|
||||
kind = 10,
|
||||
name = "Enumerate",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 23,
|
||||
line = 31
|
||||
},
|
||||
start = {
|
||||
character = 8,
|
||||
line = 27
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 23,
|
||||
line = 31
|
||||
},
|
||||
start = {
|
||||
character = 8,
|
||||
line = 27
|
||||
}
|
||||
}
|
||||
} },
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 23,
|
||||
line = 31
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 25
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 23,
|
||||
line = 31
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 25
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 45,
|
||||
line = 32
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 32
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 45,
|
||||
line = 32
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 32
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 42,
|
||||
line = 33
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 33
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 42,
|
||||
line = 33
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 33
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 22,
|
||||
name = "Item",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 75,
|
||||
line = 34
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 34
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 75,
|
||||
line = 34
|
||||
},
|
||||
start = {
|
||||
character = 2,
|
||||
line = 34
|
||||
}
|
||||
}
|
||||
} },
|
||||
deprecated = false,
|
||||
kind = 10,
|
||||
name = "Enumerate",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 16,
|
||||
line = 35
|
||||
},
|
||||
start = {
|
||||
character = 1,
|
||||
line = 22
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 16,
|
||||
line = 35
|
||||
},
|
||||
start = {
|
||||
character = 1,
|
||||
line = 22
|
||||
}
|
||||
}
|
||||
} },
|
||||
deprecated = false,
|
||||
kind = 13,
|
||||
name = "Theorem",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 13,
|
||||
line = 36
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 20
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 13,
|
||||
line = 36
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 20
|
||||
}
|
||||
}
|
||||
}, {
|
||||
children = {},
|
||||
deprecated = false,
|
||||
kind = 10,
|
||||
name = "Enumerate",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 15,
|
||||
line = 39
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 37
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 15,
|
||||
line = 39
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 37
|
||||
}
|
||||
}
|
||||
} },
|
||||
deprecated = false,
|
||||
kind = 2,
|
||||
name = "1 Main result",
|
||||
range = {
|
||||
["end"] = {
|
||||
character = 15,
|
||||
line = 39
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 13
|
||||
}
|
||||
},
|
||||
selectionRange = {
|
||||
["end"] = {
|
||||
character = 15,
|
||||
line = 39
|
||||
},
|
||||
start = {
|
||||
character = 0,
|
||||
line = 13
|
||||
}
|
||||
}
|
||||
} }
|
|
@ -8,6 +8,12 @@ local excluded_list = {
|
|||
".git",
|
||||
}
|
||||
return {
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
kind_filter = { tex = true }
|
||||
}
|
||||
},
|
||||
{
|
||||
'tomasr/molokai', -- colorscheme
|
||||
config = function()
|
||||
|
|
328
lua/test.txt
328
lua/test.txt
|
@ -1,328 +0,0 @@
|
|||
{
|
||||
_log_prefix = "LSP[texlab]",
|
||||
_on_attach_cbs = { <function 55> },
|
||||
_on_exit_cbs = { <function 56>, <function 2> },
|
||||
_on_init_cbs = { <function 57> },
|
||||
_trace = "off",
|
||||
attached_buffers = {
|
||||
[7] = true
|
||||
},
|
||||
cancel_request = <function 58>,
|
||||
capabilities = <6>{
|
||||
general = {
|
||||
positionEncodings = { "utf-16" }
|
||||
},
|
||||
textDocument = {
|
||||
callHierarchy = {
|
||||
dynamicRegistration = false
|
||||
},
|
||||
codeAction = {
|
||||
codeActionLiteralSupport = {
|
||||
codeActionKind = {
|
||||
valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }
|
||||
}
|
||||
},
|
||||
dataSupport = true,
|
||||
dynamicRegistration = true,
|
||||
isPreferredSupport = true,
|
||||
resolveSupport = {
|
||||
properties = { "edit" }
|
||||
}
|
||||
},
|
||||
completion = {
|
||||
completionItem = {
|
||||
commitCharactersSupport = false,
|
||||
deprecatedSupport = true,
|
||||
documentationFormat = { "markdown", "plaintext" },
|
||||
insertReplaceSupport = true,
|
||||
insertTextModeSupport = {
|
||||
valueSet = { 1 }
|
||||
},
|
||||
labelDetailsSupport = true,
|
||||
preselectSupport = false,
|
||||
resolveSupport = {
|
||||
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
|
||||
},
|
||||
snippetSupport = true,
|
||||
tagSupport = {
|
||||
valueSet = { 1 }
|
||||
}
|
||||
},
|
||||
completionItemKind = {
|
||||
valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }
|
||||
},
|
||||
completionList = {
|
||||
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
|
||||
},
|
||||
contextSupport = true,
|
||||
dynamicRegistration = false,
|
||||
insertTextMode = 1
|
||||
},
|
||||
declaration = {
|
||||
linkSupport = true
|
||||
},
|
||||
definition = {
|
||||
dynamicRegistration = true,
|
||||
linkSupport = true
|
||||
},
|
||||
diagnostic = {
|
||||
dynamicRegistration = false
|
||||
},
|
||||
documentHighlight = {
|
||||
dynamicRegistration = false
|
||||
},
|
||||
documentSymbol = {
|
||||
dynamicRegistration = false,
|
||||
hierarchicalDocumentSymbolSupport = true,
|
||||
symbolKind = {
|
||||
valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
|
||||
}
|
||||
},
|
||||
formatting = {
|
||||
dynamicRegistration = true
|
||||
},
|
||||
hover = {
|
||||
contentFormat = { "markdown", "plaintext" },
|
||||
dynamicRegistration = true
|
||||
},
|
||||
implementation = {
|
||||
linkSupport = true
|
||||
},
|
||||
inlayHint = {
|
||||
dynamicRegistration = true,
|
||||
resolveSupport = {
|
||||
properties = { "textEdits", "tooltip", "location", "command" }
|
||||
}
|
||||
},
|
||||
publishDiagnostics = {
|
||||
dataSupport = true,
|
||||
relatedInformation = true,
|
||||
tagSupport = {
|
||||
valueSet = { 1, 2 }
|
||||
}
|
||||
},
|
||||
rangeFormatting = {
|
||||
dynamicRegistration = true
|
||||
},
|
||||
references = {
|
||||
dynamicRegistration = false
|
||||
},
|
||||
rename = {
|
||||
dynamicRegistration = true,
|
||||
prepareSupport = true
|
||||
},
|
||||
semanticTokens = {
|
||||
augmentsSyntaxTokens = true,
|
||||
dynamicRegistration = false,
|
||||
formats = { "relative" },
|
||||
multilineTokenSupport = false,
|
||||
overlappingTokenSupport = true,
|
||||
requests = {
|
||||
full = {
|
||||
delta = true
|
||||
},
|
||||
range = false
|
||||
},
|
||||
serverCancelSupport = false,
|
||||
tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" },
|
||||
tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" }
|
||||
},
|
||||
signatureHelp = {
|
||||
dynamicRegistration = false,
|
||||
signatureInformation = {
|
||||
activeParameterSupport = true,
|
||||
documentationFormat = { "markdown", "plaintext" },
|
||||
parameterInformation = {
|
||||
labelOffsetSupport = true
|
||||
}
|
||||
}
|
||||
},
|
||||
synchronization = {
|
||||
didSave = true,
|
||||
dynamicRegistration = false,
|
||||
willSave = true,
|
||||
willSaveWaitUntil = true
|
||||
},
|
||||
typeDefinition = {
|
||||
linkSupport = true
|
||||
}
|
||||
},
|
||||
window = {
|
||||
showDocument = {
|
||||
support = true
|
||||
},
|
||||
showMessage = {
|
||||
messageActionItem = {
|
||||
additionalPropertiesSupport = false
|
||||
}
|
||||
},
|
||||
workDoneProgress = true
|
||||
},
|
||||
workspace = {
|
||||
applyEdit = true,
|
||||
configuration = true,
|
||||
didChangeConfiguration = {
|
||||
dynamicRegistration = false
|
||||
},
|
||||
didChangeWatchedFiles = {
|
||||
dynamicRegistration = true,
|
||||
relativePatternSupport = true
|
||||
},
|
||||
fileOperations = {
|
||||
didRename = true,
|
||||
willRename = true
|
||||
},
|
||||
inlayHint = {
|
||||
refreshSupport = true
|
||||
},
|
||||
semanticTokens = {
|
||||
refreshSupport = true
|
||||
},
|
||||
symbol = {
|
||||
dynamicRegistration = false,
|
||||
symbolKind = {
|
||||
valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
|
||||
}
|
||||
},
|
||||
workspaceEdit = {
|
||||
resourceOperations = { "rename", "create", "delete" }
|
||||
},
|
||||
workspaceFolders = true
|
||||
}
|
||||
},
|
||||
commands = {},
|
||||
config = {
|
||||
autostart = true,
|
||||
capabilities = <table 6>,
|
||||
cmd = { "texlab" },
|
||||
cmd_cwd = "/Users/fengyuanlin/test",
|
||||
filetypes = { "tex", "plaintex", "bib" },
|
||||
handlers = <7>{},
|
||||
init_options = vim.empty_dict(),
|
||||
keys = { { "<Leader>K", "<plug>(vimtex-doc-package)",
|
||||
desc = "Vimtex Docs",
|
||||
mode = "n",
|
||||
silent = true
|
||||
} },
|
||||
log_level = 2,
|
||||
message_level = 2,
|
||||
name = "texlab",
|
||||
on_attach = <function 55>,
|
||||
on_exit = <function 56>,
|
||||
on_init = <function 57>,
|
||||
root_dir = "/Users/fengyuanlin/test",
|
||||
settings = <8>{
|
||||
texlab = {
|
||||
bibtexFormatter = "texlab",
|
||||
build = {
|
||||
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
|
||||
executable = "latexmk",
|
||||
forwardSearchAfter = false,
|
||||
onSave = false
|
||||
},
|
||||
chktex = {
|
||||
onEdit = false,
|
||||
onOpenAndSave = false
|
||||
},
|
||||
diagnosticsDelay = 300,
|
||||
formatterLineLength = 80,
|
||||
forwardSearch = {
|
||||
args = {}
|
||||
},
|
||||
latexFormatter = "latexindent",
|
||||
latexindent = {
|
||||
modifyLineBreaks = false
|
||||
}
|
||||
}
|
||||
},
|
||||
single_file_support = true,
|
||||
workspace_folders = <9>{ {
|
||||
name = "/Users/fengyuanlin/test",
|
||||
uri = "file:///Users/fengyuanlin/test"
|
||||
} },
|
||||
<metatable> = <10>{
|
||||
__tostring = <function 59>
|
||||
}
|
||||
},
|
||||
dynamic_capabilities = {
|
||||
capabilities = {},
|
||||
client_id = 2,
|
||||
<metatable> = {
|
||||
__index = <table 3>
|
||||
}
|
||||
},
|
||||
flags = {},
|
||||
get_language_id = <function 17>,
|
||||
handlers = <table 7>,
|
||||
id = 2,
|
||||
initialized = true,
|
||||
is_stopped = <function 60>,
|
||||
messages = {
|
||||
messages = {},
|
||||
name = "texlab",
|
||||
progress = {},
|
||||
status = {}
|
||||
},
|
||||
name = "texlab",
|
||||
notify = <function 61>,
|
||||
offset_encoding = "utf-16",
|
||||
on_attach = <function 62>,
|
||||
progress = {
|
||||
_idx_read = 0,
|
||||
_idx_write = 0,
|
||||
_items = {},
|
||||
_size = 51,
|
||||
pending = {},
|
||||
<metatable> = {
|
||||
__call = <function 63>,
|
||||
__index = <table 4>
|
||||
}
|
||||
},
|
||||
request = <function 64>,
|
||||
request_sync = <function 65>,
|
||||
requests = {},
|
||||
root_dir = "/Users/fengyuanlin/test",
|
||||
rpc = {
|
||||
is_closing = <function 66>,
|
||||
notify = <function 67>,
|
||||
request = <function 68>,
|
||||
terminate = <function 69>
|
||||
},
|
||||
server_capabilities = {
|
||||
completionProvider = {
|
||||
resolveProvider = true,
|
||||
triggerCharacters = { "\\", "{", "}", "@", "/", " " }
|
||||
},
|
||||
definitionProvider = true,
|
||||
documentFormattingProvider = true,
|
||||
documentHighlightProvider = true,
|
||||
documentLinkProvider = {
|
||||
resolveProvider = false
|
||||
},
|
||||
documentSymbolProvider = true,
|
||||
executeCommandProvider = {
|
||||
commands = { "texlab.cleanAuxiliary", "texlab.cleanArtifacts", "texlab.changeEnvironment", "texlab.findEnvironments", "texlab.showDependencyGraph", "texlab.cancelBuild" }
|
||||
},
|
||||
foldingRangeProvider = true,
|
||||
hoverProvider = true,
|
||||
inlayHintProvider = true,
|
||||
referencesProvider = true,
|
||||
renameProvider = {
|
||||
prepareProvider = true
|
||||
},
|
||||
textDocumentSync = {
|
||||
change = 2,
|
||||
openClose = true,
|
||||
save = {
|
||||
includeText = false
|
||||
}
|
||||
},
|
||||
workspaceSymbolProvider = true
|
||||
},
|
||||
settings = <table 8>,
|
||||
stop = <function 70>,
|
||||
supports_method = <function 71>,
|
||||
workspace_did_change_configuration = <function 72>,
|
||||
workspace_folders = <table 9>,
|
||||
<metatable> = <table 5>
|
||||
}
|
Loading…
Reference in New Issue