This commit is contained in:
ZaneFerns360 2024-04-28 00:32:00 +05:30
parent 69383c3a1d
commit c98c45d26e
2 changed files with 65 additions and 13 deletions

View File

@ -579,15 +579,24 @@ require('lazy').setup({
-- --
cssls = { cssls = {
settings = { settings = {
css = { validate = true, lint = { css = {
unknownAtRules = 'ignore', validate = true,
} }, lint = {
scss = { validate = true, lint = { unknownAtRules = 'ignore',
unknownAtRules = 'ignore', },
} }, },
less = { validate = true, lint = { scss = {
unknownAtRules = 'ignore', validate = true,
} }, lint = {
unknownAtRules = 'ignore',
},
},
less = {
validate = true,
lint = {
unknownAtRules = 'ignore',
},
},
}, },
}, },
@ -619,7 +628,17 @@ require('lazy').setup({
-- for you, so that they are available from within Neovim. -- for you, so that they are available from within Neovim.
local ensure_installed = vim.tbl_keys(servers or {}) local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, { vim.list_extend(ensure_installed, {
'stylua', -- Used to format Lua code 'lua-language-server',
'stylua',
'prettierd',
'clangd',
'clang-format',
'ruff',
'pyright',
'rust-analyzer',
'yaml-language-server',
'cspell',
'sql-formatter',
}) })
require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-tool-installer').setup { ensure_installed = ensure_installed }
@ -657,10 +676,10 @@ require('lazy').setup({
-- Disable "format_on_save lsp_fallback" for languages that don't -- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional -- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones. -- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true } -- local disable_filetypes = { c = true, cpp = true }
return { return {
timeout_ms = 500, timeout_ms = 500,
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype], -- lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
} }
end, end,
formatters_by_ft = { formatters_by_ft = {
@ -670,7 +689,16 @@ require('lazy').setup({
-- --
-- You can use a sub-list to tell conform to run *until* a formatter -- You can use a sub-list to tell conform to run *until* a formatter
-- is found. -- is found.
-- javascript = { { "prettierd", "prettier" } }, javascript = { { 'prettierd', 'prettier' } },
typescript = { { 'prettierd', 'prettier' } },
javascriptreact = { { 'prettierd', 'prettier' } },
typescriptreact = { { 'prettierd', 'prettier' } },
css = { { 'prettierd', 'prettier' } },
scc = { { 'prettierd', 'prettier' } },
html = { { 'prettierd', 'prettier' } },
python = { { 'ruff' } },
c = { { 'clang_format' } },
cpp = { { 'clang_format' } },
}, },
}, },
}, },

View File

@ -0,0 +1,24 @@
local lg = {
-- nvim v0.8.0
{
'kdheepak/lazygit.nvim',
cmd = {
'LazyGit',
'LazyGitConfig',
'LazyGitCurrentFile',
'LazyGitFilter',
'LazyGitFilterCurrentFile',
},
-- optional for floating window border decoration
dependencies = {
'nvim-lua/plenary.nvim',
},
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
},
},
}
return lg