Configuration files

nvim: implement loading machine local formatter configs

Changed files
+17
.config
nvim
lua
plugins
+17
.config/nvim/lua/plugins/format.lua
··· 16 16 }, 17 17 } 18 18 19 + local ok, local_fmt = pcall(require, "local_fmt") 20 + if ok then 21 + if local_fmt.ft_formatters ~= nil then 22 + ft_formatters = vim.tbl_deep_extend("force", ft_formatters, local_fmt.ft_formatters) 23 + end 24 + if local_fmt.formatters ~= nil then 25 + formatters = vim.tbl_deep_extend("force", formatters, local_fmt.formatters) 26 + end 27 + else 28 + vim.print("error loading local_fmt") 29 + end 30 + 19 31 return { 20 32 "stevearc/conform.nvim", 21 33 lazy = true, ··· 36 48 end, 37 49 mode = { "x", "v" }, 38 50 desc = "Format selection", 51 + }, 52 + { 53 + "<leader>ci", 54 + "<cmd>ConformInfo<cr>", 55 + desc = "Formatter info", 39 56 }, 40 57 }, 41 58 opts = {