2 Commits

Author SHA1 Message Date
Juni Kim eec5c413a5 timeout and background 5 months ago
Juni Kim 49f9461cde mdx 1 year ago
  1. 11
      after/plugin/lsp.lua
  2. 10
      lua/junikim/options.lua
  3. 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()

10
lua/junikim/options.lua

@ -55,6 +55,16 @@ vim.api.nvim_create_autocmd(
}
)
vim.api.nvim_create_autocmd(
{ "BufRead", "BufNewFile" },
{
pattern = { "*.mdx", "*.md" },
callback = function(args)
vim.bo.filetype = "markdown"
end
}
)
vim.api.nvim_create_autocmd("FileType", {
pattern = { "tex", "text" },
callback = function(args)

2
lua/junikim/theme.lua

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

Loading…
Cancel
Save