rm mason.ensure_installed & clean some conf

This commit is contained in:
siduck 2024-07-29 05:36:46 +05:30
parent 41c5b46733
commit 8f4b09ef03
4 changed files with 24 additions and 36 deletions

View File

@ -4,7 +4,7 @@
---@type ChadrcConfig ---@type ChadrcConfig
local M = {} local M = {}
M.ui = { M.base46 = {
theme = "onedark", theme = "onedark",
-- hl_override = { -- hl_override = {

View File

@ -12,4 +12,4 @@ local options = {
-- }, -- },
} }
require("conform").setup(options) return options

View File

@ -1,23 +1,24 @@
-- EXAMPLE -- load defaults i.e lua_lsp
local on_attach = require("nvchad.configs.lspconfig").on_attach require("nvchad.configs.lspconfig").defaults()
local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities
local lspconfig = require "lspconfig" local lspconfig = require "lspconfig"
-- EXAMPLE
local servers = { "html", "cssls" } local servers = { "html", "cssls" }
local nvlsp = require "nvchad.configs.lspconfig"
-- lsps with default config -- lsps with default config
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup {
on_attach = on_attach, on_attach = nvlsp.on_attach,
on_init = on_init, on_init = nvlsp.on_init,
capabilities = capabilities, capabilities = nvlsp.capabilities,
} }
end end
-- typescript -- configuring single server, example: typescript
lspconfig.tsserver.setup { -- lspconfig.tsserver.setup {
on_attach = on_attach, -- on_attach = on_attach,
on_init = on_init, -- on_init = on_init,
capabilities = capabilities, -- capabilities = capabilities,
} -- }

View File

@ -2,30 +2,17 @@ return {
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save -- event = 'BufWritePre', -- uncomment for format on save
config = function() opts = require "configs.conform",
require "configs.conform"
end,
}, },
-- These are some examples, uncomment them if you want to see them work! -- These are some examples, uncomment them if you want to see them work!
-- { {
-- "neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
-- config = function() config = function()
-- require("nvchad.configs.lspconfig").defaults() require "configs.lspconfig"
-- require "configs.lspconfig" end,
-- end, },
-- },
--
-- {
-- "williamboman/mason.nvim",
-- opts = {
-- ensure_installed = {
-- "lua-language-server", "stylua",
-- "html-lsp", "css-lsp" , "prettier"
-- },
-- },
-- },
--
-- { -- {
-- "nvim-treesitter/nvim-treesitter", -- "nvim-treesitter/nvim-treesitter",
-- opts = { -- opts = {