make config more lightweight

This commit is contained in:
davidon-top 2023-09-19 18:57:21 +02:00
parent c0ea7b465b
commit 9d922f8de5
16 changed files with 79 additions and 515 deletions

View file

@ -8,11 +8,6 @@ return {
"folke/neodev.nvim",
},
},
{
"jinzhongjia/LspUI.nvim",
config = true,
branch = "legacy",
},
{
"VidocqH/lsp-lens.nvim",
config = true,
@ -34,7 +29,6 @@ return {
event = "BufRead",
config = function() require"lsp_signature".on_attach() end,
},
{'stevearc/aerial.nvim', config = true},
{
"hrsh7th/nvim-cmp",
dependencies = {
@ -47,10 +41,6 @@ return {
"rafamadriz/friendly-snippets"
},
},
{
"roobert/tailwindcss-colorizer-cmp.nvim",
opts = {color_square_width = 2},
},
-- syntax highlighting
{
@ -90,83 +80,35 @@ return {
"nvim-telescope/telescope-dap.nvim",
-- git
{
"NeogitOrg/neogit",
dependencies = {
"nvim-lua/plenary.nvim"
},
config=true,
},
"tpope/vim-fugitive",
"tpope/vim-rhubarb",
"lewis6991/gitsigns.nvim",
"lvimuser/lsp-inlayhints.nvim",
"s1n7ax/nvim-window-picker",
"echasnovski/mini.nvim",
{
'stevearc/oil.nvim',
opts = {
columns = {
"icon",
"permissions",
"size",
},
-- keymap = {
-- ["<C-c>"] = "actions.close",
-- },
view_options = {
show_hidden = true,
},
}
},
"ThePrimeagen/vim-be-good",
{'kazhala/close-buffers.nvim', config = true},
-- {
-- "VonHeikemen/fine-cmdline.nvim",
-- dependencies = {{"MunifTanjim/nui.nvim"}},
-- config = function()
-- require("fine-cmdline").setup({
-- cmdline = {
-- prompt = ">",
-- }
-- })
-- vim.api.nvim_set_keymap('n', ':', '<cmd>FineCmdline<CR>', {noremap = true})
-- end
-- },
'stevearc/dressing.nvim',
{'stevearc/dressing.nvim', opts = {}},
{
'stevearc/overseer.nvim',
'anuvyklack/pretty-fold.nvim',
opts = {
strategy = "toggleterm",
keep_indentation = true,
fill_char = '',
sections = {
left = {
'', function() return string.rep('*', vim.v.foldlevel) end, ' ━┫', 'content', ''
},
right = {
'', 'number_of_folded_lines', ': ', 'percentage', ' ┣━━',
}
}
}
},
"itchyny/screensaver.vim",
'anuvyklack/pretty-fold.nvim',
'eandrju/cellular-automaton.nvim',
"ahmedkhalf/project.nvim",
"dhruvasagar/vim-table-mode",
"editorconfig/editorconfig-vim",
"andweeb/presence.nvim",
"nacro90/numb.nvim",
{"ellisonleao/glow.nvim", config = true, cmd = "Glow"},
{"nacro90/numb.nvim", opts = {}},
{"kylechui/nvim-surround", opts={}},
{
"phaazon/hop.nvim",
event = "BufRead",
opts = {}
},
{
"nvim-tree/nvim-tree.lua",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
opts = {
filters = {
dotfiles = true,
},
}
},
{
"ThePrimeagen/harpoon"
},
@ -182,19 +124,6 @@ return {
["border"] = "rounded",
},
},
{
"natecraddock/workspaces.nvim",
opts = {
auto_open = true,
hooks = {
add = {},
remove = {},
rename = {},
open_pre = {},
open = {},
},
}
},
"lambdalisue/suda.vim",
"tpope/vim-sleuth",
"mbbill/undotree",
@ -216,24 +145,12 @@ return {
filetypes = {'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue', 'tsx', 'jsx', 'rescript', 'xml', 'php', 'markdown', 'astro', 'glimmer', 'handlebars', 'hbs', "rust" },
},
},
{
'bennypowers/nvim-regexplainer',
dependencies = {
'nvim-treesitter/nvim-treesitter',
'MunifTanjim/nui.nvim',
}
},
{
"rcarriga/nvim-notify",
config = function ()
vim.notify = require("notify")
end
},
'nmac427/guess-indent.nvim',
'mrjones2014/smart-splits.nvim',
"goolord/alpha-nvim",
"preservim/nerdtree",
"luukvbaal/nnn.nvim",
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
@ -243,7 +160,6 @@ return {
"MunifTanjim/nui.nvim",
},
},
"jistr/vim-nerdtree-tabs",
{
"kevinhwang91/nvim-bqf",
event = { "BufRead", "BufNew" },
@ -269,13 +185,11 @@ return {
}
},
"nvim-tree/nvim-web-devicons",
"ap/vim-css-color",
{
"lukas-reineke/indent-blankline.nvim",
opts = {
char = '',
show_trailing_blankline_indent = false,
filetype_exclude = {"dashboard"},
show_end_of_line = true,
show_current_context = true,
show_current_context_start = true,
@ -340,11 +254,6 @@ return {
window = {border="rounded",},
}
},
'rmagatti/goto-preview',
{
"felipec/vim-sanegx",
event = "BufRead",
},
{
"gelguy/wilder.nvim",
config = function()
@ -353,7 +262,6 @@ return {
vim.cmd('call wilder#set_option("renderer", wilder#popupmenu_renderer(wilder#popupmenu_border_theme({"highlighter": wilder#basic_highlighter(), "min_width": "100%", "min_height": "50%", "reverse": 0, "highlights": {"border": "Normal",},"border": "rounded"})))')
end,
},
{
"zbirenbaum/copilot.lua",
opts = {
@ -363,20 +271,25 @@ return {
},
},
-- language mixing also OTTER
{"tpope/vim-dadbod"},
{
"jmbuhr/otter.nvim",
"kristijanhusak/vim-dadbod-ui",
dependencies = {
'hrsh7th/nvim-cmp',
'neovim/nvim-lspconfig',
'nvim-treesitter/nvim-treesitter'
{ 'tpope/vim-dadbod', lazy = true },
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql', 'plsql' }, lazy = true },
},
cmd = {
'DBUI',
'DBUIToggle',
'DBUIAddConnection',
'DBUIFindBuffer',
},
init = function()
vim.g.db_ui_use_nerd_fonts = 1
end
},
-- lenguage specific
-- nim
"alaviss/nim.nvim",
-- csv
'cameron-wags/rainbow_csv.nvim',
@ -416,93 +329,18 @@ return {
"mfussenegger/nvim-jdtls",
-- c && c++ && cmake
{ "igankevich/mesonic",
config = function()
vim.cmd[[
let b:meson_command = 'meson'
let b:meson_ninja_command = 'ninja'
autocmd FileType c call ConsiderMesonForLinting()
function ConsiderMesonForLinting()
if filereadable('meson.build')
let g:syntastic_c_checkers = ['meson']
endif
endfunction
]]
end
},
"cdelledonne/vim-cmake",
-- web
"evanleck/vim-svelte",
"posva/vim-vue",
-- yuck
"elkowar/yuck.vim",
-- f#
"adelarsq/neofsharp.vim",
{
"ionide/Ionide-vim",
config = function ()
vim.cmd [[
let g:fsharp#backend = "nvim"
]]
end
},
"aurum77/dotnet.nvim",
-- mojo
{
"czheo/mojo.vim",
init = function()
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
pattern = { "*.🔥" },
callback = function()
if vim.bo.filetype ~= "mojo" then
vim.bo.filetype = "mojo"
end
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "mojo",
callback = function()
local modular = vim.env.MODULAR_HOME
local lsp_cmd = modular .. "/pkg/packages.modular.com_mojo/bin/mojo-lsp-server"
vim.bo.expandtab = true
vim.bo.shiftwidth = 4
vim.bo.softtabstop = 4
vim.lsp.start({
name = "mojo",
cmd = { lsp_cmd },
})
end,
})
end,
},
-- themes
"xiyaowong/transparent.nvim",
"sainnhe/gruvbox-material",
"shaunsingh/nord.nvim",
"projekt0n/github-nvim-theme",
"EdenEast/nightfox.nvim",
"Everblush/nvim",
"olimorris/onedarkpro.nvim",
"rmehri01/onenord.nvim",
"luisiacc/gruvbox-baby",
"tiagovla/tokyodark.nvim",
"cpea2506/one_monokai.nvim",
"yazeed1s/minimal.nvim",
"Mofiqul/adwaita.nvim",
"kvrohit/mellow.nvim",
"yazeed1s/oh-lucy.nvim",
"marko-cerovac/material.nvim",
"sainnhe/sonokai",
"rebelot/kanagawa.nvim",
{
@ -538,7 +376,6 @@ return {
-- }
}
}
vim.cmd("colorscheme catppuccin")
end
},
}