1
1
return {
2
- { -- Autoformat
3
- ' stevearc/conform.nvim' ,
4
- event = { ' BufWritePre' },
5
- cmd = { ' ConformInfo' },
6
- keys = {
7
- {
8
- ' <leader>f' ,
9
- function ()
10
- require (' conform' ).format { async = true , lsp_format = ' fallback' }
11
- end ,
12
- mode = ' ' ,
13
- desc = ' [F]ormat buffer' ,
14
- },
15
- },
16
- opts = {
17
- notify_on_error = false ,
18
- format_on_save = function (bufnr )
19
- -- Disable "format_on_save lsp_fallback" for languages that don't
20
- -- have a well standardized coding style. You can add additional
21
- -- languages here or re-enable it for the disabled ones.
22
- local disable_filetypes = { c = true , cpp = true }
23
- if disable_filetypes [vim .bo [bufnr ].filetype ] then
24
- return nil
25
- else
26
- return {
27
- timeout_ms = 500 ,
28
- lsp_format = ' fallback' ,
29
- }
30
- end
31
- end ,
32
- formatters_by_ft = {
33
- lua = { ' stylua' },
34
- -- Conform can also run multiple formatters sequentially
35
- -- python = { "isort", "black" },
36
- --
37
- -- You can use 'stop_after_first' to run the first available formatter from the list
38
- -- javascript = { "prettierd", "prettier", stop_after_first = true },
39
- },
40
- },
2
+ { -- You can easily change to a different colorscheme.
3
+ -- Change the name of the colorscheme plugin below, and then
4
+ -- change the command in the config to whatever the name of that colorscheme is.
5
+ --
6
+ -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
7
+ ' folke/tokyonight.nvim' ,
8
+ priority = 1000 , -- Make sure to load this before all the other start plugins.
9
+ config = function ()
10
+ --- @diagnostic disable-next-line : missing-fields
11
+ require (' tokyonight' ).setup {
12
+ styles = {
13
+ comments = { italic = false }, -- Disable italics in comments
14
+ },
15
+ }
16
+
17
+ -- Load the colorscheme here.
18
+ -- Like many other themes, this one has different styles, and you could load
19
+ -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
20
+ vim .cmd .colorscheme ' tokyonight-night'
21
+ end ,
41
22
},
42
23
}
0 commit comments