Skip to content

Commit

Permalink
feat: add dprint as formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
BBboy01 committed Dec 31, 2023
1 parent 93b9024 commit 3e18fed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lua/plugins/colorscheme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ return {
'craftzdog/solarized-osaka.nvim',
lazy = false,
priority = 1000,
config = function(_, opts)
require('solarized-osaka').setup(opts)
config = function()
vim.cmd('colorscheme solarized-osaka')
vim.cmd.highlight('default link IndentLine Comment')
end,
Expand Down
3 changes: 3 additions & 0 deletions lua/plugins/none-ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ return {
local null_ls = require('null-ls')
null_ls.setup({
sources = {
null_ls.builtins.formatting.dprint.with({
filetypes = { 'json', 'jsonc', 'markdown', 'python', 'toml' },
}),
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.rustfmt.with({
Expand Down

0 comments on commit 3e18fed

Please sign in to comment.