mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-28 10:24:47 +01:00
NVIM: Split opts and config for lazy plugins
This commit is contained in:
@@ -10,18 +10,16 @@ return {
|
||||
desc = "LSP: format",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
markdown = { "mdformat" },
|
||||
python = { "isort", "yapf" },
|
||||
sh = { "shfmt" },
|
||||
bash = { "shfmt" },
|
||||
zsh = { "shfmt" },
|
||||
tex = { "latexindent" },
|
||||
yaml = { "yamlfmt" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
markdown = { "mdformat" },
|
||||
python = { "isort", "yapf" },
|
||||
sh = { "shfmt" },
|
||||
bash = { "shfmt" },
|
||||
zsh = { "shfmt" },
|
||||
tex = { "latexindent" },
|
||||
yaml = { "yamlfmt" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -3,18 +3,20 @@ return {
|
||||
"hat0uma/csvview.nvim",
|
||||
ft = "csv",
|
||||
cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" },
|
||||
config = function()
|
||||
require("csvview").setup({
|
||||
parser = { comments = { "#", "//" } },
|
||||
keymaps = {
|
||||
textobject_field_inner = { "if", mode = { "o", "x" } },
|
||||
textobject_field_outer = { "af", mode = { "o", "x" } },
|
||||
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
|
||||
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
|
||||
jump_next_row = { "<Enter>", mode = { "n", "v" } },
|
||||
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
|
||||
},
|
||||
})
|
||||
require("csvview").enable()
|
||||
opts = {
|
||||
parser = { comments = { "#", "//" } },
|
||||
keymaps = {
|
||||
textobject_field_inner = { "if", mode = { "o", "x" } },
|
||||
textobject_field_outer = { "af", mode = { "o", "x" } },
|
||||
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
|
||||
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
|
||||
jump_next_row = { "<Enter>", mode = { "n", "v" } },
|
||||
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local csvview = require("csvview")
|
||||
csvview.setup(opts)
|
||||
csvview.enable()
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -46,19 +46,17 @@ return {
|
||||
desc = "LSP: close all preview windows",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("goto-preview").setup({
|
||||
border = "rounded",
|
||||
preview_window_title = { enable = true, position = "center" },
|
||||
opts = {
|
||||
border = "rounded",
|
||||
preview_window_title = { enable = true, position = "center" },
|
||||
|
||||
post_open_hook = function(bufnr, winid)
|
||||
local close = function()
|
||||
require("goto-preview").close_all_win()
|
||||
end
|
||||
post_open_hook = function(bufnr, _)
|
||||
local close = function()
|
||||
require("goto-preview").close_all_win()
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<c-h>", close, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set("n", "q", close, { buffer = bufnr, silent = true })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
vim.keymap.set("n", "<c-h>", close, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set("n", "q", close, { buffer = bufnr, silent = true })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -4,9 +4,7 @@ return {
|
||||
keys = {
|
||||
{
|
||||
"<leader>p",
|
||||
function()
|
||||
require("knap").toggle_autopreviewing()
|
||||
end,
|
||||
function() require("knap").toggle_autopreviewing() end,
|
||||
desc = "Knap: toggle autopreview",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -2,17 +2,14 @@ return {
|
||||
-- statusline
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
lazy = true,
|
||||
},
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"tiyn/tccs.nvim",
|
||||
{
|
||||
"f-person/git-blame.nvim",
|
||||
config = function()
|
||||
vim.g.gitblame_display_virtual_text = 0
|
||||
end,
|
||||
},
|
||||
{ "tiyn/tccs.nvim" },
|
||||
{
|
||||
"tiyn/action-hints.nvim",
|
||||
config = function()
|
||||
@@ -27,54 +24,58 @@ return {
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
globalstatus = true,
|
||||
symbols = {
|
||||
error = Error_sign,
|
||||
warn = Warn_sign,
|
||||
hint = Hint_sign,
|
||||
info = Info_sign,
|
||||
},
|
||||
theme = "tccs",
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
opts = {
|
||||
options = {
|
||||
globalstatus = true,
|
||||
symbols = {
|
||||
error = Error_sign,
|
||||
warn = Warn_sign,
|
||||
hint = Hint_sign,
|
||||
info = Info_sign,
|
||||
},
|
||||
sections = {
|
||||
lualine_b = {
|
||||
{
|
||||
require("gitblame").get_current_blame_text,
|
||||
cond = require("gitblame").is_blame_text_available,
|
||||
},
|
||||
theme = "tccs",
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
},
|
||||
sections = {
|
||||
lualine_b = {
|
||||
{
|
||||
function()
|
||||
return require("gitblame").get_current_blame_text()
|
||||
end,
|
||||
cond = function()
|
||||
return require("gitblame").is_blame_text_available()
|
||||
end,
|
||||
},
|
||||
lualine_c = {},
|
||||
lualine_x = {
|
||||
require("action-hints").statusline,
|
||||
"encoding",
|
||||
"fileformat",
|
||||
{
|
||||
"filetype",
|
||||
icon_only = true,
|
||||
},
|
||||
},
|
||||
lualine_y = {
|
||||
{
|
||||
"filename",
|
||||
file_status = true,
|
||||
newfile_status = true,
|
||||
path = 1,
|
||||
shorting_target = 50,
|
||||
symbols = {
|
||||
modified = Lualine_signs["modified"],
|
||||
readonly = Lualine_signs["readonly"],
|
||||
unnamed = Lualine_signs["unnamed"],
|
||||
newfile = Lualine_signs["newfile"],
|
||||
},
|
||||
},
|
||||
},
|
||||
lualine_z = { "progress", "location" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
lualine_c = {},
|
||||
lualine_x = {
|
||||
function()
|
||||
return require("action-hints").statusline()
|
||||
end,
|
||||
"encoding",
|
||||
"fileformat",
|
||||
{
|
||||
"filetype",
|
||||
icon_only = true,
|
||||
},
|
||||
},
|
||||
lualine_y = {
|
||||
{
|
||||
"filename",
|
||||
file_status = true,
|
||||
newfile_status = true,
|
||||
path = 1,
|
||||
shorting_target = 50,
|
||||
symbols = {
|
||||
modified = Lualine_signs["modified"],
|
||||
readonly = Lualine_signs["readonly"],
|
||||
unnamed = Lualine_signs["unnamed"],
|
||||
newfile = Lualine_signs["newfile"],
|
||||
},
|
||||
},
|
||||
},
|
||||
lualine_z = { "progress", "location" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
return {
|
||||
-- decorations for the current line mode
|
||||
"mvllow/modes.nvim",
|
||||
config = function()
|
||||
require("modes").setup()
|
||||
end,
|
||||
opts = {},
|
||||
}
|
||||
|
||||
@@ -65,28 +65,30 @@ return {
|
||||
desc = "Quarto: Run all cells of all languages",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("quarto").setup({
|
||||
lspFeatures = {
|
||||
languages = { "python" },
|
||||
chunks = "all",
|
||||
diagnostics = {
|
||||
enabled = true,
|
||||
triggers = { "BufWritePost" },
|
||||
},
|
||||
completion = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
codeRunner = {
|
||||
opts = {
|
||||
lspFeatures = {
|
||||
languages = { "python" },
|
||||
chunks = "all",
|
||||
diagnostics = {
|
||||
enabled = true,
|
||||
default_method = "molten",
|
||||
triggers = { "BufWritePost" },
|
||||
},
|
||||
})
|
||||
completion = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
codeRunner = {
|
||||
enabled = true,
|
||||
default_method = "molten",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local quarto = require("quarto")
|
||||
quarto.setup(opts)
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "markdown",
|
||||
callback = function()
|
||||
require("quarto").activate()
|
||||
quarto.activate()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
|
||||
@@ -17,7 +17,7 @@ return {
|
||||
end,
|
||||
version = "v2.*",
|
||||
-- build = "make install_jsregexp",
|
||||
dependencies = { "saadparwaiz1/cmp_luasnip" },
|
||||
dependencies = "saadparwaiz1/cmp_luasnip",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
|
||||
@@ -3,31 +3,33 @@ return {
|
||||
"martineausimon/nvim-lilypond-suite",
|
||||
ft = "lilypond",
|
||||
dependencies = "uga-rosa/cmp-dictionary",
|
||||
config = function()
|
||||
require("nvls").setup({
|
||||
lilypond = {
|
||||
mappings = {
|
||||
player = "<NOP>",
|
||||
compile = "<NOP>",
|
||||
open_pdf = "<NOP>",
|
||||
switch_buffers = "<NOP>",
|
||||
insert_version = "<NOP>",
|
||||
hyphenation = "<NOP>",
|
||||
hyphenation_change_lang = "<NOP>",
|
||||
insert_hyphen = "<NOP>",
|
||||
add_hyphen = "<NOP>",
|
||||
del_next_hyphen = "<NOP>",
|
||||
del_prev_hyphen = "<NOP>",
|
||||
opts = {
|
||||
lilypond = {
|
||||
mappings = {
|
||||
player = "<NOP>",
|
||||
compile = "<NOP>",
|
||||
open_pdf = "<NOP>",
|
||||
switch_buffers = "<NOP>",
|
||||
insert_version = "<NOP>",
|
||||
hyphenation = "<NOP>",
|
||||
hyphenation_change_lang = "<NOP>",
|
||||
insert_hyphen = "<NOP>",
|
||||
add_hyphen = "<NOP>",
|
||||
del_next_hyphen = "<NOP>",
|
||||
del_prev_hyphen = "<NOP>",
|
||||
},
|
||||
},
|
||||
player = {
|
||||
options = {
|
||||
fluidsynth_flags = {
|
||||
"/usr/share/soundfonts/FluidR3_GM.sf2",
|
||||
},
|
||||
},
|
||||
player = {
|
||||
options = {
|
||||
fluidsynth_flags = {
|
||||
"/usr/share/soundfonts/FluidR3_GM.sf2",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local nvls = require("nvls")
|
||||
nvls.setup(opts)
|
||||
local lily_dicts = {
|
||||
"~/.local/share/nvim/lazy/nvim-lilypond-suite/lilywords/keywords",
|
||||
"~/.local/share/nvim/lazy/nvim-lilypond-suite/lilywords/musicCommands",
|
||||
@@ -37,59 +39,52 @@ return {
|
||||
}
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "lilypond",
|
||||
callback = function()
|
||||
callback = function(args)
|
||||
local bufnr = args.buf
|
||||
require("cmp_dictionary").setup({
|
||||
paths = lily_dicts,
|
||||
})
|
||||
local fluidsynth_job = nil
|
||||
vim.keymap.set("n", "<leader>pm", function()
|
||||
local midi = vim.fn.expand("%:r") .. ".midi"
|
||||
if fluidsynth_job then
|
||||
vim.fn.jobstop(fluidsynth_job)
|
||||
fluidsynth_job = nil
|
||||
print("fluidsynth stopped")
|
||||
return
|
||||
end
|
||||
fluidsynth_job = vim.fn.jobstart({ "fluidsynth", "-i", midi })
|
||||
print("fluidsynth playing (Ctrl-C to stop)")
|
||||
end, {
|
||||
buffer = bufnr,
|
||||
desc = "Lilypond: output MIDI",
|
||||
})
|
||||
vim.keymap.set("n", "<leader>pp", "<cmd>Viewer<CR>", {
|
||||
buffer = bufnr,
|
||||
desc = "Lilypond: open PDF",
|
||||
})
|
||||
vim.keymap.set("n", "<C-c>", function()
|
||||
if fluidsynth_job then
|
||||
vim.fn.jobstop(fluidsynth_job)
|
||||
fluidsynth_job = nil
|
||||
print("fluidsynth stopped")
|
||||
else
|
||||
vim.cmd("normal! <C-c>")
|
||||
end
|
||||
end, {
|
||||
buffer = bufnr,
|
||||
desc = "Stop MIDI playback",
|
||||
})
|
||||
if vim.b[bufnr].first_start_lilypond then
|
||||
return
|
||||
end
|
||||
vim.b[bufnr].first_start_lilypond = true
|
||||
vim.schedule(function()
|
||||
if vim.fn.exists(":Viewer") == 2 then
|
||||
vim.cmd.Viewer()
|
||||
end
|
||||
end)
|
||||
end,
|
||||
})
|
||||
|
||||
local fluidsynth_job = nil
|
||||
|
||||
vim.keymap.set("n", "<leader>pm", function()
|
||||
local midi = vim.fn.expand("%:r") .. ".midi"
|
||||
|
||||
if fluidsynth_job then
|
||||
vim.fn.jobstop(fluidsynth_job)
|
||||
fluidsynth_job = nil
|
||||
print("fluidsynth stopped")
|
||||
return
|
||||
end
|
||||
|
||||
fluidsynth_job = vim.fn.jobstart({ "fluidsynth", "-i", midi })
|
||||
print("fluidsynth playing (Ctrl-C to stop)")
|
||||
end, {
|
||||
buffer = bufnr,
|
||||
desc = "Lilypond: output MIDI",
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<leader>pp", "<cmd>Viewer<CR>", {
|
||||
buffer = bufnr,
|
||||
desc = "Lilypond: open PDF",
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<C-c>", function()
|
||||
if fluidsynth_job then
|
||||
vim.fn.jobstop(fluidsynth_job)
|
||||
fluidsynth_job = nil
|
||||
print("fluidsynth stopped")
|
||||
else
|
||||
vim.cmd("normal! <C-c>")
|
||||
end
|
||||
end, {
|
||||
buffer = bufnr,
|
||||
desc = "Stop MIDI playback",
|
||||
})
|
||||
|
||||
if vim.b.first_start_lilypond then
|
||||
return
|
||||
end
|
||||
vim.b.first_start_lilypond = true
|
||||
|
||||
vim.schedule(function()
|
||||
if vim.fn.exists(":Viewer") == 2 then
|
||||
vim.cmd.Viewer()
|
||||
end
|
||||
end)
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -19,47 +19,32 @@ return {
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("mason-lspconfig").setup({
|
||||
automatic_setup = true,
|
||||
ensure_installed = {
|
||||
-- assembler
|
||||
"asm_lsp",
|
||||
-- c
|
||||
"clangd",
|
||||
-- docker
|
||||
"dockerls",
|
||||
-- go
|
||||
"gopls",
|
||||
-- html
|
||||
"html",
|
||||
-- json
|
||||
"jsonls",
|
||||
-- xml
|
||||
"lemminx",
|
||||
-- latex
|
||||
"ltex",
|
||||
"texlab",
|
||||
-- lua
|
||||
"lua_ls",
|
||||
-- markdown
|
||||
"marksman",
|
||||
-- nim
|
||||
"nimls",
|
||||
-- python
|
||||
"pyright",
|
||||
-- r
|
||||
"r_language_server",
|
||||
-- shell
|
||||
"bashls",
|
||||
-- sql
|
||||
"sqlls",
|
||||
-- typescript / javascript
|
||||
"ts_ls",
|
||||
-- yaml
|
||||
"yamlls",
|
||||
},
|
||||
})
|
||||
opts = {
|
||||
automatic_setup = true,
|
||||
ensure_installed = {
|
||||
"asm_lsp",
|
||||
"clangd",
|
||||
"dockerls",
|
||||
"gopls",
|
||||
"html",
|
||||
"jsonls",
|
||||
"lemminx",
|
||||
"ltex",
|
||||
"texlab",
|
||||
"lua_ls",
|
||||
"marksman",
|
||||
"nimls",
|
||||
"pyright",
|
||||
"r_language_server",
|
||||
"bashls",
|
||||
"sqlls",
|
||||
"ts_ls",
|
||||
"yamlls",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local mason_lspconfig = require("mason-lspconfig")
|
||||
mason_lspconfig.setup(opts)
|
||||
local default_flags = {
|
||||
debounce_text_changes = 150,
|
||||
allow_incremental_sync = true,
|
||||
@@ -69,7 +54,6 @@ return {
|
||||
ltex = {
|
||||
settings = {
|
||||
ltex = {
|
||||
-- language = "de-DE",
|
||||
enabled = { "latex", "markdown" },
|
||||
dictionary = Dictionaries,
|
||||
},
|
||||
@@ -95,10 +79,16 @@ return {
|
||||
})
|
||||
)
|
||||
end
|
||||
vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts)
|
||||
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, opts)
|
||||
vim.keymap.set("n", "gT", vim.lsp.buf.type_definition, opts)
|
||||
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, opts)
|
||||
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
callback = function(args)
|
||||
local bufnr = args.buf
|
||||
local opts = { buffer = bufnr }
|
||||
vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts)
|
||||
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, opts)
|
||||
vim.keymap.set("n", "gT", vim.lsp.buf.type_definition, opts)
|
||||
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, opts)
|
||||
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -5,52 +5,34 @@ return {
|
||||
"kevinhwang91/nvim-hlslens",
|
||||
"lewis6991/gitsigns.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("scrollbar").setup({
|
||||
marks = {
|
||||
Cursor = {
|
||||
highlight = "Normal",
|
||||
},
|
||||
Search = {
|
||||
highlight = "Special",
|
||||
},
|
||||
Error = {
|
||||
highlight = "DiagnosticSignError",
|
||||
},
|
||||
Warn = {
|
||||
highlight = "DiagnosticSignWarn",
|
||||
},
|
||||
Info = {
|
||||
highlight = "DiagnosticSignInfo",
|
||||
},
|
||||
Hint = {
|
||||
highlight = "DiagnosticSignHint",
|
||||
},
|
||||
Misc = {
|
||||
highlight = "Special",
|
||||
},
|
||||
GitAdd = {
|
||||
highlight = "GitGutterAdd",
|
||||
},
|
||||
GitChange = {
|
||||
highlight = "GitGutterChange",
|
||||
},
|
||||
GitDelete = {
|
||||
highlight = "GitGutterDelete",
|
||||
},
|
||||
},
|
||||
excluded_filetypes = {
|
||||
"cmp_docs",
|
||||
"cmp_menu",
|
||||
"noice",
|
||||
"prompt",
|
||||
"TelescopePrompt",
|
||||
"NvimTree",
|
||||
"Navbuddy",
|
||||
"FTerm",
|
||||
"",
|
||||
},
|
||||
})
|
||||
opts = {
|
||||
marks = {
|
||||
Cursor = { highlight = "Normal" },
|
||||
Search = { highlight = "Special" },
|
||||
Error = { highlight = "DiagnosticSignError" },
|
||||
Warn = { highlight = "DiagnosticSignWarn" },
|
||||
Info = { highlight = "DiagnosticSignInfo" },
|
||||
Hint = { highlight = "DiagnosticSignHint" },
|
||||
Misc = { highlight = "Special" },
|
||||
GitAdd = { highlight = "GitGutterAdd" },
|
||||
GitChange = { highlight = "GitGutterChange" },
|
||||
GitDelete = { highlight = "GitGutterDelete" },
|
||||
},
|
||||
excluded_filetypes = {
|
||||
"cmp_docs",
|
||||
"cmp_menu",
|
||||
"noice",
|
||||
"prompt",
|
||||
"TelescopePrompt",
|
||||
"NvimTree",
|
||||
"Navbuddy",
|
||||
"FTerm",
|
||||
"",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local scrollbar = require("scrollbar")
|
||||
scrollbar.setup(opts)
|
||||
require("scrollbar.handlers.search").setup()
|
||||
require("scrollbar.handlers.gitsigns").setup()
|
||||
end,
|
||||
|
||||
@@ -15,23 +15,21 @@ return {
|
||||
desc = "File tree: toggle",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup({
|
||||
sort_by = "case_sensitive",
|
||||
view = {
|
||||
width = 30,
|
||||
},
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
},
|
||||
renderer = {
|
||||
group_empty = true,
|
||||
icons = {
|
||||
glyphs = {
|
||||
git = Git_signs,
|
||||
},
|
||||
opts = {
|
||||
sort_by = "case_sensitive",
|
||||
view = {
|
||||
width = 30,
|
||||
},
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
},
|
||||
renderer = {
|
||||
group_empty = true,
|
||||
icons = {
|
||||
glyphs = {
|
||||
git = Git_signs,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -4,9 +4,16 @@ return {
|
||||
build = ":TSUpdate",
|
||||
dependencies = {
|
||||
-- automatically close html-tags
|
||||
"windwp/nvim-ts-autotag",
|
||||
-- color brackets
|
||||
-- 'p00f/nvim-ts-rainbow',
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
opts = {
|
||||
opts = {
|
||||
enable_close = true,
|
||||
enable_rename = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- 'p00f/nvim-ts-rainbow', -- color brackets
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
},
|
||||
config = function()
|
||||
@@ -24,11 +31,5 @@ return {
|
||||
"lua",
|
||||
"yaml",
|
||||
})
|
||||
require("nvim-ts-autotag").setup({
|
||||
opts = {
|
||||
enable_close = true,
|
||||
enable_rename = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -8,14 +8,11 @@ return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
{
|
||||
"folke/edgy.nvim",
|
||||
|
||||
event = "VeryLazy",
|
||||
|
||||
init = function()
|
||||
vim.opt.laststatus = 3
|
||||
vim.opt.splitkeep = "screen" -- or "topline" or "screen"
|
||||
end,
|
||||
|
||||
opts = {
|
||||
exit_when_last = false,
|
||||
animate = {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
return {
|
||||
-- tree-like outline sidebar
|
||||
"hedyhli/outline.nvim",
|
||||
keys = {
|
||||
{
|
||||
@@ -7,14 +8,12 @@ return {
|
||||
desc = "CTags: toggle",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("outline").setup({
|
||||
outline_window = {
|
||||
width = 25,
|
||||
},
|
||||
symbols = {
|
||||
icon_source = "lspkind",
|
||||
},
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
outline_window = {
|
||||
width = 25,
|
||||
},
|
||||
symbols = {
|
||||
icon_source = "lspkind",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -7,10 +7,7 @@ return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("papis").setup({
|
||||
-- Your configuration goes here
|
||||
enable_keymaps = false,
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
enable_keymaps = false,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -14,22 +14,22 @@ return {
|
||||
desc = "Telescope: find projects",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("projections").setup({
|
||||
workspaces = { -- Default workspaces to search for
|
||||
{ "~/code/main", { ".git" } },
|
||||
{ "~/code/uni", { ".git" } },
|
||||
},
|
||||
store_hooks = {
|
||||
pre = function()
|
||||
-- nvim-tree
|
||||
local nvim_tree_present, api = pcall(require, "nvim-tree.api")
|
||||
if nvim_tree_present then
|
||||
api.tree.close()
|
||||
end
|
||||
end,
|
||||
},
|
||||
})
|
||||
opts = {
|
||||
workspaces = {
|
||||
{ "~/code/main", { ".git" } },
|
||||
{ "~/code/uni", { ".git" } },
|
||||
},
|
||||
store_hooks = {
|
||||
pre = function()
|
||||
local ok, api = pcall(require, "nvim-tree.api")
|
||||
if ok then
|
||||
api.tree.close()
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("projections").setup(opts)
|
||||
require("telescope").load_extension("projections")
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -1,24 +1,22 @@
|
||||
return {
|
||||
-- improve spelling check for coding to feature camelcase, etc
|
||||
{
|
||||
"kamykn/spelunker.vim",
|
||||
dependencies = { "kamykn/popup-menu.nvim" },
|
||||
keys = {
|
||||
{
|
||||
"<F10>t",
|
||||
"<cmd>call spelunker#toggle()<CR>",
|
||||
desc = "Spelunker: toggle spell check",
|
||||
},
|
||||
{
|
||||
"<F10>s",
|
||||
"z=",
|
||||
desc = "Spell: display suggestions",
|
||||
},
|
||||
"kamykn/spelunker.vim",
|
||||
dependencies = { "kamykn/popup-menu.nvim" },
|
||||
keys = {
|
||||
{
|
||||
"<F10>t",
|
||||
"<cmd>call spelunker#toggle()<CR>",
|
||||
desc = "Spelunker: toggle spell check",
|
||||
},
|
||||
{
|
||||
"<F10>s",
|
||||
"z=",
|
||||
desc = "Spell: display suggestions",
|
||||
},
|
||||
config = function()
|
||||
-- vim.o.nospell = true
|
||||
vim.g.enable_spelunker_vim = 0
|
||||
vim.g.spelunker_disable_acronym_checking = 1
|
||||
end,
|
||||
},
|
||||
config = function()
|
||||
-- vim.o.nospell = true
|
||||
vim.g.enable_spelunker_vim = 0
|
||||
vim.g.spelunker_disable_acronym_checking = 1
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -3,9 +3,7 @@ return {
|
||||
"tiyn/tccs.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("tccs").setup({
|
||||
require("tccs").load(),
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
require("tccs").load(),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -3,11 +3,12 @@ return {
|
||||
"mcauley-penney/tidy.nvim",
|
||||
branch = "main",
|
||||
ft = { "markdown", "tex" },
|
||||
config = function()
|
||||
opts = {
|
||||
filetype_exclude = { "diff" },
|
||||
},
|
||||
config = function(_, opts)
|
||||
local tidy = require("tidy")
|
||||
tidy.setup({
|
||||
filetype_exclude = { "diff" },
|
||||
})
|
||||
tidy.setup(opts)
|
||||
tidy.opts.enabled_on_save = false
|
||||
vim.api.nvim_create_autocmd("BufLeave", {
|
||||
pattern = { "*.md", "*.tex" },
|
||||
|
||||
@@ -3,11 +3,14 @@ return {
|
||||
"rachartier/tiny-inline-diagnostic.nvim",
|
||||
event = "VeryLazy",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("tiny-inline-diagnostic").setup({
|
||||
preset = "classic",
|
||||
transparent_bg = true,
|
||||
opts = {
|
||||
preset = "classic",
|
||||
transparent_bg = true,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("tiny-inline-diagnostic").setup(opts)
|
||||
vim.diagnostic.config({
|
||||
virtual_text = false,
|
||||
})
|
||||
vim.diagnostic.config({ virtual_text = false })
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -10,7 +10,5 @@ return {
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("treesj").setup()
|
||||
end,
|
||||
opts = {},
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@ return {
|
||||
"preservim/vim-markdown",
|
||||
ft = { "markdown" },
|
||||
dependencies = { "godlygeek/tabular" },
|
||||
config = function() end,
|
||||
config = function() end, -- needed this way by the plugin
|
||||
}
|
||||
|
||||
@@ -2,7 +2,5 @@ return {
|
||||
-- highlighting for the viper verification language
|
||||
"tiyn/viper.nvim",
|
||||
event = { "BufReadPre *.vpr", "FileType viper" },
|
||||
config = function()
|
||||
require("viper").setup()
|
||||
end,
|
||||
opts = {}
|
||||
}
|
||||
|
||||
@@ -11,13 +11,14 @@ return {
|
||||
"romgrk/fzy-lua-native",
|
||||
"nixprime/cpsm",
|
||||
},
|
||||
config = function()
|
||||
opts = {
|
||||
modes = { ":", "/", "?" },
|
||||
accept_key = "<CR>",
|
||||
reject_key = "<C-e>",
|
||||
},
|
||||
config = function(_, opts)
|
||||
local wilder = require("wilder")
|
||||
wilder.setup({
|
||||
modes = { ":", "/", "?" },
|
||||
accept_key = "<CR>",
|
||||
reject_key = "<C-e>",
|
||||
})
|
||||
wilder.setup(opts)
|
||||
wilder.set_option("pipeline", {
|
||||
wilder.branch(
|
||||
wilder.python_file_finder_pipeline({
|
||||
|
||||
Reference in New Issue
Block a user