summaryrefslogtreecommitdiff
path: root/after/plugin/conform.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-14 19:48:38 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-14 20:05:12 +0200
commit7dcd592eae886dc8edde2dc65d6e6323201a2aaf (patch)
tree8c792984bd55d710dd409bcc90d450e2e90a58ce /after/plugin/conform.lua
parent6081f67ec9f5032fcd9d4453a2646ca033364615 (diff)
checkpoint
- changed installation of tmux-navigator - removed init.lua file in user/ directory - added autocmd for terminal in insert mode - added keybind for opening terminal - added keybinds for lsp commands - added lua lsp setup - added nvim-cmp - added keybind for editing config - added keybinds for opening splits - added conceallevel = 2 - commented encoding options - plugins: - added go.nvim - added cmp-calc - markdown: - disable pairs for quotes - added pairs in markdown - go: - added go lsp - added autoformat of go files on save
Diffstat (limited to 'after/plugin/conform.lua')
-rw-r--r--after/plugin/conform.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/after/plugin/conform.lua b/after/plugin/conform.lua
new file mode 100644
index 0000000..13961b6
--- /dev/null
+++ b/after/plugin/conform.lua
@@ -0,0 +1,10 @@
+require("conform").setup({
+ formatters_by_ft = {
+ lua = { "stylua" },
+ },
+ format_on_save = {
+ -- These options will be passed to conform.format()
+ timeout_ms = 500,
+ lsp_format = "fallback",
+ },
+})