Browse Source

timeout and background

master
Juni Kim 6 months ago
parent
commit
eec5c413a5
  1. 11
      after/plugin/lsp.lua
  2. 2
      lua/junikim/theme.lua

11
after/plugin/lsp.lua

@ -83,17 +83,8 @@ null_ls.setup({
}
})
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = { "*.go", "*.py", "*.lua", "*.rs" },
callback = function(args)
vim.lsp.buf.format {
timeout_ms = 5000
}
end
})
vim.keymap.set("n", "<leader>ft", function()
vim.lsp.buf.format()
vim.lsp.buf.format { timeout_ms = 5000 }
end)
require('mason').setup()

2
lua/junikim/theme.lua

@ -1,5 +1,5 @@
require('catppuccin').setup {
transparent_background = false,
transparent_background = true,
}
local day = 9

Loading…
Cancel
Save