lukas-reineke / lsp-format.nvim

A wrapper around Neovims native LSP formatting.
554 stars 27 forks source link

Plugin does nothing #82

Open Lamby777 opened 3 months ago

Lamby777 commented 3 months ago

Saving does nothing. :Format does nothing.

:lua vim.lsp.buf.format({ async = true}) formats stuff like it's supposed to.

I'm using lazy.nvim in NvChad with this setup just like the readme says...

{
    "lukas-reineke/lsp-format.nvim",
    lazy = false,

    config = function()
        -- lsp format on save
        require("lsp-format").setup {}
        require("lspconfig").gopls.setup { on_attach = require("lsp-format").on_attach }
    end
},

I don't know what else to say. It no workie.

lukas-reineke commented 3 months ago

Sorry, you have to do a bit more debugging yourself. This is not enough information for me to help you. You can look into the :help lsp-log and see if you see the formatting requests.

ndgnuh commented 2 months ago

I'm having the same problem.

-- test file
    x = 1

Here's the log, I hope this would help.

Show ```shell [INFO][2024-04-17 14:01:01] .../lua/vim/lsp.lua:1757 "exit_handler" { { _exec_cmd = , _on_attach = , attached_buffers = { true }, cancel_request = , commands = {}, config = { autostart = true, capabilities = { 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 = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, insertTextModeSupport = { valueSet = { 1, 2 } }, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits", "sortText", "filterText", "insertText", "textEdit", "insertTextFormat", "insertTextMode" } }, 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 }, 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 } }, cmd = { "/home/hung/.local/bin/lua-language-server" }, cmd_cwd = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim", filetypes = { "lua" }, flags = {}, get_language_id = , handlers = <1>{}, init_options = vim.empty_dict(), log_level = 2, message_level = 2, name = "lua_ls", on_attach = , on_exit = , on_init = , root_dir = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim", settings = { Lua = { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, globals = { "vim", "use" } }, single_file_support = true, workspace_folders = <2>{ { name = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim", uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim" } }, = <3>{ __tostring = } }, dynamic_capabilities = { capabilities = {}, client_id = 1, = { __index = { get = , match = , new = , register = , supports = , supports_registration = , unregister = } } }, handlers = , id = 1, initialized = true, is_stopped = , messages = { messages = {}, name = "lua_ls", progress = {}, status = {} }, name = "lua_ls", notify = , offset_encoding = "utf-16", progress = { _idx_read = 0, _idx_write = 38, _items = { { token = 2, value = { cancellable = false, kind = "begin", message = "32/164", percentage = 18, title = "Loading workspace" } }, { token = 3 }, { token = 3, value = { cancellable = false, kind = "begin", message = "33/146", percentage = 21, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "34/164", percentage = 20, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "36/164", percentage = 21, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "37/146", percentage = 24, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "45/164", percentage = 26, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "47/146", percentage = 31, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "49/164", percentage = 29, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "51/146", percentage = 34, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "53/164", percentage = 31, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "54/146", percentage = 36, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "59/164", percentage = 35, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "60/146", percentage = 41, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "67/164", percentage = 40, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "68/146", percentage = 45, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "72/146", percentage = 48, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "71/164", percentage = 42, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "81/146", percentage = 54, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "82/164", percentage = 49, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "85/146", percentage = 58, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "93/146", percentage = 63, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "94/164", percentage = 56, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "104/164", percentage = 62, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "105/146", percentage = 71, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "114/164", percentage = 68, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "115/146", percentage = 78, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "120/164", percentage = 72, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "121/146", percentage = 82, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "136/164", percentage = 82, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "137/146", percentage = 93, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "145/164", percentage = 87, title = "Loading workspace" } }, { token = 3, value = { kind = "report", message = "146/146", percentage = 99, title = "Loading workspace" } }, { token = 3, value = { kind = "end", title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "162/164", percentage = 98, title = "Loading workspace" } }, { token = 2, value = { kind = "report", message = "164/164", percentage = 100, title = "Loading workspace" } }, { token = 2, value = { kind = "end", title = "Loading workspace" } }, [0] = { token = 2 } }, _size = 51, pending = {}, = { __call = , __index = { clear = , peek = , pop = , push = } } }, request = , request_sync = , requests = {}, rpc = { is_closing = , notify = , request = , terminate = }, server_capabilities = { codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor.rewrite", "refactor.extract" }, resolveProvider = false }, codeLensProvider = { resolveProvider = true }, colorProvider = true, completionProvider = { resolveProvider = true, triggerCharacters = { "\t", "\n", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " ", "+", "?" } }, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "\n" }, documentRangeFormattingProvider = true, documentSymbolProvider = true, executeCommandProvider = { commands = { "lua.removeSpace", "lua.solve", "lua.jsonToLua", "lua.setConfig", "lua.getConfig", "lua.autoRequire" } }, foldingRangeProvider = true, hoverProvider = true, inlayHintProvider = { resolveProvider = true }, offsetEncoding = "utf-16", referencesProvider = true, renameProvider = { prepareProvider = true }, semanticTokensProvider = { full = true, legend = { tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary", "global" }, tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" } }, range = true }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true, save = { includeText = false } }, typeDefinitionProvider = true, workspace = { fileOperations = { didRename = { filters = { { pattern = { glob = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim/**", options = { ignoreCase = true } } } } } }, workspaceFolders = { changeNotifications = true, supported = true } }, workspaceSymbolProvider = true }, stop = , supports_method = , workspace_did_change_configuration = , workspace_folders =
} } [DEBUG][2024-04-17 14:01:01] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 5, jsonrpc = "2.0", method = "shutdown"} [DEBUG][2024-04-17 14:01:01] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 5, jsonrpc = "2.0", result = true} [DEBUG][2024-04-17 14:01:01] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "exit"} [START][2024-04-17 14:01:05] LSP logging initiated [INFO][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:37 "Starting RPC client" { args = {}, cmd = "/home/hung/.local/bin/lua-language-server", extra = { cwd = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim" }} [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { 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 = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, insertTextModeSupport = { valueSet = { 1, 2 } }, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits", "sortText", "filterText", "insertText", "textEdit", "insertTextFormat", "insertTextMode" } }, 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 }, 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 } }, clientInfo = { name = "Neovim", version = "0.10.0-dev+g98a4ed0a1" }, initializationOptions = vim.empty_dict(), processId = 31489, rootPath = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim", rootUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", trace = "off", workspaceFolders = { { name = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim", uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim" } } }} [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "window/logMessage", params = { message = "Log path: file:///home/hung/Application/Lua.LSP/log/file_home_hung_Projects_pet_dotfiles_nvim_.config_nvim.log", type = 4 }} [INFO][2024-04-17 14:01:05] ...lsp/handlers.lua:577 "Log path: file:///home/hung/Application/Lua.LSP/log/file_home_hung_Projects_pet_dotfiles_nvim_.config_nvim.log" [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 1, jsonrpc = "2.0", result = { capabilities = { codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor.rewrite", "refactor.extract" }, resolveProvider = false }, codeLensProvider = { resolveProvider = true }, colorProvider = true, completionProvider = { resolveProvider = true, triggerCharacters = { "\t", "\n", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " ", "+", "?" } }, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "\n" }, documentRangeFormattingProvider = true, documentSymbolProvider = true, executeCommandProvider = { commands = { "lua.removeSpace", "lua.solve", "lua.jsonToLua", "lua.setConfig", "lua.getConfig", "lua.autoRequire" } }, foldingRangeProvider = true, hoverProvider = true, inlayHintProvider = { resolveProvider = true }, offsetEncoding = "utf-16", referencesProvider = true, renameProvider = { prepareProvider = true }, semanticTokensProvider = { full = true, legend = { tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary", "global" }, tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" } }, range = true }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true, save = { includeText = false } }, typeDefinitionProvider = true, workspace = { fileOperations = { didRename = { filters = { { pattern = { glob = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim/**", options = { ignoreCase = true } } } } } }, workspaceFolders = { changeNotifications = true, supported = true } }, workspaceSymbolProvider = true }, serverInfo = { name = "sumneko.lua" } }} [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "initialized", params = vim.empty_dict()} [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "workspace/didChangeConfiguration", params = { settings = { Lua = { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, globals = { "vim", "use" } } }} [INFO][2024-04-17 14:01:05] .../lua/vim/lsp.lua:1133 "LSP[lua_ls]" "server_capabilities" { server_capabilities = { codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor.rewrite", "refactor.extract" }, resolveProvider = false }, codeLensProvider = { resolveProvider = true }, colorProvider = true, completionProvider = { resolveProvider = true, triggerCharacters = { "\t", "\n", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " ", "+", "?" } }, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "\n" }, documentRangeFormattingProvider = true, documentSymbolProvider = true, executeCommandProvider = { commands = { "lua.removeSpace", "lua.solve", "lua.jsonToLua", "lua.setConfig", "lua.getConfig", "lua.autoRequire" } }, foldingRangeProvider = true, hoverProvider = true, inlayHintProvider = { resolveProvider = true }, offsetEncoding = "utf-16", referencesProvider = true, renameProvider = { prepareProvider = true }, semanticTokensProvider = { full = true, legend = { tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary", "global" }, tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" } }, range = true }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true, save = { includeText = false } }, typeDefinitionProvider = true, workspace = { fileOperations = { didRename = { filters = { { pattern = { glob = "/home/hung/Projects/pet/dotfiles/nvim/.config/nvim/**", options = { ignoreCase = true } } } } } }, workspaceFolders = { changeNotifications = true, supported = true } }, workspaceSymbolProvider = true }} [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "lua", text = "\n", uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 0 } }} [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 0/0\nMemory usage: 2M" }} [DEBUG][2024-04-17 14:01:05] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:05] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 2, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 1, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "Lua" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "files.associations" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "files.exclude" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "editor.semanticHighlighting.enabled" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "editor.acceptSuggestionOnEnter" } } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 2, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "Lua" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "files.associations" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "files.exclude" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "editor.semanticHighlighting.enabled" }, { scopeUri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim", section = "editor.acceptSuggestionOnEnter" } } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 1, jsonrpc = "2.0", result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 2, jsonrpc = "2.0", result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 3, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { section = "Lua" }, { section = "files.associations" }, { section = "files.exclude" }, { section = "editor.semanticHighlighting.enabled" }, { section = "editor.acceptSuggestionOnEnter" } } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 3, jsonrpc = "2.0", result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 4, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { section = "Lua" }, { section = "files.associations" }, { section = "files.exclude" }, { section = "editor.semanticHighlighting.enabled" }, { section = "editor.acceptSuggestionOnEnter" } } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 4, jsonrpc = "2.0", result = { { completion = { callSnippet = "Replace" }, workspace = { checkThirdParty = false, library = { "/opt/nvim-linux64/share/nvim/runtime", "/home/hung/.local/share/nvim/lazy/neodev.nvim/types/nightly" } } }, vim.NIL, vim.NIL, vim.NIL, vim.NIL }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/show"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/show"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 0/1\nMemory usage: 2M" }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 5, jsonrpc = "2.0", method = "workspace/semanticTokens/refresh"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 6, jsonrpc = "2.0", method = "workspace/inlayHint/refresh"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/show"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 7, jsonrpc = "2.0", method = "workspace/semanticTokens/refresh"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 8, jsonrpc = "2.0", method = "workspace/inlayHint/refresh"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/show"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "$/cancelRequest", params = { id = 2 }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 0, line = 0 }, start = { character = 0, line = 0 } }, rangeLength = 0, text = "-" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 4 } }} [DEBUG][2024-04-17 14:01:06] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 3, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = vim.NIL, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 5, jsonrpc = "2.0", result = vim.NIL} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = vim.NIL, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 6, jsonrpc = "2.0", result = vim.NIL} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "$/cancelRequest", params = { id = 3 }} [DEBUG][2024-04-17 14:01:06] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 4, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = vim.NIL, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 7, jsonrpc = "2.0", result = vim.NIL} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = vim.NIL, status = true} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 8, jsonrpc = "2.0", result = vim.NIL} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 1, line = 0 }, start = { character = 1, line = 0 } }, rangeLength = 0, text = "-" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 5 } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { error = { code = -32800, message = "Request cancelled." }, id = 2, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "Received cancellation ack" { error = { code = -32800, message = "Request cancelled." }, id = 2, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { error = { code = -32800, message = "Request cancelled." }, id = 3, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "Received cancellation ack" { error = { code = -32800, message = "Request cancelled." }, id = 3, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 0/1\nMemory usage: 3M" }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 2, line = 0 }, start = { character = 2, line = 0 } }, rangeLength = 0, text = " " } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 6 } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "$/cancelRequest", params = { id = 4 }} [DEBUG][2024-04-17 14:01:06] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 5, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.receive" { error = { code = -32800, message = "Request cancelled." }, id = 4, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "Received cancellation ack" { error = { code = -32800, message = "Request cancelled." }, id = 4, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 3, line = 0 }, start = { character = 3, line = 0 } }, rangeLength = 0, text = "t" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 7 } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 4, line = 0 }, start = { character = 4, line = 0 } }, rangeLength = 0, text = "e" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 8 } }} [DEBUG][2024-04-17 14:01:06] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 5, line = 0 }, start = { character = 5, line = 0 } }, rangeLength = 0, text = "s" }, { range = { ["end"] = { character = 6, line = 0 }, start = { character = 6, line = 0 } }, rangeLength = 0, text = "t" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 10 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 9, jsonrpc = "2.0", method = "window/workDoneProgress/create", params = { token = 3 }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { cancellable = false, kind = "begin", message = "34/146", percentage = 22, title = "Loading workspace" } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = vim.NIL, status = true} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 9, jsonrpc = "2.0", result = vim.NIL} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 10, jsonrpc = "2.0", method = "window/workDoneProgress/create", params = { token = 2 }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { cancellable = false, kind = "begin", message = "33/164", percentage = 19, title = "Loading workspace" } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "server_request: callback result" { result = vim.NIL, status = true} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 10, jsonrpc = "2.0", result = vim.NIL} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "$(loading~spin)Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 34/35\nMemory usage: 45M" }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "$/cancelRequest", params = { id = 5 }} [DEBUG][2024-04-17 14:01:07] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 6, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "36/146", percentage = 23 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "37/164", percentage = 21 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { error = { code = -32800, message = "Request cancelled." }, id = 5, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "Received cancellation ack" { error = { code = -32800, message = "Request cancelled." }, id = 5, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "47/146", percentage = 31 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "49/164", percentage = 29 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "53/164", percentage = 31 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "54/146", percentage = 36 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "60/164", percentage = 35 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "61/146", percentage = 41 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "67/164", percentage = 40 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "68/146", percentage = 45 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 7, line = 0 }, start = { character = 7, line = 0 } }, rangeLength = 0, text = "\n-- " } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 11 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "75/164", percentage = 45 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "76/146", percentage = 51 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "78/164", percentage = 46 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "79/146", percentage = 53 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "86/146", percentage = 58 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "85/164", percentage = 51 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "$/cancelRequest", params = { id = 6 }} [DEBUG][2024-04-17 14:01:07] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 7, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "95/146", percentage = 64 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "96/164", percentage = 57 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { error = { code = -32800, message = "Request cancelled." }, id = 6, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "Received cancellation ack" { error = { code = -32800, message = "Request cancelled." }, id = 6, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "105/146", percentage = 71 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "107/164", percentage = 64 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "115/146", percentage = 78 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "115/164", percentage = 69 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "$(loading~spin)Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 117/118\nMemory usage: 138M" }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "123/146", percentage = 84 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "128/164", percentage = 77 } }} [DEBUG][2024-04-17 14:01:07] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "142/146", percentage = 96 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "144/164", percentage = 87 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "145/146", percentage = 98 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "146/146", percentage = 99 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "145/164", percentage = 87 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "end" } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 160/161\nMemory usage: 144M" }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 3, line = 1 }, start = { character = 2, line = 1 } }, rangeLength = 1, text = "" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 12 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "160/164", percentage = 97 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 164/165\nMemory usage: 144M" }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "report", message = "164/164", percentage = 100 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = 2, value = { kind = "end" } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 2, line = 1 }, start = { character = 1, line = 1 } }, rangeLength = 1, text = "" }, { range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, rangeLength = 1, text = "" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 14 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { error = { code = -32801, message = "Content modified." }, id = 7, jsonrpc = "2.0"} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 165/165\nMemory usage: 146M" }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 166/165\nMemory usage: 146M" }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 0, line = 1 }, start = { character = 0, line = 1 } }, rangeLength = 0, text = "f" }, { range = { ["end"] = { character = 1, line = 1 }, start = { character = 1, line = 1 } }, rangeLength = 0, text = "u" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 16 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 2, line = 1 }, start = { character = 2, line = 1 } }, rangeLength = 0, text = "n" }, { range = { ["end"] = { character = 3, line = 1 }, start = { character = 3, line = 1 } }, rangeLength = 0, text = "c" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 18 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 166/165\nMemory usage: 147M" }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "$/cancelRequest", params = { id = 7 }} [DEBUG][2024-04-17 14:01:08] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 8, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "exp-in-action", data = "syntax", message = "Unexpected .", range = { ["end"] = { character = 4, line = 1 }, start = { character = 0, line = 1 } }, severity = 1, source = "Lua Syntax Check." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 18 }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 167/165\nMemory usage: 147M" }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 8, jsonrpc = "2.0", result = { data = { 0, 0, 7, 17, 0, 1, 0, 4, 8, 1024 } }} [DEBUG][2024-04-17 14:01:08] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "exp-in-action", data = "syntax", message = "Unexpected .", range = { ["end"] = { character = 4, line = 1 }, start = { character = 0, line = 1 } }, severity = 1, source = "Lua Syntax Check." }, { code = "undefined-global", message = "Undefined global `func`.", range = { ["end"] = { character = 4, line = 1 }, start = { character = 0, line = 1 } }, severity = 2, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 18 }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 4, line = 1 }, start = { character = 3, line = 1 } }, rangeLength = 1, text = "" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 19 } }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "exp-in-action", data = "syntax", message = "Unexpected .", range = { ["end"] = { character = 3, line = 1 }, start = { character = 0, line = 1 } }, severity = 1, source = "Lua Syntax Check." }, { code = "undefined-global", message = "Undefined global `func`.", range = { ["end"] = { character = 4, line = 1 }, start = { character = 0, line = 1 } }, severity = 2, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 19 }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 168/165\nMemory usage: 147M" }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "exp-in-action", data = "syntax", message = "Unexpected .", range = { ["end"] = { character = 3, line = 1 }, start = { character = 0, line = 1 } }, severity = 1, source = "Lua Syntax Check." }, { code = "undefined-global", message = "Undefined global `fun`.", range = { ["end"] = { character = 3, line = 1 }, start = { character = 0, line = 1 } }, severity = 2, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 19 }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 3, line = 1 }, start = { character = 2, line = 1 } }, rangeLength = 1, text = "" }, { range = { ["end"] = { character = 2, line = 1 }, start = { character = 1, line = 1 } }, rangeLength = 1, text = "" }, { range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, rangeLength = 1, text = "" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 22 } }} [DEBUG][2024-04-17 14:01:09] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 9, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 9, jsonrpc = "2.0", result = { data = { 0, 0, 7, 17, 0 } }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 169/165\nMemory usage: 147M" }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 0, line = 1 }, start = { character = 0, line = 1 } }, rangeLength = 0, text = "x" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 23 } }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "exp-in-action", data = "syntax", message = "Unexpected .", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, severity = 1, source = "Lua Syntax Check." }, { code = "undefined-global", message = "Undefined global `fun`.", range = { ["end"] = { character = 3, line = 1 }, start = { character = 0, line = 1 } }, severity = 2, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 23 }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 170/165\nMemory usage: 147M" }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "exp-in-action", data = "syntax", message = "Unexpected .", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, severity = 1, source = "Lua Syntax Check." }, { code = "undefined-global", message = "Undefined global `x`.", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, severity = 2, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 23 }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 170/165\nMemory usage: 148M" }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 1, line = 1 }, start = { character = 1, line = 1 } }, rangeLength = 0, text = " " } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 24 } }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 2, line = 1 }, start = { character = 2, line = 1 } }, rangeLength = 0, text = "=" }, { range = { ["end"] = { character = 3, line = 1 }, start = { character = 3, line = 1 } }, rangeLength = 0, text = " " } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 26 } }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "miss-exp", data = "syntax", message = " expected.", range = { ["end"] = { character = 3, line = 1 }, start = { character = 3, line = 1 } }, severity = 1, source = "Lua Syntax Check." }, { code = "undefined-global", message = "Undefined global `x`.", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, severity = 2, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 26 }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 171/165\nMemory usage: 148M" }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "miss-exp", data = "syntax", message = " expected.", range = { ["end"] = { character = 3, line = 1 }, start = { character = 3, line = 1 } }, severity = 1, source = "Lua Syntax Check." }, { code = "lowercase-global", message = "Global variable in lowercase initial, Did you miss `local` or misspell it?", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, severity = 3, source = "Lua Diagnostics." }, { code = "trailing-space", message = "Line with trailing space.", range = { ["end"] = { character = 4, line = 1 }, start = { character = 3, line = 1 } }, severity = 4, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 26 }} [DEBUG][2024-04-17 14:01:09] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 4, line = 1 }, start = { character = 4, line = 1 } }, rangeLength = 0, text = "1" } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 27 } }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "lowercase-global", message = "Global variable in lowercase initial, Did you miss `local` or misspell it?", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, severity = 3, source = "Lua Diagnostics." }, { code = "trailing-space", message = "Line with trailing space.", range = { ["end"] = { character = 4, line = 1 }, start = { character = 3, line = 1 } }, severity = 4, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 27 }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 172/165\nMemory usage: 148M" }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "lowercase-global", message = "Global variable in lowercase initial, Did you miss `local` or misspell it?", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 1 } }, severity = 3, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 27 }} [DEBUG][2024-04-17 14:01:10] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 10, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 10, jsonrpc = "2.0", result = { data = { 0, 0, 7, 17, 0, 1, 0, 1, 8, 1024 } }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 0, line = 1 }, start = { character = 0, line = 1 } }, rangeLength = 0, text = " " } }, textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 28 } }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 173/165\nMemory usage: 148M" }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "lowercase-global", message = "Global variable in lowercase initial, Did you miss `local` or misspell it?", range = { ["end"] = { character = 5, line = 1 }, start = { character = 4, line = 1 } }, severity = 3, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua", version = 28 }} [DEBUG][2024-04-17 14:01:10] .../lua/vim/lsp.lua:1182 "LSP[lua_ls]" "client.request" 1 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" }} 1 [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.send" { id = 11, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:10] .../vim/lsp/rpc.lua:43 "rpc.receive" { id = 11, jsonrpc = "2.0", result = { data = { 0, 0, 7, 17, 0, 1, 4, 1, 8, 1024 } }} [DEBUG][2024-04-17 14:01:13] .../vim/lsp/rpc.lua:43 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didSave", params = { textDocument = { uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/test.lua" } }} [DEBUG][2024-04-17 14:01:16] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "undefined-doc-param", message = "Undefined param `default_engine`.", range = { ["end"] = { character = 24, line = 50 }, start = { character = 10, line = 50 } }, severity = 2, source = "Lua Diagnostics." } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/lua/ibus.lua" }} [DEBUG][2024-04-17 14:01:16] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "deprecated", data = { versions = { "Lua 5.1", "LuaJIT" } }, message = "Deprecated.(Defined in Lua 5.1/LuaJIT, current is Lua 5.4.)", range = { ["end"] = { character = 42, line = 64 }, start = { character = 32, line = 64 } }, severity = 2, source = "Lua Diagnostics.", tags = { 2 } } }, uri = "file:///home/hung/Projects/pet/dotfiles/nvim/.config/nvim/plugin/packer_compiled.lua" }} [DEBUG][2024-04-17 14:01:16] .../vim/lsp/rpc.lua:43 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/hung/Projects/pet/dotfiles/nvim/.config/nvim\nCached files: 164/165\nMemory usage: 128M" }} ```
lukas-reineke commented 2 months ago

I'm having the same problem.

-- test file
    x = 1

Here's the log, I hope this would help. Show

There is no formatting request in your log