aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | | | | Merge pull request #15197 from ↵Björn Linse2021-07-26
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | dundargoc/refactor/a-song-of-true-and-false/global-variables refactor: replace TRUE/FALSE with true/false
| * | | | refactor: replace TRUE/FALSE with true/falseDundar Göc2021-07-26
| | | | | | | | | | | | | | | | | | | | Focus is on global variables.
* | | | | feat(lsp): make list handlers configurable (#15199)Gregory Anders2021-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The handlers for textDocument/references, textDocument/documentSymbol, and workspace/symbol open their results in the quickfix list by default and are not configurable. They are also incompatible with `vim.lsp.with` as they do not accept a configuration parameter. Add a `config` parameter to the handler for these three messages which allows them to be configured with `vim.lsp.with`. Additionally, add a new configuration option 'loclist' that, when true, causes these handlers to open their results in the location list rather than the quickfix list.
* | | | | Merge pull request #15090 from kraftwerk28/masterThomas Vigouroux2021-07-26
|\ \ \ \ \ | | | | | | | | | | | | docs: fix typo in treesitter.txt
| * | | | | docs: fix typo in treesitter.txtkraftwerk282021-07-14
| | | | | |
* | | | | | Merge pull request #15180 from gpanders/xcallocThomas Vigouroux2021-07-26
|\ \ \ \ \ \ | | | | | | | | | | | | | | fix: fix incorrect call sites of xcalloc
| * | | | | | fix: fix incorrect call sites of xcallocGregory Anders2021-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The number of elements comes first and the size of each element second.
* | | | | | | Merge pull request #15191 from vigoux/ts-docsThomas Vigouroux2021-07-26
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | docs(ts): add documentation for listing fns
| * | | | | | | docs(ts): add documentation for listing fnsThomas Vigouroux2021-07-25
| | | | | | | |
* | | | | | | | chore: remove checkbox from issue templateChristian Clason2021-07-26
| |_|_|/ / / / |/| | | | | | | | | | | | | Checkboxes trigger "task lists", which add noise.
* | | | | | | Merge pull request #15151 from dundargoc/refactor/true-and-false-macroBjörn Linse2021-07-26
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | refactor: replace TRUE/FALSE macros with C99 true/false
| * | | | | | refactor: replace TRUE/FALSE macros with C99 true/falseDundar Göc2021-07-25
|/ / / / / /
* | | | | | Merge pull request #14311 from matveyt/nomode_ceBjörn Linse2021-07-25
|\ \ \ \ \ \ | | | | | | | | | | | | | | refactor(state): Remove EXMODE_NORMAL
| * | | | | | Remove EXMODE_NORMALmatveyt2021-07-23
| | | | | | |
* | | | | | | chore: PVS/V751: ignore warning #15153dundargoc2021-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There's already an ignore directive but it's placed on the wrong line. This commit should correct it.
* | | | | | | chore: added ccls-cache in .gitignore (#15175)Rishabh Dwivedi2021-07-25
| | | | | | |
* | | | | | | Merge pull request #14347 from theHamsta/list_directivesThomas Vigouroux2021-07-25
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | treesitter: add query.list_directives
| * | | | | | | doc: group documentation of predicates and directivesStephan Seitz2021-07-24
| | | | | | | |
| * | | | | | | treesitter: add query.list_directivesStephan Seitz2021-07-24
| | |/ / / / / | |/| | | | |
* | | | | | | chore: update LSP bug report with Github issue forms (#15159)dundargoc2021-07-25
| | | | | | |
* | | | | | | chore: update feature request template by using Github issue forms. (#15158)dundargoc2021-07-25
| | | | | | |
* | | | | | | chore: update bug report template by using Github's new issue forms (#15152)dundargoc2021-07-25
| | | | | | |
* | | | | | | Merge pull request #15178 from gpanders/masterBjörn Linse2021-07-25
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | fix: source syncolors.vim after startup scripts
| * | | | | | fix: source syncolors.vim after startup scriptsGregory Anders2021-07-24
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue introduced in #14771 (fix: source syncolors.vim before startup scripts) that affected highlights for users who set 'background' to light in their startup script. Because syncolor.vim checks for the value of &background, it was always setting up the 'dark' background colors, which looked wrong for users using light backgrounds. The primary benefit of #14771 is that it decoupled highlighting from the syntax engine. This is useful for e.g. treesitter, which still makes use of highlights even if the syntax engine is disabled. For this reason, it is still worthwhile to source syncolor.vim separately from synload.vim, which #14771 accomplishes. However, we should still source syncolor.vim after the user startup scripts, to ensure that we are respecting the options the user sets. Another corollary benefit is that this reduces some redundancy in highlight definitions, since we now only source syncolors.vim if the user did not already enable a colorscheme.
* | | | | | Merge pull request #15169 from bfredl/freebsdfailBjörn Linse2021-07-24
|\ \ \ \ \ \ | | | | | | | | | | | | | | fix(ci): disable broken test on openbsd also on freebsd
| * | | | | | fix(ci): lower timeout to 45 minutes (from default 360 mins)Björn Linse2021-07-24
| | | | | | |
| * | | | | | fix(ci): disable broken test on openbsd on all CI due to resource constraintsBjörn Linse2021-07-23
|/ / / / / /
* | | | | | Merge pull request #15114 from theHamsta/treesitter-hl-priorityBjörn Linse2021-07-23
|\ \ \ \ \ \ | | | | | | | | | | | | | | feat(treesitter): allow to set highlight priority for queries
| * | | | | | docs(tree-sitter): document highlight priorityStephan Seitz2021-07-22
| | | | | | |
| * | | | | | feat(treesitter): allow to set highlight priority for queriesStephan Seitz2021-07-22
|/ / / / / /
* | | | | | lsp: add vim.lsp.diagnostic.set_qflist() function (#14831)Marc Jakobi2021-07-22
| | | | | | | | | | | | | | | | | | | | | | | | * Add vim.lsp.diagnostic.set_qflist() function * replaces opts.open_loclist with unified opts.open
* | | | | | Merge pull request #14771 from gpanders/colorschemeBjörn Linse2021-07-22
|\ \ \ \ \ \ | |/ / / / / |/| | | | | fix: source syncolors.vim before startup scripts
| * | | | | fix: source syncolors.vim before startup scriptsGregory Anders2021-07-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue (#12573) where colorscheme files are sourced twice upon startup. This occurs when the startup script calls `:colorscheme`, which sets the `g:colors_name` global variable. When syntax highlighting is enabled in `syn_maybe_enable()` the `syntax.vim` script is sourced which in turn sources `synload.vim`. This script checks to see if `g:colors_name` is set and, if so, runs exe "colors " . colors_name This is done to ensure that highlight groups are defined before enabling the syntax highlighting engine. Instead, source syncolors.vim before the startup scripts which sets up default highlights and only load the full syntax engine after the startup scripts or when the user runs `:syntax on`. Add a guard variable `did_syncolor` to prevent syncolor.vim from being sourced twice and remove the line mentioned above from synload.vim so that the colorscheme file is not re-sourced when the syntax engine is loaded.
* | | | | | Revert "fix(ci): remove mongodb from brew to avoid brew upgrade error ↵Christian Clason2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#15115)" (#15141) This reverts commit 5377b2b00aea1a0bde1b81452e6198dabe5b9796. (Fix no longer needed.)
* | | | | | lsp(start_client): Allow passing custom workspaceFolders to the LSP (#15132)sim2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some language servers *cough*rust-analyzer*cough* need an empty/custom workspaceFolders for certain usecases. For example, rust-analyzer needs an empty workspaceFolders table for standalone file support (See https://github.com/rust-analyzer/rust-analyzer/pull/8955). This can also be useful for other languages that need to commonly open a certain directory (like flutter or lua), which would help prevent spinning up a new language server altogether. In case no workspaceFolders are passed, we fallback to what we had before.
* | | | | | Merge pull request #15135 from neovim/marvim/api-doc-update/masterThomas Vigouroux2021-07-19
|\ \ \ \ \ \ | | | | | | | | | | | | | | docs: regenerate
| * | | | | | docs: regeneratemarvim2021-07-19
|/ / / / / /
* | | | | | docs: made can_merge private (#15138)Folke Lemaitre2021-07-19
| | | | | |
* | | | | | fix(lsp): allow diagnostic.clear to accept nil bufnr (#15137)Gregory Anders2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing `nil` is equivalent to passing 0, i.e. it simply uses the current buffer number. This fixes a bug when vim.lsp.diagnostic.disable() is called without arguments.
* | | | | | Merge pull request #15127 from bfredl/nlua_initBjörn Linse2021-07-19
|\ \ \ \ \ \ | | | | | | | | | | | | | | refactor(lua): initialize lua state at startup instead of dynamically
| * | | | | | refactor(lua): initialize lua state at startup instead of dynamicallyBjörn Linse2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lua is used as part of implementation for more core features. As an example, every user keypress will invoke a lua function to check for keypress handlers (regardless if they are registered or not). Thus not starting lua until it is first used doesn't make much sense anymore. nlua_enter was also needed due to the earlier stateful &rtp translation, which by now have been made stateless.
* | | | | | | feat(lsp): allow diagnostics to be disabled for a buffer (#15134)Gregory Anders2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add two new methods to allow diagnostics to be disabled (and re-enabled) in the current buffer. When diagnostics are disabled they are simply not displayed to the user, but they are still sent by the server and processed by the client. Disabling diagnostics can be helpful in a number of scenarios. For example, if one is working on a buffer with an overwhelming amount of diagnostic warnings it can be helpful to simply disable diagnostics without disabling the LSP client entirely. This also allows users more flexibility on when and how they may want diagnostic information to be displayed. For example, some users may not want to display diagnostic information until after the buffer is first written.
* | | | | | | feat(lsp): allow configuring zindex for floating windows (#15086)rayx2021-07-19
| | | | | | |
* | | | | | | fix(shared): do not treat empty tables as list in deep extend (#15094)Folke Lemaitre2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An empty table was previously always treated as a list, which means that while merging tables, whenever an empty table was encountered it would always truncate any table on the left. `vim.tbl_deep_extend("force", { b = { a = 1 } }, { b = {} })` Before: `{ b = {} }` After: `{ b = { a = 1 } }`
* | | | | | | Merge pull request #15070 from dundargoc/PVS/V768James McCoy2021-07-19
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | [RDY] chore(PVS/V768): don't use enum as bool.
| * | | | | | | chore(PVS/V768): don't use enum as bool.Dundar Göc2021-07-19
| |/ / / / / /
* | | | | | | Merge pull request #15073 from dundargoc/PVS/V751James McCoy2021-07-18
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | [RDY] chore(PVS/V751): tui.c, Parameter is not used
| * | | | | | | chore(PVS/V751): tui.c, Parameter is not usedJustin M. Keyes2021-07-18
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | False positive. Documentation for grid_scroll says "`cols` is always zero, reserved for future use".
* | | | | | | Merge pull request #15110 from dundargoc/PVS/V1042James McCoy2021-07-18
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | [RDY] chore: PVS/V1042 - ignore warning globally.
| * | | | | | chore: PVS/V1042 - ignore warning globally.Dundar Göc2021-07-17
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | V1042 is a warning that a file has a copyleft license, which is an irrelevant warning to open-source projects.