Compare commits

..

No commits in common. "9375a97be912f8487e6eb4cef78ff46affca083b" and "7f60e7fcb0586b37886b852eba18b6ed6b041d0c" have entirely different histories.

2 changed files with 16 additions and 5 deletions

View File

@ -26,7 +26,8 @@ modules["mason-lspconfig"].setup_handlers {
["omnisharp"] = function () ["omnisharp"] = function ()
modules["lspconfig"]["omnisharp"].setup { modules["lspconfig"]["omnisharp"].setup {
capabilities = capabilities, capabilities = capabilities,
on_attach = function (_,_) on_attach = function (client,buffnr)
vim.notify("attaching to CS buffer {" .. buffnr .. "}")
local gr = vim.api.nvim_create_augroup("CS-OnAttach",{}) local gr = vim.api.nvim_create_augroup("CS-OnAttach",{})
vim.api.nvim_create_autocmd({"BufWritePre"}, { vim.api.nvim_create_autocmd({"BufWritePre"}, {
group = gr, group = gr,
@ -37,6 +38,7 @@ modules["mason-lspconfig"].setup_handlers {
end end
} }
) )
vim.notify("Attached to CS buffer")
end end
} }
end end
@ -48,6 +50,12 @@ modules['mason-null-ls'].setup({
automatic_setup = true, automatic_setup = true,
}) })
modules['mason-null-ls'].setup_handlers {
function (source_name, methods)
require('mason-null-ls.automatic_setup')(source_name,methods)
end,
-- Custom handlers can be added below if needed
}
modules['fidget'].setup{ modules['fidget'].setup{
text = { text = {
@ -85,6 +93,11 @@ modules['mason-nvim-dap'].setup({
automatic_setup = true, automatic_setup = true,
}) })
modules['mason-nvim-dap'].setup_handlers {
function (source_name)
require('mason-nvim-dap.automatic_setup')(source_name)
end
}
modules['dapui'].setup({ modules['dapui'].setup({
icons = { icons = {

View File

@ -2,7 +2,6 @@
-- --
-- Inspired by rxi/log.lua -- Inspired by rxi/log.lua
-- Modified by tjdevries and can be found at github.com/tjdevries/vlog.nvim -- Modified by tjdevries and can be found at github.com/tjdevries/vlog.nvim
-- Further modified by sherlock5512 as part of these dotfiles
-- --
-- This library is free software; you can redistribute it and/or modify it -- This library is free software; you can redistribute it and/or modify it
-- under the terms of the MIT license. See LICENSE for details. -- under the terms of the MIT license. See LICENSE for details.
@ -22,7 +21,7 @@ local default_config = {
use_file = true, use_file = true,
-- Any messages above this level will be logged. -- Any messages above this level will be logged.
level = "warn", level = "trace",
-- Level configuration -- Level configuration
modes = { modes = {
@ -110,7 +109,6 @@ log.new = function(config, standalone)
vim.cmd(string.format("echohl %s", level_config.hl)) vim.cmd(string.format("echohl %s", level_config.hl))
end end
---@diagnostic disable-next-line: missing-parameter -- This function can be called with only two parameters
local split_console = vim.split(console_string, "\n") local split_console = vim.split(console_string, "\n")
for _, v in ipairs(split_console) do for _, v in ipairs(split_console) do
vim.cmd(string.format([[echom "[%s] %s"]], config.plugin, vim.fn.escape(v, '"'))) vim.cmd(string.format([[echom "[%s] %s"]], config.plugin, vim.fn.escape(v, '"')))
@ -123,7 +121,7 @@ log.new = function(config, standalone)
-- Output to log file -- Output to log file
if config.use_file then if config.use_file then
local fp = assert(io.open(outfile, "a"),"Could not open " .. outfile .. "!") local fp = io.open(outfile, "a")
local str = string.format("[%-6s%s] %s: %s\n", local str = string.format("[%-6s%s] %s: %s\n",
nameupper, os.date(), lineinfo, msg) nameupper, os.date(), lineinfo, msg)
fp:write(str) fp:write(str)