framework: eslint auto format
This commit is contained in:
parent
483600f4de
commit
cf2aaf7578
1 changed files with 10 additions and 6 deletions
|
|
@ -51,17 +51,14 @@ in {
|
||||||
highlight_command = {
|
highlight_command = {
|
||||||
require("actions-preview.highlight").delta("${pkgs.delta}/bin/delta --no-gitconfig --side-by-side"),
|
require("actions-preview.highlight").delta("${pkgs.delta}/bin/delta --no-gitconfig --side-by-side"),
|
||||||
},
|
},
|
||||||
telescope = {
|
telescope = {
|
||||||
sorting_strategy = "ascending",
|
sorting_strategy = "ascending",
|
||||||
layout_strategy = "vertical",
|
layout_strategy = "horizontal",
|
||||||
layout_config = {
|
layout_config = {
|
||||||
width = 0.8,
|
width = 0.9,
|
||||||
height = 0.9,
|
height = 0.9,
|
||||||
prompt_position = "top",
|
prompt_position = "top",
|
||||||
preview_cutoff = 20,
|
preview_cutoff = 20,
|
||||||
preview_height = function(_, _, max_lines)
|
|
||||||
return max_lines - 10
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -240,6 +237,13 @@ in {
|
||||||
vim.lsp.buf.format({async = false})
|
vim.lsp.buf.format({async = false})
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
event = "BufWritePre";
|
||||||
|
pattern = "*.ts";
|
||||||
|
callback = luaFunc ''
|
||||||
|
vim.lsp.buf.format({async = false})
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue