Add custom plugins: oil, neogit, render-markdown, metals, tokyonight transparency
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c20f3c9b89
commit
09142e7b57
|
|
@ -0,0 +1,23 @@
|
||||||
|
return {
|
||||||
|
'scalameta/nvim-metals',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
|
ft = { 'scala', 'sbt', 'java' },
|
||||||
|
opts = function()
|
||||||
|
local metals_config = require('metals').bare_config()
|
||||||
|
metals_config.settings = {
|
||||||
|
showImplicitArguments = true,
|
||||||
|
showImplicitConversionsAndClasses = true,
|
||||||
|
showInferredType = true,
|
||||||
|
superMethodLensesEnabled = true,
|
||||||
|
}
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
'NeogitOrg/neogit',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'sindrets/diffview.nvim',
|
||||||
|
'nvim-telescope/telescope.nvim',
|
||||||
|
},
|
||||||
|
config = true,
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
return {
|
||||||
|
'stevearc/oil.nvim',
|
||||||
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
lazy = false,
|
||||||
|
opts = {
|
||||||
|
default_file_explorer = true,
|
||||||
|
view_options = { show_hidden = true },
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ '-', '<CMD>Oil<CR>', desc = 'Open parent directory' },
|
||||||
|
{ '<leader>e', '<CMD>Oil<CR>', desc = 'Open file [E]xplorer' },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
return {
|
||||||
|
'MeanderingProgrammer/render-markdown.nvim',
|
||||||
|
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim' },
|
||||||
|
---@module 'render-markdown'
|
||||||
|
---@type render.md.UserConfig
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
return {
|
||||||
|
'folke/tokyonight.nvim',
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
---@diagnostic disable-next-line: missing-fields
|
||||||
|
require('tokyonight').setup {
|
||||||
|
transparent = true,
|
||||||
|
styles = {
|
||||||
|
sidebars = 'transparent',
|
||||||
|
floats = 'transparent',
|
||||||
|
comments = { italic = false },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
vim.cmd.colorscheme 'tokyonight-night'
|
||||||
|
end,
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue