summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/lsp/log.lua
AgeCommit message (Collapse)AuthorFiles
2026-04-10feat(ex): add `:log` commandOlivia Kinnear1
2026-03-29docs: misc #38532Justin M. Keyes1
Close #38431 Close #38521 Close #38530 Co-authored-by: tayheau <thopsore@pasteur.fr> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Olivia Kinnear <git@superatomic.dev>
2025-08-28refactor(lua): consistent use of local aliasesChristian Clason1
2025-08-11fix(lsp): deprecate vim.lsp.set_log_level, vim.lsp.get_log_path #35274Maria José Solano1
2025-06-16fix(lsp): use vim.notify for all message types #34489someoneinjd1
Problem: Currently, vim.notify is only used to display messages when the message type is Error. Solution: Use vim.notify to display messages for all message types.
2025-05-31feat(lsp)!: pass entire entry to format function (#34166)Maria José Solano1
* feat(lsp)!: pass entire entry to format function * refactor(lsp): deprecate `vim.lsp.log.should_log()`
2025-05-25refactor(lsp): use `vim.validate` in `vim.lsp.log` (#34165)Maria José Solano1
2025-05-17feat(logs): show full paths in lsp logs (#33886)Anakin Childerhose1
feat(logs): show full path of short_src in lsp logs Problem: - Cannot gf to info.short_src printed in the logs since only the last 16 characters are printed Solution: - Print full info.short_src and remove ...
2025-04-27docs: lsp, emoji, startup #33446Justin M. Keyes1
Co-authored-by: Maria José Solano <majosolano99@gmail.com>
2025-03-21docs: misc (#32928)dundargoc1
Co-authored-by: James Trew <j.trew10@gmail.com> Co-authored-by: przepompownia <przepompownia@users.noreply.github.com>
2025-03-12fix(lsp): handle non-existent configs in lsp.config/enableLewis Russell1
2024-11-16fix(lsp): type-errors, other nits in vim.lsp.log #31235Maria José Solano1
2024-08-03fix(lsp): redundant spaces in lsp log (#29970)Jaehwang Jung1
2024-06-11refactor(lua): improve type annotationsLewis Russell1
2024-03-07feat(lua): deprecate vim.tbl_add_reverse_lookupMaria José Solano1
2024-02-27feat(docs): replace lua2dox.luaLewis Russell1
Problem: The documentation flow (`gen_vimdoc.py`) has several issues: - it's not very versatile - depends on doxygen - doesn't work well with Lua code as it requires an awkward filter script to convert it into pseudo-C. - The intermediate XML files and filters makes it too much like a rube goldberg machine. Solution: Re-implement the flow using Lua, LPEG and treesitter. - `gen_vimdoc.py` is now replaced with `gen_vimdoc.lua` and replicates a portion of the logic. - `lua2dox.lua` is gone! - No more XML files. - Doxygen is now longer used and instead we now use: - LPEG for comment parsing (see `scripts/luacats_grammar.lua` and `scripts/cdoc_grammar.lua`). - LPEG for C parsing (see `scripts/cdoc_parser.lua`) - Lua patterns for Lua parsing (see `scripts/luacats_parser.lua`). - Treesitter for Markdown parsing (see `scripts/text_utils.lua`). - The generated `runtime/doc/*.mpack` files have been removed. - `scripts/gen_eval_files.lua` now instead uses `scripts/cdoc_parser.lua` directly. - Text wrapping is implemented in `scripts/text_utils.lua` and appears to produce more consistent results (the main contributer to the diff of this change).
2024-02-08refactor(lsp): tidy up loggingLewis Russell1
2023-12-14feat(lsp): more annotationsLewis Russell1
2023-07-18docs(lua): more improvements (#24387)Lewis Russell1
* docs(lua): teach lua2dox how to table * docs(lua): teach gen_vimdoc.py about local functions No more need to mark local functions with @private * docs(lua): mention @nodoc and @meta in dev-lua-doc * fixup! Co-authored-by: Justin M. Keyes <justinkz@gmail.com> --------- Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2023-07-10fix(lint): lint warnings #24226Raphael1
2023-07-01fix(lsp): lint warnings, default offset_encoding #24046Raphael1
- fix lint / analysis warnings - locations_to_items(): get default offset_encoding from active client - character_offset(): get default offset_encoding from active client
2023-06-03feat(lua): rename vim.loop -> vim.uv (#22846)Lewis Russell1
2023-04-13refactor: remove modelines from Lua filesGregory Anders1
Now that we have builtin EditorConfig support and a formatting check in CI, these are not necessary.
2023-03-07docs(lsp): change type annotations from number → integer (#22510)Jaehwang Jung1
2022-12-09fix(lsp): correct some type annotations (#21365)Mathias Fußenegger1
2022-12-04fix(lsp): ensure open_logfile is safe for fast events (#21288)Mathias Fußenegger1
Closes https://github.com/neovim/neovim/issues/21052
2022-07-07refactor(lua): reformat with stylua 0.14.0 (#19264)Christian Clason1
* reformat Lua runtime to make lint CI pass * reduce max line length to 100
2022-05-12feat(defaults): session data in $XDG_STATE_HOME #15583Ivan1
See: https://gitlab.freedesktop.org/xdg/xdg-specs/-/commit/4f2884e16db35f2962d9b64312917c81be5cb54b - Move session persistent data to $XDG_STATE_HOME Change 'directory', 'backupdir', 'undodir', 'viewdir' and 'shadafile' default location to $XDG_STATE_HOME/nvim. - Move logs to $XDG_STATE_HOME, too. - Add stdpath('log') support. Fixes: #14805
2022-05-09chore: format runtime with styluaChristian Clason1
2022-05-03feat(lsp): add logging level "OFF" (#18379)ii141
2021-12-28chore: fix typos (#16506)dundargoc1
Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com> Co-authored-by: Alef Pereira <ealefpereira@gmail.com> Co-authored-by: AusCyber <willp@outlook.com.au> Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2021-11-30docs(lsp): add annotations for private functionsGregory Anders1
2021-09-15feat(lsp): improve logging (#15636)Michael Lingelbach1
* Simplify rpc encode/decode messages to rpc.send/rcp.receive * Make missing handlers message throw a warning * Clean up formatting style in log * Move all non-RPC loop messages to trace instead of debug * Add format func option to log to allow newlines in per log entry
2021-09-07chore(lsp): fix formatting in vim.lsp.log (#15596)Michael Lingelbach1
2021-09-07feat(lsp): add warning message for large log sizeMichael Lingelbach1
2021-09-07feat(lsp): add lsp healthcheckMichael Lingelbach1
Add healthcheck for language server client, currently only checks logging status.
2021-08-22docs: make Lua docstrings consistent #15255Gregory Anders1
The official developer documentation in in :h dev-lua-doc specifies to use "--@" for special/magic tokens. However, this format is not consistent with EmmyLua notation (used by some Lua language servers) nor with the C version of the magic docstring tokens which use three comment characters. Further, the code base is currently split between usage of "--@", "---@", and "--- @". In an effort to remain consistent, change all Lua magic tokens to use "---@" and update the developer documentation accordingly.
2021-07-10fix(lsp): correctly check for windows in lsp logger (#14954)Oliver Marriott1
2021-04-16lsp: deep copy vim.lsp.log when reloadingDingcheng Yue1
If vim.lsp.log is loaded the second time, the vim.log.levels will be modified with additional entries from 0-5. This will cause the require to fail as level:lower does not exists on numbered value.
2021-03-06lsp: add explicit entry on lsp log startPiyush Jaipuriyar1
fix: address typo and review comments
2021-01-31feat: adds vim.notifyMatthieu Coudron1
Adds function to notify the user like this: `:lua vim.notify("hello user")` embeds log levels vim.log.levels. you can then reassign vim.notify to for instance ``` function notify_external(msg, log_level, opts) vim.fn.jobstart({"notify-send", msg }) end ```
2021-01-13logging: move to XDG_CACHE_HOME (#13739)Michael Lingelbach1
while there is some controversy, stdpath('cache') looks like a better fit for logs than stdpath('data'): you can remove logs without preventing nvim to work which fits the XDG_CACHE_HOME definition of `user specific non-essential data files`.
2020-08-23Add FIXMEsPatrice Peterson1
2020-08-23Add docs for most vim.lsp methodsPatrice Peterson1
Most of the lsp.log will be addressed in a separate PR.
2020-05-23lsp: change log name to "lsp.log" from "vim-lsp.log"Hirokazu Hata1
It's confusing because vim-lsp already has the same name as the plugin name that predates this built-in lsp. Also, since "vim.fn.stdpath" is used, adding the prefix "nvim-" is redundant, so just "lsp.log" will suffice.
2020-05-17lsp: Fix timezone format of LSP log (ISO 8601) (#12332)Eisuke Kawashima1
2020-03-02lsp: make showMessage and logMessage callbacks different (#11942)Hirokazu Hata1
According to the LSP specification, showMessage is what is displayed and logMessage is what is stored. Since these are different things, I devide the callback into those that match.
2019-11-13lua LSP client: initial implementation (#11336)Ashkan Kiani1
Mainly configuration and RPC infrastructure can be considered "done". Specific requests and their callbacks will be improved later (and also served by plugins). There are also some TODO:s for the client itself, like incremental updates. Co-authored by at-tjdevries and at-h-michael, with many review/suggestion contributions.