Skip to content

Commit a7712c2

Browse files
committed
nvim: enable visual_text
1 parent d475992 commit a7712c2

1 file changed

Lines changed: 38 additions & 34 deletions

File tree

modules/default.nix

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -71,43 +71,47 @@ in
7171
secure = true;
7272
};
7373

74-
plugins = let
75-
crates = if options.plugins?crates then "crates" else "crates-nvim";
76-
in {
77-
bufferline.enable = true;
78-
commentary.enable = true;
79-
"${crates}".enable = true;
80-
fidget.enable = true;
81-
gitsigns.enable = true;
82-
indent-blankline.enable = true;
83-
lastplace.enable = true;
84-
lualine = {
85-
enable = true;
86-
settings = {
87-
options = {
88-
globalstatus = true;
89-
theme = "onedark";
90-
};
91-
# https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#filename-component-options
92-
sections = {
93-
lualine_b = [ {
94-
sources = [ "nvim_diagnostic" "nvim_lsp" ];
95-
} ];
96-
lualine_c = [ {
97-
path = 1;
98-
} ];
74+
diagnostics.virtual_text = true;
75+
76+
plugins =
77+
let
78+
crates = if options.plugins?crates then "crates" else "crates-nvim";
79+
in
80+
{
81+
bufferline.enable = true;
82+
commentary.enable = true;
83+
"${crates}".enable = true;
84+
fidget.enable = true;
85+
gitsigns.enable = true;
86+
indent-blankline.enable = true;
87+
lastplace.enable = true;
88+
lualine = {
89+
enable = true;
90+
settings = {
91+
options = {
92+
globalstatus = true;
93+
theme = "onedark";
94+
};
95+
# https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#filename-component-options
96+
sections = {
97+
lualine_b = [{
98+
sources = [ "nvim_diagnostic" "nvim_lsp" ];
99+
}];
100+
lualine_c = [{
101+
path = 1;
102+
}];
103+
};
99104
};
100105
};
106+
nvim-autopairs.enable = true; # brackets, html, ...
107+
${colorizer}.enable = true;
108+
rainbow-delimiters.enable = true;
109+
ts-context-commentstring.enable = true; # set comment string dynamically
110+
vim-matchup.enable = true; # extends % key with comments
111+
web-devicons.enable = true;
112+
which-key.enable = true;
113+
vim-suda.enable = true;
101114
};
102-
nvim-autopairs.enable = true; # brackets, html, ...
103-
${colorizer}.enable = true;
104-
rainbow-delimiters.enable = true;
105-
ts-context-commentstring.enable = true; # set comment string dynamically
106-
vim-matchup.enable = true; # extends % key with comments
107-
web-devicons.enable = true;
108-
which-key.enable = true;
109-
vim-suda.enable = true;
110-
};
111115

112116
userCommands = {
113117
# Command aliases for common typos

0 commit comments

Comments
 (0)