Update: 2024-07-25

This commit is contained in:
2024-07-25 14:03:00 +03:00
parent 43fb701519
commit 49ced08d78
30 changed files with 216 additions and 98 deletions

View File

@@ -4,6 +4,8 @@ return {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
commit = "d3b88eb",
config = true,
cmd = { "Codeium" },
opts = {
enable_chat = true,
},
}

View File

@@ -14,6 +14,7 @@ return {
"python",
"typst",
"htmldjango",
"conf",
},
user_default_options = {
RGB = true, -- #RGB hex codes

View File

@@ -1,7 +1,7 @@
return {
{
"folke/tokyonight.nvim",
lazy = false,
--[[ lazy = false,
priority = 1000,
opts = {
style = "night",
@@ -16,7 +16,7 @@ return {
config = function(_, opts)
require("tokyonight").setup(opts)
vim.cmd.colorscheme("tokyonight")
end,
end, ]]
},
{ "lunarvim/darkplus.nvim" },
{ "catppuccin/nvim", name = "catppuccin.nvim" },
@@ -27,6 +27,22 @@ return {
{ "savq/melange-nvim", name = "melange.nvim" },
{ "ellisonleao/gruvbox.nvim" },
{ "bluz71/vim-nightfly-colors", name = "nightfly.nvim" },
{ "rose-pine/neovim", name = "rose-pine.nvim" },
{
"rose-pine/neovim",
name = "rose-pine.nvim",
lazy = false,
priority = 1000,
opts = {
styles = {
bold = true,
italic = false,
transparency = true,
},
},
config = function(_, opts)
require("rose-pine").setup(opts)
vim.cmd.colorscheme("rose-pine")
end,
},
{ "slugbyte/lackluster.nvim" },
}

View File

@@ -30,7 +30,7 @@ return {
cmake = { "cmake_format" },
htmldjango = { "djlint", "rustywind" },
html = { "djlint", "rustywind" },
typst = { "typstyle", "typstfmt" },
typst = { "typstyle" },
rust = { "rustfmt", "leptosfmt", "yew-fmt" },
sql = { "pg_format" },
yaml = { "yamlfmt" },

View File

@@ -19,7 +19,7 @@ return {
date_format = "%d-%m-%Y",
thousands_separator = ".",
notification_title = "Crates",
disable_invalid_feature_diagnostic = false,
-- disable_invalid_feature_diagnostic = false,
text = {
loading = "  Loading",
version = "  %s",

View File

@@ -3,6 +3,9 @@ return {
dependencies = { "neovim/nvim-lspconfig" },
event = "VeryLazy",
opts = {
-- your options here
aggressive_mode = false,
excluded_lsp_clients = {},
grace_period = 60 * 15,
wakeup_delay = 0,
},
}

View File

@@ -1,12 +0,0 @@
local M = {}
M.setup = function(lsp, capabilities)
lsp.typst_lsp.setup({
capabilities = capabilities,
settings = {
exportPdf = "onType", -- Choose onType, onSave or never.
},
})
end
return M

View File

@@ -8,6 +8,7 @@ return {
"nvim-telescope/telescope.nvim",
"folke/trouble.nvim",
"folke/neoconf.nvim",
"piersolenski/telescope-import.nvim",
},
config = function()
@@ -133,6 +134,7 @@ return {
"emmet_ls",
"html",
"jedi_language_server",
"tinymist",
"lua_ls",
"tailwindcss",
"texlab",
@@ -155,9 +157,6 @@ return {
lua_ls = function()
require("plugins.lsp.lua").setup(lsp, lsp_capabilities)
end,
typst_lsp = function()
require("plugins.lsp.typst").setup(lsp, lsp_capabilities)
end,
htmx = function()
lsp.htmx.setup(html_opts)
end,

View File

@@ -85,4 +85,12 @@ return {
on_attach = nil, -- (fun(bufnr: integer)) callback when plugin attaches to a buffer
},
},
{
"Kicamon/markdown-table-mode.nvim",
opts = {
filetype = {
"*.md",
},
},
},
}

View File

@@ -5,8 +5,8 @@ return {
{ "nvim-lua/plenary.nvim" },
{ "nvim-neorg/neorg-telescope" },
},
-- cmd = { "Neorg" },
lazy = false,
cmd = { "Neorg" },
lazy = true,
version = "*",
ft = "norg",
opts = {

30
lua/plugins/neotes.lua Normal file
View File

@@ -0,0 +1,30 @@
return {
"nvim-neotest/neotest",
dependencies = {
"nvim-neotest/nvim-nio",
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
"nvim-treesitter/nvim-treesitter",
"nvim-neotest/neotest-python",
"mrcjkb/rustaceanvim",
"alfaix/neotest-gtest",
"nvim-neotest/neotest-vim-test",
},
-- enabled = false,
config = function()
require("neotest").setup({
adapters = {
require("neotest-python")({
dap = { justMyCode = false },
args = { "--log-level", "DEBUG" },
runner = "pytest",
}),
require("rustaceanvim.neotest"),
require("neotest-gtest").setup({}),
require("neotest-vim-test")({
ignore_file_types = { "python", "vim", "lua" },
}),
},
})
end,
}

7
lua/plugins/otter.lua Normal file
View File

@@ -0,0 +1,7 @@
return {
"jmbuhr/otter.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
opts = {},
}

View File

@@ -4,7 +4,7 @@ return {
cmd = "Silicon",
opts = {
-- the font settings with size and fallback font
font = "JetBrainsMono NF=34;Noto Emoji=34",
font = "JetBrainsMono NF=34",
-- the theme to use, depends on themes available to silicon
theme = "Dracula",
-- the background color outside the rendered os window

View File

@@ -1,7 +1,18 @@
return {
"ravibrock/spellwarn.nvim",
event = "VeryLazy",
cms = "Spellwanr",
cmd = { "Spellwarn" },
keys = {
{
"<leader>os",
function()
vim.cmd.Spellwarn("toggle")
end,
desc = "[S]pellwarn toggle",
},
},
opts = {
event = { -- event(s) to refresh diagnostics on
"CursorHold",

View File

@@ -0,0 +1,33 @@
local ft = { "typescript", "typescriptreact", "javascript", "react", "python", "lua" }
return {
"piersolenski/telescope-import.nvim",
dependencies = "nvim-telescope/telescope.nvim",
ft = ft,
keys = {
{
"<leader>li",
function()
vim.cmd.Telescope("import")
end,
desc = "[I]mport",
ft = ft,
},
},
opts = {
extensions = {
import = {
insert_at_top = true,
custom_languages = {
{
regex = [[^(?:import(?:[\"'\s]*([\w*{}\n, ]+)from\s*)?[\"'\s](.*?)[\"'\s].*)]],
filetypes = ft,
extensions = { "js", "ts", "py", "lua" },
},
},
},
},
},
config = function(_, opts)
require("telescope").load_extension("import", opts)
end,
}

View File

@@ -15,6 +15,7 @@ return {
{ "paopaol/telescope-git-diffs.nvim" },
{ "ThePrimeagen/harpoon", branch = "harpoon2" },
{ "ThePrimeagen/git-worktree.nvim" },
{ "piersolenski/telescope-import.nvim" },
},
keys = {
{

View File

@@ -30,6 +30,9 @@ return {
indent = {
enable = true,
},
fold = {
enable = true,
},
incremenral_selection = {
enable = false,
keymaps = {

View File

@@ -1,22 +1,8 @@
return {
"kaarmu/typst.vim",
"chomosuke/typst-preview.nvim",
ft = "typst",
keys = {
{
"<leader>ow",
vim.cmd.TypstWatch,
desc = "Typst watch",
ft = "typst",
},
},
config = function()
-- vim.g.typst_cmd = "typst" -- Specifies the location of the Typst executable. Default: 'typst'
-- vim.g.typst_pdf_viewer = "zathura" -- Specifies pdf viewer that typst watch --open will use. Default: ''
-- vim.g.typst_conceal = 0 -- Enable concealment. Default: 0
-- vim.g.typst_conceal_math = vim.g.typst_conceal -- Enable concealment for math symbols in math mode (i.e. replaces symbols with their actual unicode character). Default: g:typst_conceal
-- vim.g.typst_conceal_emoji = vim.g.typst_conceal -- Enable concealing emojis, e.g. #emoji.alien becomes 👽. Default: g:typst_conceal
-- vim.g.typst_auto_close_toc = 0 -- Specifies whether TOC will be automatically closed after using it. Default: 0
-- vim.g.typst_auto_open_quickfix = 1 -- Specifies whether the quickfix list should automatically open when there are errors from typst. Default: 1
-- vim.g.typst_embedded_languages = { "python", "rust", "c", "cpp" } -- A list of languages that will be highlighted in code blocks. Typst is always highlighted. Default: []
version = "*",
build = function()
require("typst-preview").update()
end,
}

View File

@@ -1,7 +1,7 @@
return {
"kevinhwang91/nvim-ufo",
dependencies = { "kevinhwang91/promise-async" },
enabled = false,
event = "BufWinEnter",
keys = {
{
"zR",
@@ -18,18 +18,20 @@ return {
desc = "Close all folds",
},
{
"zK",
"zk",
function()
require("ufo").peekFoldedLinesUnderCursor()
local winid = require("ufo").peekFoldedLinesUnderCursor()
if not winid then
vim.lsp.buf.hover()
end
end,
desc = "Peek fold",
},
},
opts = {
open_fold_hl_timeout = 150,
close_fold_kinds_for_ft = {
default = { "imports", "comment" },
json = { "array" },
c = { "comment", "region" },
},
preview = {
win_config = {
@@ -37,7 +39,7 @@ return {
},
},
provider_selector = function(_, filetype, buftype)
return { "lsp", "treesitter" }
return { "lsp", "indent" }
end,
},
}

View File

@@ -3,6 +3,7 @@ return {
event = "VeryLazy",
dependencies = "nvim-tree/nvim-web-devicons",
version = "*",
enabled = true,
opts = {
preset = "modern",
sort = { "alphanum", "local", "order", "group", "mod", "lower", "icase" },
@@ -10,6 +11,10 @@ return {
rules = false,
},
defaults = {},
disable = {
ft = {},
bt = { "NeogitPopup" },
},
spec = {
{
mode = "v",
@@ -19,7 +24,7 @@ return {
},
{
{ "<leader>C", vim.cmd.bdelete, desc = "[C]lose Buffer" },
{ "<leader>c", group = "[C]url" },
{ "<leader>c", group = "[C]url", { "<leader>cC", group = "[C]SV" } },
{ "<leader>t", group = "[T]rouble" },
{ "<leader>g", group = "[G]it" },
{ "<leader>q", group = "Persistence" },

View File

@@ -32,7 +32,7 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
-- Center on InsertEnter
vim.api.nvim_create_autocmd({ "InsertEnter" }, {
callback = function()
vim.cmd("norm zz")
vim.cmd("normal! zz")
end,
})
@@ -75,3 +75,14 @@ vim.filetype.add({
["http"] = "http",
},
})
vim.api.nvim_create_autocmd({ "VimEnter" }, {
callback = function()
if vim.env.TMUX_PLUGIN_MANAGER_PATH then
vim.loop.spawn(
vim.env.TMUX_PLUGIN_MANAGER_PATH .. "/tmux-window-name/scripts/rename_session_windows.py",
{}
)
end
end,
})

View File

@@ -26,7 +26,7 @@ local opts = {
},
install = {
-- try to load one of these colorschemes when starting an installation during startup
colorscheme = { "tokyonight" },
colorscheme = { "rose-pine" },
},
}