master
Elias Almqvist 4 days ago
parent 32fef1d4bb
commit 44ef1a4701
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 2
      nvchad/.config/nvim/lua/chadrc.lua
  2. 2
      nvchad/.config/nvim/lua/configs/lspconfig.lua
  3. 45
      nvchad/.config/nvim/lua/plugins/init.lua

@ -38,7 +38,7 @@ end
M = { M = {
base46 = { base46 = {
theme = "ayu_dark", theme = "ayu_dark",
theme_toggle = { "ayu_dark", "ayu_dark" }, theme_toggle = { "ayu_dark", "ayu_light" },
}, },
ui = { ui = {
hl_override = highlights.override, hl_override = highlights.override,

@ -14,7 +14,7 @@ local servers = {
"tailwindcss", "tailwindcss",
"pyright", "pyright",
"julials", "julials",
"metals", -- "metals", -- handled by nvim-metals
} }
-- lsps with default config -- lsps with default config

@ -157,29 +157,36 @@ local plugins = {
-- end, -- end,
}, },
-- { {
-- "numToStr/Comment.nvim", "scalameta/nvim-metals",
-- dependencies = "JoosepAlviste/nvim-ts-context-commentstring", dependencies = {
-- config = function() "nvim-lua/plenary.nvim",
-- require("Comment").setup({ },
-- pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(), ft = { "scala", "sbt", "java" },
-- }) opts = function()
-- end, local metals_config = require("metals").bare_config()
-- }, metals_config.on_attach = function(client, bufnr)
-- your on_attach function
-- To make a plugin not be loaded end
return metals_config
end,
config = function(self, metals_config)
local nvim_metals_group = vim.api.nvim_create_augroup("nvim-metals", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = self.ft,
callback = function()
require("metals").initialize_or_attach(metals_config)
end,
group = nvim_metals_group,
})
end
},
--
{ {
"NvChad/nvim-colorizer.lua", "NvChad/nvim-colorizer.lua",
enabled = true enabled = true
}, },
-- All NvChad plugins are lazy-loaded by default
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
-- {
-- "mg979/vim-visual-multi",
-- lazy = false,
-- }
} }
return plugins return plugins

Loading…
Cancel
Save