mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
adding autoformat option
This commit is contained in:
parent
30b7215de8
commit
ac302b9b48
3 changed files with 7 additions and 1 deletions
|
|
@ -117,6 +117,9 @@ return {
|
||||||
colorscheme = function()
|
colorscheme = function()
|
||||||
require("tokyonight").load()
|
require("tokyonight").load()
|
||||||
end,
|
end,
|
||||||
|
lsp = {
|
||||||
|
autoformat = true,
|
||||||
|
},
|
||||||
-- icons used by other plugins
|
-- icons used by other plugins
|
||||||
icons = {
|
icons = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@ local defaults = {
|
||||||
colorscheme = function()
|
colorscheme = function()
|
||||||
require("tokyonight").load()
|
require("tokyonight").load()
|
||||||
end,
|
end,
|
||||||
|
lsp = {
|
||||||
|
autoformat = true,
|
||||||
|
},
|
||||||
-- icons used by other plugins
|
-- icons used by other plugins
|
||||||
icons = {
|
icons = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ local Util = require("lazy.core.util")
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.autoformat = true
|
M.autoformat = require("lazyvim.config").lsp.autoformat
|
||||||
|
|
||||||
function M.toggle()
|
function M.toggle()
|
||||||
M.autoformat = not M.autoformat
|
M.autoformat = not M.autoformat
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue