added md to ts

This commit is contained in:
Dane Sabo 2025-02-19 20:40:28 -05:00
parent 7db92a3485
commit fde77fd7bb
4 changed files with 20 additions and 23 deletions

View File

@ -1,7 +1,7 @@
---@type ChadrcConfig ---@type ChadrcConfig
local M = {} local M = {}
M.ui = { theme = 'oceanic-light' } M.ui = { theme = 'one_light' }
M.plugins = 'custom.plugins' M.plugins = 'custom.plugins'
M.mappings = require "custom.mappings" M.mappings = require "custom.mappings"
return M return M

View File

@ -19,7 +19,6 @@ local lspconfig = require("lspconfig")
local servers = { local servers = {
"pyright", "pyright",
"ruff_lsp"
} }
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
@ -44,28 +43,8 @@ lspconfig.hls.setup{
filetypes = {'haskell', 'lhaskell', 'cabal'} filetypes = {'haskell', 'lhaskell', 'cabal'}
} }
lspconfig.matlab_ls.setup{ lspconfig.matlab_ls.setup{
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
filetypes = {'matlab'} filetypes = {'matlab'}
} }
-- Function to show diagnostics on hover
vim.api.nvim_create_autocmd("CursorHold", {
callback = function()
local opts = {
focusable = false,
close_events = { "BufLeave", "CursorMoved", "InsertEnter", "FocusLost" },
border = 'rounded',
source = 'always', -- show source in diagnostics popup window
prefix = ' ',
scope = 'cursor',
}
vim.diagnostic.open_float(nil, opts)
end
})
-- Optional: keybinding to manually show diagnostics on hover
vim.api.nvim_set_keymap('n', '<leader>e', '<cmd>lua vim.diagnostic.open_float()<CR>', { noremap = true, silent = true })

View File

@ -27,6 +27,24 @@ M.crates = {
} }
} }
-- Function to show diagnostics on hover
vim.api.nvim_create_autocmd("CursorHold", {
callback = function()
local opts = {
focusable = false,
close_events = { "BufLeave", "CursorMoved", "InsertEnter", "FocusLost" },
border = 'rounded',
source = 'always', -- show source in diagnostics popup window
prefix = ' ',
scope = 'cursor',
}
vim.diagnostic.open_float(nil, opts)
end
})
-- Optional: keybinding to manually show diagnostics on hover
vim.api.nvim_set_keymap('n', '<leader>e', '<cmd>lua vim.diagnostic.open_float()<CR>', { noremap = true, silent = true })
require("custom.language_specific_commands.matlab") require("custom.language_specific_commands.matlab")
return M return M

View File

@ -1,5 +1,5 @@
local options = { local options = {
ensure_installed = { "lua", "vim", "vimdoc","c","rust","haskell", "matlab", "tlaplus"}, ensure_installed = { "lua", "vim", "vimdoc","c","rust","haskell", "matlab", "tlaplus", "markdown"},
highlight = { highlight = {
enable = true, enable = true,