Compare commits
2 commits
61feed4086
...
6d87646eaf
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d87646eaf | |||
| 90cfc16bc0 |
2 changed files with 8 additions and 34 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
colorschemes = {
|
colorschemes = {
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = false;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
integrations.native_lsp = {
|
integrations.native_lsp = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
colorschemes.tokyonight = {
|
colorschemes.tokyonight = {
|
||||||
enable = true;
|
enable = false;
|
||||||
settings = {
|
settings = {
|
||||||
style = "night";
|
style = "night";
|
||||||
transparent = config.myvim.transparent;
|
transparent = config.myvim.transparent;
|
||||||
|
|
|
||||||
|
|
@ -8,39 +8,13 @@
|
||||||
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 = {
|
||||||
function(bufnr)
|
lsp_format = "prefer";
|
||||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
};
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if slow_format_filetypes[vim.bo[bufnr].filetype] then
|
format_after_save = {
|
||||||
return
|
lsp_format = "prefer";
|
||||||
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