mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update: 2024-11-29
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local js = { "biome", "biome-check", "rustywind" }
|
||||
local js = { "biome", "biome-check" }
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
event = { "BufWritePre" },
|
||||
@@ -15,6 +15,8 @@ return {
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
css = { "prettier" },
|
||||
scss = { "prettier" },
|
||||
python = { "ruff", "ruff_fix", "ruff_organize_imports" },
|
||||
go = { "goimports", "gofmt" },
|
||||
javascript = js,
|
||||
|
||||
39
lua/plugins/image.lua
Normal file
39
lua/plugins/image.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
return {
|
||||
"3rd/image.nvim",
|
||||
opts = {
|
||||
backend = "ueberzug",
|
||||
processor = "magick_rock", -- or "magick_cli"
|
||||
integrations = {
|
||||
markdown = {
|
||||
enabled = true,
|
||||
clear_in_insert_mode = false,
|
||||
download_remote_images = true,
|
||||
only_render_image_at_cursor = false,
|
||||
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
|
||||
},
|
||||
neorg = {
|
||||
enabled = true,
|
||||
filetypes = { "norg" },
|
||||
},
|
||||
typst = {
|
||||
enabled = true,
|
||||
filetypes = { "typst" },
|
||||
},
|
||||
html = {
|
||||
enabled = false,
|
||||
},
|
||||
css = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
max_width = nil,
|
||||
max_height = nil,
|
||||
max_width_window_percentage = nil,
|
||||
max_height_window_percentage = 50,
|
||||
window_overlap_clear_enabled = false, -- toggles images when windows are overlapped
|
||||
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
|
||||
editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus
|
||||
tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
|
||||
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp", "*.avif" }, -- render image files as images when opened
|
||||
},
|
||||
}
|
||||
@@ -6,8 +6,8 @@ M.setup = function(lsp, capabilities)
|
||||
filetypes = {
|
||||
"html",
|
||||
"htmldjango",
|
||||
-- "typescriptreact",
|
||||
-- "javascriptreact",
|
||||
"typescriptreact",
|
||||
"javascriptreact",
|
||||
"css",
|
||||
"sass",
|
||||
"scss",
|
||||
|
||||
@@ -128,6 +128,7 @@ return {
|
||||
automatic_installation = true,
|
||||
automatic_setup = true,
|
||||
ensure_installed = {
|
||||
-- "basedpyright",
|
||||
"bashls",
|
||||
"clangd",
|
||||
"cmake",
|
||||
@@ -135,11 +136,11 @@ return {
|
||||
"emmet_ls",
|
||||
"html",
|
||||
"jedi_language_server",
|
||||
-- "basedpyright",
|
||||
-- "tinymist",
|
||||
"lua_ls",
|
||||
"tailwindcss",
|
||||
"texlab",
|
||||
-- "tinymist",
|
||||
"ts_ls",
|
||||
},
|
||||
handlers = {
|
||||
default_setup,
|
||||
@@ -177,6 +178,7 @@ return {
|
||||
tinymist = function()
|
||||
require("plugins.lsp.tinymist").setup(lsp, lsp_capabilities)
|
||||
end,
|
||||
ts_ls = function() end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
@@ -19,7 +19,7 @@ return {
|
||||
languages = {
|
||||
python = {
|
||||
template = {
|
||||
annotation_convention = "numpydoc", -- google_docstrings, numpydoc, reST
|
||||
annotation_convention = "google_docstrings", -- google_docstrings, numpydoc, reST
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -41,7 +41,7 @@ return {
|
||||
-- https://github.com/microsoft/TypeScript/blob/3c221fc086be52b19801f6e8d82596d04607ede6/src/compiler/utilitiesPublic.ts#L620
|
||||
tsserver_locale = "en",
|
||||
-- mirror of VSCode's `typescript.suggest.completeFunctionCalls`
|
||||
complete_function_calls = false,
|
||||
complete_function_calls = true,
|
||||
include_completions_with_insert_text = true,
|
||||
-- CodeLens
|
||||
-- WARNING: Experimental feature also in VSCode, because it might hit performance of server.
|
||||
|
||||
Reference in New Issue
Block a user