Compare commits
No commits in common. "6d87646eafaee39c849caaf1d3657425c413bb48" and "61feed4086ebae4fb33bf2584fa5f063b593fa54" have entirely different histories.
6d87646eaf
...
61feed4086
2 changed files with 34 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
colorschemes = {
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
settings = {
|
||||
integrations.native_lsp = {
|
||||
enabled = true;
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
};
|
||||
|
||||
colorschemes.tokyonight = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
settings = {
|
||||
style = "night";
|
||||
transparent = config.myvim.transparent;
|
||||
|
|
|
|||
|
|
@ -8,13 +8,39 @@
|
|||
default_format_opts.lsp_format = "prefer";
|
||||
notify_on_error = true;
|
||||
|
||||
format_on_save = {
|
||||
lsp_format = "prefer";
|
||||
};
|
||||
format_on_save = ''
|
||||
function(bufnr)
|
||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||
return
|
||||
end
|
||||
|
||||
format_after_save = {
|
||||
lsp_format = "prefer";
|
||||
};
|
||||
if slow_format_filetypes[vim.bo[bufnr].filetype] then
|
||||
return
|
||||
end
|
||||
|
||||
local function on_format(err)
|
||||
if err and err:match("timeout$") then
|
||||
slow_format_filetypes[vim.bo[bufnr].filetype] = true
|
||||
end
|
||||
end
|
||||
|
||||
return { timeout_ms = 200, lsp_fallback = true }, on_format
|
||||
end
|
||||
'';
|
||||
|
||||
format_after_save = ''
|
||||
function(bufnr)
|
||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||
return
|
||||
end
|
||||
|
||||
if not slow_format_filetypes[vim.bo[bufnr].filetype] then
|
||||
return
|
||||
end
|
||||
|
||||
return { lsp_fallback = true }
|
||||
end
|
||||
'';
|
||||
|
||||
formatters_by_ft = {
|
||||
"_" = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue