added md to ts
This commit is contained in:
parent
7db92a3485
commit
fde77fd7bb
@ -1,7 +1,7 @@
|
||||
---@type ChadrcConfig
|
||||
local M = {}
|
||||
|
||||
M.ui = { theme = 'oceanic-light' }
|
||||
M.ui = { theme = 'one_light' }
|
||||
M.plugins = 'custom.plugins'
|
||||
M.mappings = require "custom.mappings"
|
||||
return M
|
||||
|
||||
@ -19,7 +19,6 @@ local lspconfig = require("lspconfig")
|
||||
|
||||
local servers = {
|
||||
"pyright",
|
||||
"ruff_lsp"
|
||||
}
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
@ -44,28 +43,8 @@ lspconfig.hls.setup{
|
||||
filetypes = {'haskell', 'lhaskell', 'cabal'}
|
||||
}
|
||||
|
||||
|
||||
|
||||
lspconfig.matlab_ls.setup{
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
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 })
|
||||
|
||||
@ -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")
|
||||
|
||||
return M
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
local options = {
|
||||
ensure_installed = { "lua", "vim", "vimdoc","c","rust","haskell", "matlab", "tlaplus"},
|
||||
ensure_installed = { "lua", "vim", "vimdoc","c","rust","haskell", "matlab", "tlaplus", "markdown"},
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user