File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
tests/test-sources/plugins/bufferlines Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 55 ...
66} :
77let
8- inherit ( lib ) mkEnableOption genAttrs ;
98 inherit ( lib . nixvim ) defaultNullOpts nixvimTypes ;
109 types = nixvimTypes ;
1110
@@ -121,7 +120,6 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin config {
121120 "sortBy"
122121 "diagnostics"
123122 "diagnosticsIndicator"
124- "diagnosticsUpdateInInsert"
125123 "offsets"
126124 [
127125 "groups"
@@ -411,7 +409,7 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin config {
411409 } ;
412410
413411 hover = {
414- enabled = mkEnableOption "hover" ;
412+ enabled = lib . mkEnableOption "hover" ;
415413
416414 reveal = defaultNullOpts . mkListOf types . str [ ] "reveal" ;
417415
@@ -433,14 +431,26 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin config {
433431 optionSnakeCase
434432 ) ( oldHighlightOptions ++ [ "truncMarker" ] ) ;
435433 in
436- genAttrs newHighlightsOptions (
434+ lib . genAttrs newHighlightsOptions (
437435 name :
438436 defaultNullOpts . mkHighlight { } null ''
439437 Highlight group definition for ${ name } .
440438 ''
441439 ) ;
442440 } ;
443441
442+ extraOptions = {
443+ diagnosticsUpdateInInsert = lib . mkOption {
444+ type = types . bool ;
445+ default = false ;
446+ description = ''
447+ Whether to enable diagnostics update in insert mode.
448+
449+ Only applies when `coc` is selected in option `plugins.settings.options.diagnostic`.
450+ '' ;
451+ } ;
452+ } ;
453+
444454 settingsExample = {
445455 options = {
446456 mode = "buffers" ;
@@ -583,6 +593,12 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin config {
583593 } ;
584594
585595 extraConfig = cfg : {
596+ extraConfigLua =
597+ lib . mkIf cfg . diagnosticsUpdateInInsert # Lua
598+ ''
599+ vim.diagnostic.config { update_in_insert = true }
600+ '' ;
601+
586602 extraPlugins = with pkgs . vimPlugins ; [
587603 cfg . package
588604 nvim-web-devicons
Original file line number Diff line number Diff line change 5151 defaults = {
5252 plugins . bufferline = {
5353 enable = true ;
54+ diagnosticsUpdateInInsert = true ;
55+
5456 settings = {
5557 options = {
5658 mode = "buffers" ;
You can’t perform that action at this time.
0 commit comments