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 = {
|
colorschemes = {
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
enable = false;
|
||||||
settings = {
|
settings = {
|
||||||
integrations.native_lsp = {
|
integrations.native_lsp = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
colorschemes.tokyonight = {
|
colorschemes.tokyonight = {
|
||||||
enable = false;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
style = "night";
|
style = "night";
|
||||||
transparent = config.myvim.transparent;
|
transparent = config.myvim.transparent;
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,39 @@
|
||||||
default_format_opts.lsp_format = "prefer";
|
default_format_opts.lsp_format = "prefer";
|
||||||
notify_on_error = true;
|
notify_on_error = true;
|
||||||
|
|
||||||
format_on_save = {
|
format_on_save = ''
|
||||||
lsp_format = "prefer";
|
function(bufnr)
|
||||||
};
|
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
format_after_save = {
|
if slow_format_filetypes[vim.bo[bufnr].filetype] then
|
||||||
lsp_format = "prefer";
|
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 = {
|
formatters_by_ft = {
|
||||||
"_" = [
|
"_" = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue