Compare commits

..

4 Commits
html ... master

Author SHA1 Message Date
9800cd3ff9 dashboard 2025-04-09 12:50:33 -04:00
37f5e00264 merge 2025-04-07 11:51:07 -04:00
f5a5a3bf76 Merge pull request 'work fork.. oh man' (#1) from work into master
Reviewed-on: #1
2025-04-07 11:41:05 -04:00
Dominic DiTaranto
fda94d28c8 work fork.. oh man 2025-04-04 11:30:52 -04:00
2 changed files with 156 additions and 2 deletions

155
init.lua
View File

@ -171,6 +171,75 @@ require("lazy").setup({
"tpope/vim-sleuth", -- Detect tabstop and shiftwidth automatically
"neanias/everforest-nvim",
"L3MON4D3/LuaSnip",
{
"nvimdev/dashboard-nvim",
lazy = false, -- As https://github.com/nvimdev/dashboard-nvim/pull/450, dashboard-nvim shouldn't be lazy-loaded to properly handle stdin.
opts = function()
local logo = [[
]]
logo = string.rep("\n", 8) .. logo .. "\n\n"
local utils = require("dashboard.utils")
local mlist = utils.get_mru_list()
local opts = {
theme = "hyper",
hide = {
-- this is taken care of by lualine
-- enabling this messes up the actual laststatus setting after loading a file
statusline = true,
tabline = true,
winbar = true,
},
config = {
shortcut = {
{ desc = "さようなら、バイバイ、いなり寿司。" },
},
header = vim.split(logo, "\n"),
packages = { enable = false },
project = { enable = false },
mru = { enable = true, limit = 10, label = "最近使ったファイル:", cwd_only = false },
footer = function()
return { "" }
end,
},
}
-- open dashboard after closing lazy
if vim.o.filetype == "lazy" then
vim.api.nvim_create_autocmd("WinClosed", {
pattern = tostring(vim.api.nvim_get_current_win()),
once = true,
callback = function()
vim.schedule(function()
vim.api.nvim_exec_autocmds("UIEnter", { group = "dashboard" })
end)
end,
})
end
return opts
end,
},
{
"3rd/image.nvim",
build = false, -- so that it doesn't build the rock https://github.com/3rd/image.nvim/issues/91#issuecomment-2453430239
@ -188,6 +257,80 @@ require("lazy").setup({
---@type render.md.UserConfig
opts = {},
},
{
"seblyng/roslyn.nvim",
ft = { "cs", "razor" },
dependencies = {
{
-- By loading as a dependencies, we ensure that we are available to set
-- the handlers for roslyn
"tris203/rzls.nvim",
config = function()
---@diagnostic disable-next-line: missing-fields
require("rzls").setup({})
end,
},
},
config = function()
require("roslyn").setup({
args = {
"--stdio",
"--logLevel=Information",
"--extensionLogDirectory=" .. vim.fs.dirname(vim.lsp.get_log_path()),
"--razorSourceGenerator=" .. vim.fs.joinpath(
vim.fn.stdpath("data") --[[@as string]],
"mason",
"packages",
"roslyn",
"libexec",
"Microsoft.CodeAnalysis.Razor.Compiler.dll"
),
"--razorDesignTimePath=" .. vim.fs.joinpath(
vim.fn.stdpath("data") --[[@as string]],
"mason",
"packages",
"rzls",
"libexec",
"Targets",
"Microsoft.NET.Sdk.Razor.DesignTime.targets"
),
},
---@diagnostic disable-next-line: missing-fields
config = {
handlers = require("rzls.roslyn_handlers"),
settings = {
["csharp|inlay_hints"] = {
csharp_enable_inlay_hints_for_implicit_object_creation = true,
csharp_enable_inlay_hints_for_implicit_variable_types = true,
csharp_enable_inlay_hints_for_lambda_parameter_types = true,
csharp_enable_inlay_hints_for_types = true,
dotnet_enable_inlay_hints_for_indexer_parameters = true,
dotnet_enable_inlay_hints_for_literal_parameters = true,
dotnet_enable_inlay_hints_for_object_creation_parameters = true,
dotnet_enable_inlay_hints_for_other_parameters = true,
dotnet_enable_inlay_hints_for_parameters = true,
dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix = true,
dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name = true,
dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent = true,
},
["csharp|code_lens"] = {
dotnet_enable_references_code_lens = true,
},
},
},
})
end,
init = function()
-- we add the razor filetypes before the plugin loads
vim.filetype.add({
extension = {
razor = "razor",
cshtml = "razor",
},
})
end,
},
{
"okuuva/auto-save.nvim",
version = "^1.0.0", -- see https://devhints.io/semver, alternatively use '*' to use the latest tagged release
@ -474,7 +617,15 @@ require("lazy").setup({
-- Automatically install LSPs and related tools to stdpath for Neovim
-- Mason must be loaded before its dependents so we need to set it up here.
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
{ "williamboman/mason.nvim", opts = {} },
{
"williamboman/mason.nvim",
opts = {
registries = {
"github:mason-org/mason-registry",
"github:crashdummyy/mason-registry",
},
},
},
"williamboman/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
@ -700,6 +851,8 @@ require("lazy").setup({
},
},
},
roslyn = {},
omnisharp = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--

View File

@ -24,10 +24,11 @@
"nvim-lspconfig": { "branch": "master", "commit": "52d857c603eab0a51d1bedd7ec9538a42f88b469" },
"nvim-tree.lua": { "branch": "master", "commit": "6709463b2d18e77f7a946027917aa00d4aaed6f4" },
"nvim-treesitter": { "branch": "master", "commit": "523a9e148919f58eb5a013f76787e57696e00c93" },
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
"nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"render-markdown.nvim": { "branch": "main", "commit": "0ed141a60ca4befcaf923b21c36f6f2971d61b9e" },
"roslyn.nvim": { "branch": "main", "commit": "02aa30c67a538c00ef197708daf2edba11d50a2b" },
"rzls.nvim": { "branch": "main", "commit": "ebb652a4876c3c6af344333a6fc6bacffd85a27a" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },