- Split lua/custom/language_specific_commands/markdown_and_tex.lua into
markdown.lua, tex.lua, and a shared nabla_setup.lua
- Add cadquery.lua: auto-render on save for ~/Documents/cad scripts via
the project venv, with notifications and a <leader>cr manual trigger
- tex.lua: add \textcolor{blue|red|green}{...} operator + visual maps
(<leader>t{b,r,g}, <leader>tx to remove); set textwidth=80, spell on
- markdown.lua: spell on, textwidth=60, nabla setup hook
- vimtex: switch to latexmk + lualatex with continuous compile and
synctex; PDF viewer = skim with sync/activate
- lspconfig: enable julia_ls and texlab; add julialsp + texlab to Mason
ensure_installed
- chadrc: theme -> ayu_dark
- init.lua: ghcup PATH to macOS location; load cadquery module;
comment out taskwarrior (replaced by openclaw agent); add updatetime
and sessionoptions for CursorHold + auto-session
48 lines
1.2 KiB
Lua
48 lines
1.2 KiB
Lua
local config = require "plugins.configs.lspconfig"
|
|
|
|
local on_attach = config.on_attach
|
|
local capabilities = config.capabilities
|
|
|
|
local common = {
|
|
on_attach = on_attach,
|
|
capabilities = capabilities,
|
|
}
|
|
|
|
vim.lsp.config("jedi_language_server", vim.tbl_extend("force", common, {
|
|
filetypes = { "python" },
|
|
}))
|
|
vim.lsp.enable("jedi_language_server")
|
|
|
|
vim.lsp.config("hls", vim.tbl_extend("force", common, {
|
|
filetypes = { "haskell", "lhaskell", "cabal" },
|
|
}))
|
|
vim.lsp.enable("hls")
|
|
|
|
require "custom.language_specific_commands.matlab"
|
|
vim.lsp.config("matlab_ls", vim.tbl_extend("force", common, {
|
|
filetypes = { "matlab" },
|
|
}))
|
|
vim.lsp.enable("matlab_ls")
|
|
|
|
vim.lsp.config("clangd", vim.tbl_extend("force", common, {
|
|
filetypes = { "c", "cpp" },
|
|
}))
|
|
vim.lsp.enable("clangd")
|
|
|
|
require "custom.language_specific_commands.markdown"
|
|
vim.lsp.config("marksman", vim.tbl_extend("force", common, {
|
|
filetypes = { "markdown" },
|
|
}))
|
|
vim.lsp.enable("marksman")
|
|
|
|
require "custom.language_specific_commands.tex"
|
|
vim.lsp.config("texlab", vim.tbl_extend("force", common, {
|
|
filetypes = { "tex" },
|
|
}))
|
|
vim.lsp.enable("texlab")
|
|
|
|
vim.lsp.config("julia_ls", vim.tbl_extend("force", common, {
|
|
filetypes = { "julia" },
|
|
}))
|
|
vim.lsp.enable("julia_ls")
|