configs for swift, typst, yaml, latex
This commit is contained in:
parent
b07b0b06b1
commit
36c6840b0c
2 changed files with 40 additions and 1 deletions
|
|
@ -17,7 +17,6 @@ require("mason-lspconfig").setup {
|
||||||
"bashls",
|
"bashls",
|
||||||
"css_variables",
|
"css_variables",
|
||||||
"marksman",
|
"marksman",
|
||||||
-- "rust_analyzer",
|
|
||||||
"rust_analyzer",
|
"rust_analyzer",
|
||||||
"ruff",
|
"ruff",
|
||||||
"jdtls",
|
"jdtls",
|
||||||
|
|
@ -26,3 +25,25 @@ require("mason-lspconfig").setup {
|
||||||
}
|
}
|
||||||
|
|
||||||
require("copilot").setup()
|
require("copilot").setup()
|
||||||
|
|
||||||
|
-- Swift?
|
||||||
|
vim.lsp.enable('sourcekit')
|
||||||
|
|
||||||
|
|
||||||
|
-- YAML
|
||||||
|
vim.lsp.config['yamlls'] = {
|
||||||
|
settings = {
|
||||||
|
yaml = {
|
||||||
|
format = {
|
||||||
|
singleQuote = true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-- Typst
|
||||||
|
vim.lsp.config["tinymist"] = {
|
||||||
|
cmd = { "tinymist" },
|
||||||
|
filetypes = { "typst" },
|
||||||
|
settings = {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -290,6 +290,24 @@ return {
|
||||||
"christoomey/vim-tmux-navigator",
|
"christoomey/vim-tmux-navigator",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
},
|
},
|
||||||
|
-----------
|
||||||
|
-- Latex --
|
||||||
|
-----------
|
||||||
|
{
|
||||||
|
"lervag/vimtex",
|
||||||
|
lazy = false, -- we don't want to lazy load VimTeX
|
||||||
|
-- tag = "v2.15", -- uncomment to pin to a specific release
|
||||||
|
init = function()
|
||||||
|
-- VimTeX configuration goes here, e.g.
|
||||||
|
vim.g.vimtex_view_method = "zathura"
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'chomosuke/typst-preview.nvim',
|
||||||
|
ft = 'typst',
|
||||||
|
version = '1.*',
|
||||||
|
opts = {}, -- lazy.nvim will implicitly calls `setup {}`
|
||||||
|
}
|
||||||
-- All NvChad plugins are lazy-loaded by default
|
-- All NvChad plugins are lazy-loaded by default
|
||||||
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
|
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
|
||||||
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
|
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue