stylua and removal mason reliance

This commit is contained in:
2026-04-11 22:36:03 +02:00
parent b9f92d6ba4
commit b0cbc702cf
29 changed files with 480 additions and 443 deletions
+9 -9
View File
@@ -1,13 +1,13 @@
require("globals") require "globals"
require("options") require "options"
require("config.lazy") require "config.lazy"
require("mappings") require "mappings"
require("autocmd") require "autocmd"
vim.cmd("source ~/.config/nvim/suda.vim") vim.cmd "source ~/.config/nvim/suda.vim"
local time = tonumber(os.date "%H") local time = tonumber(os.date "%H")
vim.filetype.add({ vim.filetype.add {
pattern = {[".*/hypr/.*%.conf"] = "hyprlang", [".*/uwsm/env.*"] = "zsh"} pattern = { [".*/hypr/.*%.conf"] = "hyprlang", [".*/uwsm/env.*"] = "zsh" },
}) }
vim.cmd [[colorscheme catppuccin-macchiato]] vim.cmd [[colorscheme catppuccin-macchiato]]
+1 -2
View File
@@ -1,2 +1 @@
require'actions-preview'.setup{ require("actions-preview").setup {}
}
+2 -2
View File
@@ -1,3 +1,3 @@
local npairs = require('nvim-autopairs') local npairs = require "nvim-autopairs"
npairs.setup({}) npairs.setup {}
+9 -9
View File
@@ -1,4 +1,4 @@
require("auto-session").setup({ require("auto-session").setup {
{ {
enabled = true, enabled = true,
root_dir = vim.fn.stdpath "data" .. "/sessions/", root_dir = vim.fn.stdpath "data" .. "/sessions/",
@@ -24,14 +24,14 @@ require("auto-session").setup({
theme_conf = {}, theme_conf = {},
previewer = false, previewer = false,
mappings = { mappings = {
delete_session = {"i", "<C-D>"}, delete_session = { "i", "<C-D>" },
alternate_session = {"i", "<C-S>"}, alternate_session = { "i", "<C-S>" },
copy_session = {"i", "<C-Y>"} copy_session = { "i", "<C-Y>" },
}, },
session_control = { session_control = {
control_dir = vim.fn.stdpath "data" .. "/auto_session/", control_dir = vim.fn.stdpath "data" .. "/auto_session/",
control_filename = "session_control.json" control_filename = "session_control.json",
} },
} },
} },
}) }
+12 -12
View File
@@ -1,25 +1,25 @@
require("bufferline").setup({ require("bufferline").setup {
options = { options = {
diagnostics = "coc", diagnostics = "coc",
diagnostics_indicator = function(count, level, diagnostics_dict, context) diagnostics_indicator = function(count, level, diagnostics_dict, context)
local s = " " local s = " "
for e, n in pairs(diagnostics_dict) do for e, n in pairs(diagnostics_dict) do
local sym = e == "error" and "" or local sym = e == "error" and "" or (e == "warning" and "" or "")
(e == "warning" and "" or "")
s = s .. n .. sym s = s .. n .. sym
end end
return s return s
end, end,
always_show_bufferline = true, always_show_bufferline = true,
offsets = { offsets = {
{filetype = "NvimTree", text = "Explorer", text_align = "center"}, { filetype = "NvimTree", text = "Explorer", text_align = "center" },
{filetype = "snacks_layout_box"} { filetype = "snacks_layout_box" },
}, },
vim.api.nvim_create_autocmd({"BufAdd", "BufDelete"}, vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, {
{
callback = function() callback = function()
vim.schedule(function() pcall(nvim_bufferline) end) vim.schedule(function()
end pcall(nvim_bufferline)
}) end)
} end,
}) }),
},
}
+46 -46
View File
@@ -1,57 +1,55 @@
local cmp = require("cmp") local cmp = require "cmp"
local cmp_lsp = require("cmp_nvim_lsp") local cmp_lsp = require "cmp_nvim_lsp"
local M = {} local M = {}
M.capabilities = vim.tbl_deep_extend( M.capabilities =
"force", vim.tbl_deep_extend("force", {}, vim.lsp.protocol.make_client_capabilities(), cmp_lsp.default_capabilities())
{},
vim.lsp.protocol.make_client_capabilities(),
cmp_lsp.default_capabilities()
)
local cmp_kinds = { local cmp_kinds = {
Text = '', Text = "",
Method = '', Method = "",
Function = '', Function = "",
Constructor = '', Constructor = "",
Field = '', Field = "",
Variable = '', Variable = "",
Class = '', Class = "",
Interface = '', Interface = "",
Module = '', Module = "",
Property = '', Property = "",
Unit = '', Unit = "",
Value = '', Value = "",
Enum = '', Enum = "",
Keyword = '', Keyword = "",
Snippet = '', Snippet = "",
Color = '', Color = "",
File = '', File = "",
Reference = '', Reference = "",
Folder = '', Folder = "",
EnumMember = '', EnumMember = "",
Constant = '', Constant = "",
Struct = '', Struct = "",
Event = '', Event = "",
Operator = '', Operator = "",
TypeParameter = '' TypeParameter = "",
} }
cmp.setup { cmp.setup {
formatting = { formatting = {
fields = {'kind', 'abbr'}, fields = { "kind", "abbr" },
format = function(entry, vim_item) format = function(entry, vim_item)
vim_item.kind = cmp_kinds[vim_item.kind] or '' vim_item.kind = cmp_kinds[vim_item.kind] or ""
if entry.completion_item.detail then if entry.completion_item.detail then
vim_item.menu = entry.completion_item.detail vim_item.menu = entry.completion_item.detail
end end
return vim_item return vim_item
end end,
}, },
completion = {completeopt = "menu,menuone"}, completion = { completeopt = "menu,menuone" },
snippet = { snippet = {
expand = function(args) require("luasnip").lsp_expand(args.body) end expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
}, },
mapping = { -- change later zach is ???? mapping = { -- change later zach is ????
["<C-d>"] = cmp.mapping.scroll_docs(-4), ["<C-d>"] = cmp.mapping.scroll_docs(-4),
@@ -60,7 +58,7 @@ cmp.setup {
["<C-e>"] = cmp.mapping.close(), ["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm { ["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert, behavior = cmp.ConfirmBehavior.Insert,
select = true select = true,
}, },
["<Tab>"] = cmp.mapping(function(fallback) ["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
@@ -70,7 +68,7 @@ cmp.setup {
else else
fallback() fallback()
end end
end, {"i", "s"}), end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback) ["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_prev_item() cmp.select_prev_item()
@@ -79,14 +77,16 @@ cmp.setup {
else else
fallback() fallback()
end end
end, {"i", "s"}) end, { "i", "s" }),
}, },
sources = cmp.config.sources({ sources = cmp.config.sources {
{name = "path"}, {name = "nvim_lsp"}, {name = "luasnip"}, -- snip snip { name = "path" },
{name = "buffer"}, {name = "nvim_lua"} { name = "nvim_lsp" },
}) { name = "luasnip" }, -- snip snip
{ name = "buffer" },
{ name = "nvim_lua" },
},
} }
return M return M
+5 -6
View File
@@ -1,11 +1,10 @@
require("colorizer").setup({ require("colorizer").setup {
user_default_options = { user_default_options = {
mode = "virtualtext", mode = "virtualtext",
virtualtext = "", virtualtext = "",
css = true, css = true,
tailwind = true, tailwind = true,
sass = {enable = true, parsers = {"css"}}, sass = { enable = true, parsers = { "css" } },
virtualtext_inline = 'before' virtualtext_inline = "before",
} },
}) }
+1 -3
View File
@@ -1,3 +1 @@
require("cord").setup { require("cord").setup {}
}
+39 -41
View File
@@ -1,32 +1,31 @@
local dap = require('dap') local dap = require "dap"
dap.adapters.python = function(cb, config) dap.adapters.python = function(cb, config)
if config.request == 'attach' then if config.request == "attach" then
---@diagnostic disable-next-line: undefined-field ---@diagnostic disable-next-line: undefined-field
local port = (config.connect or config).port local port = (config.connect or config).port
---@diagnostic disable-next-line: undefined-field ---@diagnostic disable-next-line: undefined-field
local host = (config.connect or config).host or '127.0.0.1' local host = (config.connect or config).host or "127.0.0.1"
cb({ cb {
type = 'server', type = "server",
port = assert(port, port = assert(port, "`connect.port` is required for a python `attach` configuration"),
'`connect.port` is required for a python `attach` configuration'),
host = host, host = host,
options = {source_filetype = 'python'} options = { source_filetype = "python" },
}) }
else else
cb({ cb {
type = 'executable', type = "executable",
command = 'path/to/virtualenvs/debugpy/bin/python', command = "path/to/virtualenvs/debugpy/bin/python",
args = {'-m', 'debugpy.adapter'}, args = { "-m", "debugpy.adapter" },
options = {source_filetype = 'python'} options = { source_filetype = "python" },
}) }
end end
end end
dap.configurations.python = { dap.configurations.python = {
{ {
-- The first three options are required by nvim-dap -- The first three options are required by nvim-dap
type = 'python', -- the type here established the link to the adapter definition: `dap.adapters.python` type = "python", -- the type here established the link to the adapter definition: `dap.adapters.python`
request = 'launch', request = "launch",
name = "Launch file", name = "Launch file",
-- Options below are for debugpy, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for supported options -- Options below are for debugpy, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for supported options
@@ -37,35 +36,34 @@ dap.configurations.python = {
-- The code below looks for a `venv` or `.venv` folder in the current directly and uses the python within. -- The code below looks for a `venv` or `.venv` folder in the current directly and uses the python within.
-- You could adapt this - to for example use the `VIRTUAL_ENV` environment variable. -- You could adapt this - to for example use the `VIRTUAL_ENV` environment variable.
local cwd = vim.fn.getcwd() local cwd = vim.fn.getcwd()
if vim.fn.executable(cwd .. '/venv/bin/python') == 1 then if vim.fn.executable(cwd .. "/venv/bin/python") == 1 then
return cwd .. '/venv/bin/python' return cwd .. "/venv/bin/python"
elseif vim.fn.executable(cwd .. '/.venv/bin/python') == 1 then elseif vim.fn.executable(cwd .. "/.venv/bin/python") == 1 then
return cwd .. '/.venv/bin/python' return cwd .. "/.venv/bin/python"
else else
return '/home/zach/miniconda3/bin/python' return "/home/zach/miniconda3/bin/python"
end end
end end,
} },
} }
dap.adapters.lldb = { dap.adapters.lldb = {
type = 'executable', type = "executable",
command = '/usr/bin/lldb-vscode', -- adjust as needed, must be absolute path command = "/usr/bin/lldb-vscode", -- adjust as needed, must be absolute path
name = 'lldb' name = "lldb",
} }
dap.configurations.cpp = { dap.configurations.cpp = {
{ {
name = 'Launch', name = "Launch",
type = 'lldb', type = "lldb",
request = 'launch', request = "launch",
program = function() program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
'file')
end, end,
cwd = '${workspaceFolder}', cwd = "${workspaceFolder}",
stopOnEntry = false, stopOnEntry = false,
args = {} args = {},
-- 💀 -- 💀
-- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting: -- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting:
@@ -79,7 +77,7 @@ dap.configurations.cpp = {
-- But you should be aware of the implications: -- But you should be aware of the implications:
-- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html -- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
-- runInTerminal = false, -- runInTerminal = false,
} },
} }
dap.adapters["pwa-node"] = { dap.adapters["pwa-node"] = {
@@ -91,9 +89,9 @@ dap.adapters["pwa-node"] = {
-- 💀 Make sure to update this path to point to your installation -- 💀 Make sure to update this path to point to your installation
args = { args = {
"%HOME/.config/nvim/java-dap/js-debug/src/dapDebugServer.js", "%HOME/.config/nvim/java-dap/js-debug/src/dapDebugServer.js",
"${port}" "${port}",
} },
} },
} }
dap.configurations.javascript = { dap.configurations.javascript = {
@@ -102,10 +100,10 @@ dap.configurations.javascript = {
request = "launch", request = "launch",
name = "Launch file", name = "Launch file",
program = "${file}", program = "${file}",
cwd = "${workspaceFolder}" cwd = "${workspaceFolder}",
} },
} }
dap.configurations.java = { dap.configurations.java = {
{type = "java", name = "Debug", request = "launch", program = "${file}"} { type = "java", name = "Debug", request = "launch", program = "${file}" },
} }
+17 -13
View File
@@ -1,22 +1,26 @@
local highlight = { local highlight = {
"RainbowRed", "RainbowYellow", "RainbowBlue", "RainbowOrange", "RainbowRed",
"RainbowGreen", "RainbowViolet", "RainbowCyan" "RainbowYellow",
"RainbowBlue",
"RainbowOrange",
"RainbowGreen",
"RainbowViolet",
"RainbowCyan",
} }
local hooks = require "ibl.hooks" local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset -- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes -- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function() hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", {fg = "#E06C75"}) vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "RainbowYellow", {fg = "#E5C07B"}) vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "RainbowBlue", {fg = "#61AFEF"}) vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "RainbowOrange", {fg = "#D19A66"}) vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "RainbowGreen", {fg = "#98C379"}) vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "RainbowViolet", {fg = "#C678DD"}) vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "RainbowCyan", {fg = "#56B6C2"}) vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
end) end)
vim.g.rainbow_delimiters = {highlight = highlight} vim.g.rainbow_delimiters = { highlight = highlight }
require("ibl").setup {indent = {char = ""}, scope = {highlight = highlight}} require("ibl").setup { indent = { char = "" }, scope = { highlight = highlight } }
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
hooks.builtin.scope_highlight_from_extmark)
+17 -12
View File
@@ -1,15 +1,20 @@
-- Bootstrap lazy.nvim -- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ local out = vim.fn.system {
"git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, "git",
lazypath "clone",
}) "--filter=blob:none",
"--branch=stable",
lazyrepo,
lazypath,
}
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{"Failed to clone lazy.nvim:\n", "ErrorMsg"}, {out, "WarningMsg"}, { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{"\nPress any key to exit..."} { out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {}) }, true, {})
vim.fn.getchar() vim.fn.getchar()
os.exit(1) os.exit(1)
@@ -24,14 +29,14 @@ vim.g.mapleader = " "
vim.g.maplocalleader = "\\" vim.g.maplocalleader = "\\"
-- Setup lazy.nvim -- Setup lazy.nvim
require("lazy").setup({ require("lazy").setup {
spec = { spec = {
-- import your plugins -- import your plugins
{import = "plugins"} { import = "plugins" },
}, },
-- Configure any other settings here. See the documentation for more details. -- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins. -- colorscheme that will be used when installing plugins.
install = {colorscheme = {"habamax"}}, install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates -- automatically check for plugin updates
checker = {enabled = true} checker = { enabled = true },
}) }
+29 -55
View File
@@ -1,58 +1,32 @@
local mason = require("mason")
local mason_lspconfig = require("mason-lspconfig")
local lspconfig = require("lspconfig")
local cmp_cap = require("config.cmp").capabilities local cmp_cap = require("config.cmp").capabilities
-- Fix this! local servers = {
local lspenable = vim.lsp.enable "zls",
lspenable("") "ts_ls",
"yamlls",
"vimls",
"pyright",
"denols",
"lua_ls",
"qmlls",
"nil_ls",
"arduino_language_server",
"cmake",
"clangd",
"hyprls",
"nginx_language_server",
"docker_compose_language_service",
"dockerls",
"rust_analyzer",
"html",
"cssls",
"tailwindcss",
"jdtls",
}
mason.setup() for _, server in ipairs(servers) do
vim.lsp.config(server, {
mason_lspconfig.setup({ capabilities = cmp_cap,
handlers = { })
function(server_name) vim.lsp.enable(server)
lspconfig[server_name].setup({capabilities = cmp_cap}) end
end
}
})
-- locally installed lsps
vim.lsp.enable('zls')
vim.lsp.enable('ts_ls')
vim.lsp.enable('yamlls')
vim.lsp.enable('vimls')
vim.lsp.enable('pyright')
vim.lsp.enable('denols')
vim.lsp.enable('lua_ls')
vim.lsp.enable('qmlls')
vim.lsp.enable('nil_ls')
vim.lsp.enable('arduino-langauge-server')
vim.lsp.enable('cmake')
vim.lsp.enable('clangd')
vim.lsp.enable('hyprls')
vim.lsp.enable('nginx_language_server')
vim.lsp.enable('docker_compose_language_service')
vim.lsp.enable('dockerls')
vim.lsp.enable('rust_analyzer')
vim.lsp.enable('html')
vim.lsp.enable('cssls')
vim.lsp.enable('tailwindcss')
vim.lsp.enable('jdtls')
vim.diagnostic.config({
virtual_text = true,
float = {
focusable = false,
style = "minimal",
border = "rounded",
source = "always",
header = "",
prefix = ""
}
})
vim.api.nvim_set_keymap("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>",
{noremap = true, silent = true})
vim.api.nvim_set_keymap("n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>",
{noremap = true, silent = true})
+48 -40
View File
@@ -1,21 +1,22 @@
local fn = vim.fn local fn = vim.fn
local function get_coc_lsp_client() local function get_coc_lsp_client()
local clients = vim.g.coc_service_initialized and local clients = vim.g.coc_service_initialized and vim.fn["CocAction"] "services" or {}
vim.fn['CocAction']('services') or {}
for _, client in pairs(clients) do for _, client in pairs(clients) do
if client['state'] == 'running' then if client["state"] == "running" then
local client_name = client['id'] local client_name = client["id"]
-- Remove 'languageserver.' prefix if it exists -- Remove 'languageserver.' prefix if it exists
client_name = client_name:gsub('^languageserver%.', '') client_name = client_name:gsub("^languageserver%.", "")
return client_name return client_name
end end
end end
return '' return ""
end end
local function spell() local function spell()
if vim.o.spell then return string.format("[SPELL]") end if vim.o.spell then
return string.format "[SPELL]"
end
return "" return ""
end end
@@ -23,10 +24,11 @@ end
--- show indicator for Chinese IME --- show indicator for Chinese IME
local function ime_state() local function ime_state()
if vim.g.is_mac then if vim.g.is_mac then
local layout = fn.libcall(vim.g.XkbSwitchLib, "Xkb_Switch_getXkbLayout", local layout = fn.libcall(vim.g.XkbSwitchLib, "Xkb_Switch_getXkbLayout", "")
"")
local res = fn.match(layout, [[\v(Squirrel\.Rime|SCIM.ITABC)]]) local res = fn.match(layout, [[\v(Squirrel\.Rime|SCIM.ITABC)]])
if res ~= -1 then return "[CN]" end if res ~= -1 then
return "[CN]"
end
end end
return "" return ""
@@ -34,23 +36,27 @@ end
local diff = function() local diff = function()
local git_status = vim.b.gitsigns_status_dict local git_status = vim.b.gitsigns_status_dict
if git_status == nil then return end if git_status == nil then
return
end
local modify_num = git_status.changed local modify_num = git_status.changed
local remove_num = git_status.removed local remove_num = git_status.removed
local add_num = git_status.added local add_num = git_status.added
local info = {added = add_num, modified = modify_num, removed = remove_num} local info = { added = add_num, modified = modify_num, removed = remove_num }
-- vim.print(info) -- vim.print(info)
return info return info
end end
local virtual_env = function() local virtual_env = function()
-- only show virtual env for Python -- only show virtual env for Python
if vim.bo.filetype ~= "python" then return "" end if vim.bo.filetype ~= "python" then
return ""
end
local conda_env = os.getenv("CONDA_DEFAULT_ENV") local conda_env = os.getenv "CONDA_DEFAULT_ENV"
local venv_path = os.getenv("VIRTUAL_ENV") local venv_path = os.getenv "VIRTUAL_ENV"
if venv_path == nil then if venv_path == nil then
if conda_env == nil then if conda_env == nil then
@@ -69,13 +75,13 @@ require("lualine").setup {
icons_enabled = true, icons_enabled = true,
theme = "auto", theme = "auto",
globalstatus = false, globalstatus = false,
component_separators = '', component_separators = "",
section_separators = {left = '', right = ''}, section_separators = { left = "", right = "" },
disabled_filetypes = {}, disabled_filetypes = {},
always_divide_middle = true always_divide_middle = true,
}, },
sections = { sections = {
lualine_a = {{"mode"}}, lualine_a = { { "mode" } },
lualine_b = { lualine_b = {
{ {
"branch", "branch",
@@ -83,46 +89,48 @@ require("lualine").setup {
-- truncate branch name in case the name is too long -- truncate branch name in case the name is too long
return string.sub(name, 1, 20) return string.sub(name, 1, 20)
end, end,
color = {gui = "italic,bold"}, color = { gui = "italic,bold" },
separator = {right = ""} separator = { right = "" },
}, {virtual_env, color = {fg = "black", bg = "#F1CA81"}} },
{ virtual_env, color = { fg = "black", bg = "#F1CA81" } },
}, },
lualine_c = { lualine_c = {
{"filename", symbols = {readonly = "[🔒]"}}, { "filename", symbols = { readonly = "[🔒]" } },
{"diff", source = diff}, { "diff", source = diff },
{"%S", color = {gui = "bold", fg = "cyan"}}, { "%S", color = { gui = "bold", fg = "cyan" } },
{spell, color = {fg = "black", bg = "#a7c080"}} { spell, color = { fg = "black", bg = "#a7c080" } },
}, },
lualine_x = { lualine_x = {
{ime_state, color = {fg = "black", bg = "#f46868"}}, { ime_state, color = { fg = "black", bg = "#f46868" } },
{get_coc_lsp_client, icon = " LSP:"}, { { get_coc_lsp_client, icon = " LSP:" },
{
"diagnostics", "diagnostics",
sources = {"nvim_diagnostic"}, sources = { "nvim_diagnostic" },
symbols = { symbols = {
error = "🆇 ", error = "🆇 ",
warn = "⚠️ ", warn = "⚠️ ",
info = " ", info = " ",
hint = "" hint = "",
} },
} },
}, },
lualine_y = { lualine_y = {
{"encoding", fmt = string.upper}, { "encoding", fmt = string.upper },
{"fileformat", symbols = {unix = "", dos = "", mac = ""}}, { "fileformat", symbols = { unix = "", dos = "", mac = "" } },
"filetype" "filetype",
}, },
lualine_z = {"progress"} lualine_z = { "progress" },
}, },
inactive_sections = { inactive_sections = {
lualine_a = {}, lualine_a = {},
lualine_b = {}, lualine_b = {},
lualine_c = {"filename"}, lualine_c = { "filename" },
lualine_x = {"location"}, lualine_x = { "location" },
lualine_y = {}, lualine_y = {},
lualine_z = {} lualine_z = {},
}, },
tabline = {}, tabline = {},
extensions = {"quickfix", "fugitive", "nvim-tree"} extensions = { "quickfix", "fugitive", "nvim-tree" },
} }
vim.o.laststatus = 0 -- required for some reason -> avoid two bar lualine /w tmux vim.o.laststatus = 0 -- required for some reason -> avoid two bar lualine /w tmux
+3 -3
View File
@@ -1,5 +1,5 @@
require("neorg").setup({ require("neorg").setup {
load = { load = {
["core.defaults"] = {}, ["core.defaults"] = {},
} },
}) }
+51 -59
View File
@@ -1,7 +1,7 @@
vim.notify = require('notify') vim.notify = require "notify"
local dap = require('dap') local dap = require "dap"
require('notify').setup({ require("notify").setup {
render = "wrapped-default", render = "wrapped-default",
timeout = 6000, timeout = 6000,
max_width = 50, max_width = 50,
@@ -13,20 +13,22 @@ require('notify').setup({
WARN = "", WARN = "",
INFO = "", INFO = "",
DEBUG = "", DEBUG = "",
TRACE = "" TRACE = "",
}, },
on_open = function(win) on_open = function(win)
-- vim.api.nvim_win_set_option(win, 'wrap', true) -- vim.api.nvim_win_set_option(win, 'wrap', true)
vim.api.nvim_win_set_option(win, 'breakat', ' ') vim.api.nvim_win_set_option(win, "breakat", " ")
end end,
}) }
-- Utility functions shared between progress reports for LSP and DAP -- Utility functions shared between progress reports for LSP and DAP
local client_notifs = {} local client_notifs = {}
local function get_notif_data(client_id, token) local function get_notif_data(client_id, token)
if not client_notifs[client_id] then client_notifs[client_id] = {} end if not client_notifs[client_id] then
client_notifs[client_id] = {}
end
if not client_notifs[client_id][token] then if not client_notifs[client_id][token] then
client_notifs[client_id][token] = {} client_notifs[client_id][token] = {}
@@ -35,7 +37,7 @@ local function get_notif_data(client_id, token)
return client_notifs[client_id][token] return client_notifs[client_id][token]
end end
local spinner_frames = {"", "", "", "", "", "", "", ""} local spinner_frames = { "", "", "", "", "", "", "", "" }
local function update_spinner(client_id, token) local function update_spinner(client_id, token)
local notif_data = get_notif_data(client_id, token) local notif_data = get_notif_data(client_id, token)
@@ -47,10 +49,12 @@ local function update_spinner(client_id, token)
notif_data.notification = vim.notify(nil, nil, { notif_data.notification = vim.notify(nil, nil, {
hide_from_history = true, hide_from_history = true,
icon = spinner_frames[new_spinner], icon = spinner_frames[new_spinner],
replace = notif_data.notification replace = notif_data.notification,
}) })
vim.defer_fn(function() update_spinner(client_id, token) end, 100) vim.defer_fn(function()
update_spinner(client_id, token)
end, 100)
end end
end end
@@ -70,7 +74,9 @@ vim.lsp.handlers["$/progress"] = function(_, result, ctx)
local val = result.value local val = result.value
if not val.kind then return end if not val.kind then
return
end
local notif_data = get_notif_data(client_id, result.token) local notif_data = get_notif_data(client_id, result.token)
@@ -78,29 +84,24 @@ vim.lsp.handlers["$/progress"] = function(_, result, ctx)
local message = format_message(val.message, val.percentage) local message = format_message(val.message, val.percentage)
notif_data.notification = vim.notify(message, "info", { notif_data.notification = vim.notify(message, "info", {
title = format_title(val.title, title = format_title(val.title, vim.lsp.get_client_by_id(client_id).name),
vim.lsp.get_client_by_id(client_id).name),
icon = spinner_frames[1], icon = spinner_frames[1],
timeout = false, timeout = false,
hide_from_history = false hide_from_history = false,
}) })
notif_data.spinner = 1 notif_data.spinner = 1
update_spinner(client_id, result.token) update_spinner(client_id, result.token)
elseif val.kind == "report" and notif_data then elseif val.kind == "report" and notif_data then
notif_data.notification = vim.notify( notif_data.notification = vim.notify(format_message(val.message, val.percentage), "info", {
format_message(val.message, val.percentage), replace = notif_data.notification,
"info", { hide_from_history = false,
replace = notif_data.notification, })
hide_from_history = false
})
elseif val.kind == "end" and notif_data then elseif val.kind == "end" and notif_data then
notif_data.notification = vim.notify(val.message and notif_data.notification = vim.notify(val.message and format_message(val.message) or "Complete", "info", {
format_message(val.message) or
"Complete", "info", {
icon = "", icon = "",
replace = notif_data.notification, replace = notif_data.notification,
timeout = 6000 timeout = 6000,
}) })
notif_data.spinner = nil notif_data.spinner = nil
@@ -108,52 +109,43 @@ vim.lsp.handlers["$/progress"] = function(_, result, ctx)
end end
-- table from lsp severity to vim severity. -- table from lsp severity to vim severity.
local severity = {"error", "warn", "info"} local severity = { "error", "warn", "info" }
vim.lsp.handlers["window/showMessage"] = vim.lsp.handlers["window/showMessage"] = function(err, method, params, client_id)
function(err, method, params, client_id) vim.notify(method.message, severity[params.type])
vim.notify(method.message, severity[params.type]) end
end
-- DAP integration -- DAP integration
-- Make sure to also have the snippet with the common helper functions in your config! -- Make sure to also have the snippet with the common helper functions in your config!
dap.listeners.before['event_progressStart']['progress-notifications'] = dap.listeners.before["event_progressStart"]["progress-notifications"] = function(session, body)
function(session, body) local notif_data = get_notif_data("dap", body.progressId)
local notif_data = get_notif_data("dap", body.progressId)
local message = format_message(body.message, body.percentage) local message = format_message(body.message, body.percentage)
notif_data.notification = vim.notify(message, "info", { notif_data.notification = vim.notify(message, "info", {
title = format_title(body.title, session.config.type), title = format_title(body.title, session.config.type),
icon = spinner_frames[1], icon = spinner_frames[1],
timeout = false, timeout = false,
hide_from_history = false hide_from_history = false,
}) })
notif_data.notification.spinner = 1, update_spinner("dap", notif_data.notification.spinner = 1, update_spinner("dap", body.progressId)
body.progressId) end
end
dap.listeners.before['event_progressUpdate']['progress-notifications'] = dap.listeners.before["event_progressUpdate"]["progress-notifications"] = function(session, body)
function(session, body) local notif_data = get_notif_data("dap", body.progressId)
local notif_data = get_notif_data("dap", body.progressId) notif_data.notification = vim.notify(format_message(body.message, body.percentage), "info", {
notif_data.notification = vim.notify( replace = notif_data.notification,
format_message(body.message, hide_from_history = false,
body.percentage), "info", { })
replace = notif_data.notification, end
hide_from_history = false
})
end
dap.listeners.before['event_progressEnd']['progress-notifications'] = function( dap.listeners.before["event_progressEnd"]["progress-notifications"] = function(session, body)
session, body)
local notif_data = client_notifs["dap"][body.progressId] local notif_data = client_notifs["dap"][body.progressId]
notif_data.notification = vim.notify(body.message and notif_data.notification = vim.notify(body.message and format_message(body.message) or "Complete", "info", {
format_message(body.message) or
"Complete", "info", {
icon = "", icon = "",
replace = notif_data.notification, replace = notif_data.notification,
timeout = 6000 timeout = 6000,
}) })
notif_data.spinner = nil notif_data.spinner = nil
end end
+1 -2
View File
@@ -1,2 +1 @@
require("nvim-tree").setup { require("nvim-tree").setup {}
}
+1 -2
View File
@@ -1,2 +1 @@
require("nvim-web-devicons").setup{ require("nvim-web-devicons").setup {}
}
+6 -6
View File
@@ -1,6 +1,6 @@
require("nvim-tree").setup({ require("nvim-tree").setup {
sort = {sorter = "case_sensitive"}, sort = { sorter = "case_sensitive" },
view = {width = 45}, view = { width = 45 },
renderer = {group_empty = true}, renderer = { group_empty = true },
filters = {dotfiles = true} filters = { dotfiles = true },
}) }
+1 -3
View File
@@ -1,3 +1 @@
require('refactoring').setup({ require("refactoring").setup {}
})
+1 -2
View File
@@ -1,2 +1 @@
require("telescope").setup { require("telescope").setup {}
}
+4 -4
View File
@@ -1,5 +1,5 @@
-- Default options: -- Default options:
require("gruvbox").setup({ require("gruvbox").setup {
terminal_colors = true, -- add neovim terminal colors terminal_colors = true, -- add neovim terminal colors
undercurl = true, undercurl = true,
underline = true, underline = true,
@@ -9,7 +9,7 @@ require("gruvbox").setup({
emphasis = true, emphasis = true,
comments = true, comments = true,
operators = false, operators = false,
folds = true folds = true,
}, },
strikethrough = true, strikethrough = true,
invert_selection = false, invert_selection = false,
@@ -21,5 +21,5 @@ require("gruvbox").setup({
palette_overrides = {}, palette_overrides = {},
overrides = {}, overrides = {},
dim_inactive = false, dim_inactive = false,
transparent_mode = false transparent_mode = false,
}) }
+1 -1
View File
@@ -1,2 +1,2 @@
-- Lua -- Lua
require('onedarkpro').setup({}) require("onedarkpro").setup {}
+1 -3
View File
@@ -1,3 +1 @@
require'tiny-inline-diagnostic'.setup { require("tiny-inline-diagnostic").setup {}
}
+4 -4
View File
@@ -1,8 +1,8 @@
require'nvim-treesitter.config'.setup { require("nvim-treesitter.config").setup {
ensure_installed = "all", ensure_installed = "all",
sync_install = true, sync_install = true,
auto_install = true, auto_install = true,
highlight = {enable = true, additional_vim_regex_highlighting = false}, highlight = { enable = true, additional_vim_regex_highlighting = false },
indent = {enable = true, disable = {}}, indent = { enable = true, disable = {} },
autotag = {enable = true} autotag = { enable = true },
} }
+18 -14
View File
@@ -1,20 +1,24 @@
require('undotree').setup({ require("undotree").setup {
float_diff = true, float_diff = true,
layout = "left_bottom", layout = "left_bottom",
position = "left", position = "left",
ignore_filetype = { ignore_filetype = {
'undotree', 'undotreeDiff', 'qf', 'TelescopePrompt', 'spectre_panel', "undotree",
'tsplayground' "undotreeDiff",
"qf",
"TelescopePrompt",
"spectre_panel",
"tsplayground",
}, },
window = {winblend = 30}, window = { winblend = 30 },
keymaps = { keymaps = {
['j'] = "move_next", ["j"] = "move_next",
['k'] = "move_prev", ["k"] = "move_prev",
['gj'] = "move2parent", ["gj"] = "move2parent",
['J'] = "move_change_next", ["J"] = "move_change_next",
['K'] = "move_change_prev", ["K"] = "move_change_prev",
['<cr>'] = "action_enter", ["<cr>"] = "action_enter",
['p'] = "enter_diffbuf", ["p"] = "enter_diffbuf",
['q'] = "quit" ["q"] = "quit",
} },
}) }
+4 -4
View File
@@ -4,8 +4,8 @@ vim.g.loaded_netrwPlugin = 1
vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/" vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/"
vim.g.mapleader = " " vim.g.mapleader = " "
vim.g.gruvbox_material_background = "medium" vim.g.gruvbox_material_background = "medium"
vim.g.coq_settings = {keymap = {recommended = false}} vim.g.coq_settings = { keymap = { recommended = false } }
vim.g.gruvbox_material_foreground = "original" vim.g.gruvbox_material_foreground = "original"
vim.api.nvim_set_hl(0, 'GitGutterAdd', {fg = '#009900', ctermfg = 2}) vim.api.nvim_set_hl(0, "GitGutterAdd", { fg = "#009900", ctermfg = 2 })
vim.api.nvim_set_hl(0, 'GitGutterChange', {fg = '#bbbb00', ctermfg = 3}) vim.api.nvim_set_hl(0, "GitGutterChange", { fg = "#bbbb00", ctermfg = 3 })
vim.api.nvim_set_hl(0, 'GitGutterDelete', {fg = '#ff2222', ctermfg = 1}) vim.api.nvim_set_hl(0, "GitGutterDelete", { fg = "#ff2222", ctermfg = 1 })
+26 -20
View File
@@ -1,37 +1,41 @@
local map = vim.keymap.set local map = vim.keymap.set
local default_opts = {noremap = true} local default_opts = { noremap = true }
map("n", "<leader>n", function() Snacks.notifier.show_history() end) map("n", "<leader>n", function()
Snacks.notifier.show_history()
end)
map('n', '<leader>ff', map(
"n",
"<leader>ff",
"<cmd>lua require'telescope.builtin'.find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git' }})<cr>", "<cmd>lua require'telescope.builtin'.find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git' }})<cr>",
default_opts) default_opts
)
map({"n", "v"}, "<leader>ap", require("actions-preview").code_actions) map({ "n", "v" }, "<leader>ap", require("actions-preview").code_actions)
map("n", "<Tab>", "<Cmd>BufferLineCycleNext<CR>") map("n", "<Tab>", "<Cmd>BufferLineCycleNext<CR>")
map("n", "<S-Tab>", "<Cmd>BufferLineCyclePrev<CR>") map("n", "<S-Tab>", "<Cmd>BufferLineCyclePrev<CR>")
map("n", ";", ":", {desc = "CMD enter command mode"}) map("n", ";", ":", { desc = "CMD enter command mode" })
-- Move selected text up -- Move selected text up
map("v", "<C-Up>", ":m '<-2<CR>gv=gv", {desc = "Move selected text up"}) map("v", "<C-Up>", ":m '<-2<CR>gv=gv", { desc = "Move selected text up" })
map("v", "<C-Down>", ":m '>+1<CR>gv=gv", {desc = "Move selected text down"}) map("v", "<C-Down>", ":m '>+1<CR>gv=gv", { desc = "Move selected text down" })
-- Alt + Arrow Key to change buffer -- Alt + Arrow Key to change buffer
map("n", "<A-h>", "<C-w>h", {desc = "Move to left split"}) map("n", "<A-h>", "<C-w>h", { desc = "Move to left split" })
map("n", "<A-j>", "<C-w>j", {desc = "Move to bottom split"}) map("n", "<A-j>", "<C-w>j", { desc = "Move to bottom split" })
map("n", "<A-k>", "<C-w>k", {desc = "Move to top split"}) map("n", "<A-k>", "<C-w>k", { desc = "Move to top split" })
map("n", "<A-l>", "<C-w>l", {desc = "Move to right split"}) map("n", "<A-l>", "<C-w>l", { desc = "Move to right split" })
map('n', '<leader>e', vim.cmd.NvimTreeToggle) map("n", "<leader>e", vim.cmd.NvimTreeToggle)
map('n', '<leader>u', require('undotree').toggle, map("n", "<leader>u", require("undotree").toggle, { noremap = true, silent = true })
{noremap = true, silent = true})
map("n", "<A-->", ":bdelete<CR>") map("n", "<A-->", ":bdelete<CR>")
-- map("n", "<SA-->", ":BufferRestore<CR>") -- map("n", "<SA-->", ":BufferRestore<CR>")
map("n", "<C-a>", "ggVG", {noremap = true, silent = true}) map("n", "<C-a>", "ggVG", { noremap = true, silent = true })
map("n", "<leader>pv", vim.cmd.Ex) map("n", "<leader>pv", vim.cmd.Ex)
@@ -49,14 +53,16 @@ map("n", "<leader>zig", "<cmd>LspRestart<cr>")
map("x", "<leader>p", [["_dP]]) map("x", "<leader>p", [["_dP]])
-- next greatest remap ever : asbjornHaland -- next greatest remap ever : asbjornHaland
map({"n", "v"}, "<leader>y", [["+y]]) map({ "n", "v" }, "<leader>y", [["+y]])
map("n", "<leader>Y", [["+Y]]) map("n", "<leader>Y", [["+Y]])
map({"n", "v"}, "<leader>d", "\"_d") map({ "n", "v" }, "<leader>d", '"_d')
-- This is going to get me cancelled -- This is going to get me cancelled
map("i", "<C-c>", "<Esc>") map("i", "<C-c>", "<Esc>")
map("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>"); map("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>")
map("n", "<leader><leader>", function() vim.cmd("so") end) map("n", "<leader><leader>", function()
vim.cmd "so"
end)
+8 -8
View File
@@ -8,25 +8,24 @@ vim.opt.wrap = true
vim.opt.linebreak = true vim.opt.linebreak = true
vim.opt.swapfile = false vim.opt.swapfile = false
vim.opt.backup = false vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir" vim.opt.undodir = os.getenv "HOME" .. "/.nvim/undodir"
vim.opt.undofile = true vim.opt.undofile = true
vim.opt.hlsearch = false vim.opt.hlsearch = false
vim.opt.incsearch = true vim.opt.incsearch = true
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.opt.scrolloff = 8 vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes:1" vim.opt.signcolumn = "yes:1"
vim.opt.isfname:append("@-@") vim.opt.isfname:append "@-@"
vim.opt.updatetime = 50 vim.opt.updatetime = 50
vim.opt.textwidth = 0 vim.opt.textwidth = 0
vim.opt.colorcolumn = "100" vim.opt.colorcolumn = "100"
vim.opt.formatoptions = "rqnj" vim.opt.formatoptions = "rqnj"
vim.o.sessionoptions = vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
"blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
vim.o.laststatus = 0 vim.o.laststatus = 0
vim.o.clipboard = "unnamedplus" vim.o.clipboard = "unnamedplus"
vim.o.cursorline = true vim.o.cursorline = true
vim.o.cursorlineopt = "number" vim.o.cursorlineopt = "number"
vim.opt.fillchars = {eob = " "} vim.opt.fillchars = { eob = " " }
vim.o.ignorecase = true vim.o.ignorecase = true
vim.o.smartcase = true vim.o.smartcase = true
vim.o.mouse = "a" vim.o.mouse = "a"
@@ -46,7 +45,8 @@ vim.g.loaded_ruby_provider = 0
local is_windows = vim.fn.has "win32" ~= 0 local is_windows = vim.fn.has "win32" ~= 0
local sep = is_windows and "\\" or "/" local sep = is_windows and "\\" or "/"
local delim = is_windows and ";" or ":" local delim = is_windows and ";" or ":"
vim.env.PATH = table.concat({vim.fn.stdpath "data", "mason", "bin"}, sep) .. vim.env.PATH = table.concat({ vim.fn.stdpath "data", "mason", "bin" }, sep) .. delim .. vim.env.PATH
delim .. vim.env.PATH
vim.api.nvim_create_user_command('Nf', function() vim.cmd('Neoformat') end, {}) vim.api.nvim_create_user_command("Nf", function()
vim.cmd "Neoformat"
end, {})
+115 -58
View File
@@ -1,93 +1,150 @@
return { return {
{"vimpostor/vim-tpipeline"}, { { "vimpostor/vim-tpipeline" },
{
"aznhe21/actions-preview.nvim", "aznhe21/actions-preview.nvim",
config = function() require("actions-preview") end config = function()
}, { require "actions-preview"
end,
},
{
"sbdchd/neoformat", "sbdchd/neoformat",
init = function() init = function()
vim.cmd("source" .. vim.fn.stdpath "config" .. vim.cmd("source" .. vim.fn.stdpath "config" .. "/lua/config/neoformat.vim")
"/lua/config/neoformat.vim") end,
end },
}, { {
"rachartier/tiny-inline-diagnostic.nvim", "rachartier/tiny-inline-diagnostic.nvim",
event = "VeryLazy", event = "VeryLazy",
priority = 1000, priority = 1000,
config = function() config = function()
require("tiny-inline-diagnostic").setup() require("tiny-inline-diagnostic").setup()
vim.diagnostic.config({virtual_text = false}) vim.diagnostic.config { virtual_text = false }
end end,
}, { },
{
"ThePrimeagen/refactoring.nvim", "ThePrimeagen/refactoring.nvim",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter" "nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
}, },
lazy = false, lazy = false,
opts = {}, opts = {},
config = function() require("config.refactoring") end config = function()
}, { require "config.refactoring"
end,
},
{
"folke/snacks.nvim", "folke/snacks.nvim",
priority = 1000, priority = 1000,
lazy = false, lazy = false,
---@type snacks.Config ---@type snacks.Config
opts = { opts = {
bigfile = {enabled = true}, bigfile = { enabled = true },
dashboard = {enabled = true}, dashboard = { enabled = true },
explorer = {enabled = true}, explorer = { enabled = true },
indent = {enabled = true}, indent = { enabled = true },
input = {enabled = true}, input = { enabled = true },
picker = {enabled = true}, picker = { enabled = true },
notifier = {enabled = true}, notifier = { enabled = true },
quickfile = {enabled = true}, quickfile = { enabled = true },
scope = {enabled = true}, scope = { enabled = true },
scroll = {enabled = true}, scroll = { enabled = true },
statuscolumn = {enabled = true}, statuscolumn = { enabled = true },
words = {enabled = true} words = { enabled = true },
} },
}, { },
{
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
dependencies = { dependencies = {
"williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", "hrsh7th/nvim-cmp",
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-cmdline", "hrsh7th/nvim-cmp", "L3MON4D3/LuaSnip", "hrsh7th/cmp-buffer",
"saadparwaiz1/cmp_luasnip", "j-hui/fidget.nvim" "hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip",
"j-hui/fidget.nvim",
}, },
config = function() require("config.lspconfig") end config = function()
}, { require "config.lspconfig"
'https://gitlab.com/itaranto/plantuml.nvim', end,
version = '*', },
config = function() require('plantuml').setup() end {
}, { "https://gitlab.com/itaranto/plantuml.nvim",
version = "*",
config = function()
require("plantuml").setup()
end,
},
{
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
config = function() require("config.treesitter") end config = function()
}, { require "config.treesitter"
end,
},
{
"rmagatti/auto-session", "rmagatti/auto-session",
config = function() require("config.autosession") end config = function()
}, { require "config.autosession"
end,
},
{
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
dependencies = {"nvim-lua/plenary.nvim"}, dependencies = { "nvim-lua/plenary.nvim" },
config = function() require("config.telescope") end config = function()
}, {"lambdalisue/vim-suda"}, {"nvim-tree/nvim-web-devicons"}, { require "config.telescope"
end,
},
{ "lambdalisue/vim-suda" },
{ "nvim-tree/nvim-web-devicons" },
{
"nvim-tree/nvim-tree.lua", "nvim-tree/nvim-tree.lua",
cmd = {"NvimTreeToggle", "NvimTreeFocus"}, cmd = { "NvimTreeToggle", "NvimTreeFocus" },
config = function() require("config.nvimtree") end config = function()
}, { require "config.nvimtree"
end,
},
{
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
event = "VeryLazy", event = "VeryLazy",
config = function() require("config.barbar") end config = function()
}, { require "config.barbar"
end,
},
{
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
event = "VeryLazy", event = "VeryLazy",
config = function() require("config.lualine") end config = function()
require "config.lualine"
end,
}, },
{"jiaoshijie/undotree", config = function() require("config.undotree") end}, {
{"hiphish/rainbow-delimiters.nvim"}, { "jiaoshijie/undotree",
config = function()
require "config.undotree"
end,
},
{ "hiphish/rainbow-delimiters.nvim" },
{
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
event = "InsertEnter", event = "InsertEnter",
config = function() require("config.autopairs") end config = function()
}, {"tpope/vim-fugitive"}, { require "config.autopairs"
end,
},
{ "tpope/vim-fugitive" },
{
"catgoose/nvim-colorizer.lua", "catgoose/nvim-colorizer.lua",
config = function() require("config.colorizer") end config = function()
}, {"catppuccin/nvim", name = "catppuccin", priority = 1000}, require "config.colorizer"
{"ellisonleao/gruvbox.nvim", priority = 1000, config = true, opts = ...}, end,
{"mfussenegger/nvim-dap", config = function() require("config.dap") end} },
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{ "ellisonleao/gruvbox.nvim", priority = 1000, config = true, opts = ... },
{
"mfussenegger/nvim-dap",
config = function()
require "config.dap"
end,
},
} }