feat(none-ls): Add prettier

In defaults.lua change 'opt' to 'go'
Fix catppuccin colorscheme
This commit is contained in:
rajvatsal 2024-01-05 18:02:10 +05:30
parent b3e474b0ca
commit 30511c1c89
3 changed files with 9 additions and 7 deletions

View File

@ -1,8 +1,8 @@
vim.opt.tabstop = 2 vim.go.tabstop = 2
vim.opt.shiftwidth = 2 vim.go.shiftwidth = 2
vim.opt.expandtab = true vim.go.expandtab = true
vim.bo.softtabstop = 2 vim.bo.softtabstop = 2
vim.opt.relativenumber = true vim.go.relativenumber = true
vim.keymap.set('t', '<Esc>', [[<C-\><C-n>]], { noremap = true }) vim.keymap.set('t', '<Esc>', [[<C-\><C-n>]], { noremap = true })
vim.cmd.colorscheme 'gruvbox' -- Set custom colorscheme [[ NOTE: Never set it to "onedark" cuz it breaks the editor ]] vim.cmd.colorscheme 'gruvbox' -- Set custom colorscheme [[ NOTE: Never set it to "onedark" cuz it breaks the editor ]]

View File

@ -3,8 +3,7 @@ return {
{ "ellisonleao/gruvbox.nvim", priority = 1000, config = true, opts = ... }, { "ellisonleao/gruvbox.nvim", priority = 1000, config = true, opts = ... },
--tokyonight colorscheme --tokyonight colorscheme
{ { "folke/tokyonight.nvim", priority = 1000 },
"folke/tokyonight.nvim", priority = 1000 },
-- lunar-vim colorschemes -- lunar-vim colorschemes
{ "lunarvim/colorschemes", priority = 1000 }, { "lunarvim/colorschemes", priority = 1000 },

View File

@ -6,6 +6,9 @@ return {
null_ls.setup({ null_ls.setup({
sources = { sources = {
null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.prettier.with({
disabled_filetypes = { 'javascript', 'typescript', 'json' } -- Use biome
}),
null_ls.builtins.formatting.biome, null_ls.builtins.formatting.biome,
null_ls.builtins.diagnostics.biome, null_ls.builtins.diagnostics.biome,
} }