adding autoformat option

This commit is contained in:
Mike Fitzgerald 2023-01-16 11:03:26 +01:00
parent 30b7215de8
commit ac302b9b48
3 changed files with 7 additions and 1 deletions

View file

@ -117,6 +117,9 @@ return {
colorscheme = function()
require("tokyonight").load()
end,
lsp = {
autoformat = true,
},
-- icons used by other plugins
icons = {
diagnostics = {

View file

@ -10,6 +10,9 @@ local defaults = {
colorscheme = function()
require("tokyonight").load()
end,
lsp = {
autoformat = true,
},
-- icons used by other plugins
icons = {
diagnostics = {

View file

@ -2,7 +2,7 @@ local Util = require("lazy.core.util")
local M = {}
M.autoformat = true
M.autoformat = require("lazyvim.config").lsp.autoformat
function M.toggle()
M.autoformat = not M.autoformat