many updates
This commit is contained in:
1 parent
645eba17b1
commit
aecda184ac
13 files changed
+203
-32
No files matched your search
@@ -1,3 +1,10 @@
|
|||||||
return {
|
return {
|
||||||
"romgrk/barbar.nvim",
|
'romgrk/barbar.nvim',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-tree/nvim-web-devicons',
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require('barbar').setup()
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
'Exafunction/codeium.vim',
|
'Exafunction/codeium.vim',
|
||||||
event = 'BufEnter',
|
event = 'InsertEnter',
|
||||||
cmd = 'Codeium',
|
cmd = 'Codeium',
|
||||||
build = 'Codeium Auth:',
|
build = 'Codeium Auth:',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
'navarasu/onedark.nvim',
|
'navarasu/onedark.nvim',
|
||||||
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
require('onedark').setup({
|
require('onedark').setup({
|
||||||
style = 'deep',
|
style = 'deep',
|
||||||
|
|||||||
@@ -7,11 +7,12 @@ return {
|
|||||||
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
'hrsh7th/cmp-cmdline',
|
||||||
'L3MON4D3/LuaSnip',
|
'L3MON4D3/LuaSnip',
|
||||||
'rafamadriz/friendly-snippets',
|
'rafamadriz/friendly-snippets',
|
||||||
'onsails/lspkind.nvim',
|
'onsails/lspkind.nvim',
|
||||||
},
|
},
|
||||||
|
event = 'InsertEnter',
|
||||||
config = function()
|
config = function()
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
local lspkind = require('lspkind')
|
local lspkind = require('lspkind')
|
||||||
@@ -58,6 +59,23 @@ return {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
cmp.setup.cmdline({ '/', '?' }, {
|
||||||
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
|
sources = {
|
||||||
|
{ name = 'buffer' },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
||||||
|
cmp.setup.cmdline(':', {
|
||||||
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'path' },
|
||||||
|
}, {
|
||||||
|
{ name = 'cmdline' },
|
||||||
|
}),
|
||||||
|
matching = { disallow_symbol_nonprefix_matching = false },
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,60 @@
|
|||||||
return {
|
return {
|
||||||
'nvimdev/dashboard-nvim',
|
'nvimdev/dashboard-nvim',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-tree/nvim-web-devicons',
|
||||||
|
},
|
||||||
event = 'VimEnter',
|
event = 'VimEnter',
|
||||||
config = function()
|
config = function()
|
||||||
require('dashboard').setup({
|
require('dashboard').setup({
|
||||||
-- config
|
theme = 'hyper',
|
||||||
|
disable_move = false,
|
||||||
|
shortcut_type = 'letter',
|
||||||
|
change_to_vcs_root = true,
|
||||||
|
hide = {
|
||||||
|
statusline = true,
|
||||||
|
tabline = false,
|
||||||
|
winbar = false,
|
||||||
|
},
|
||||||
|
config = {
|
||||||
|
header = {
|
||||||
|
'',
|
||||||
|
|
||||||
|
' ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ',
|
||||||
|
' ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ',
|
||||||
|
' ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ',
|
||||||
|
' ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ',
|
||||||
|
' ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ',
|
||||||
|
' ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ',
|
||||||
|
'',
|
||||||
|
},
|
||||||
|
weak_header = {
|
||||||
|
enable = false,
|
||||||
|
append = { ' Learn, Make, Explore! ' },
|
||||||
|
},
|
||||||
|
packages = { enable = true },
|
||||||
|
project = { enable = true, limit = 8 },
|
||||||
|
mru = { limit = 8 },
|
||||||
|
shortcut ={
|
||||||
|
{
|
||||||
|
desc = ' Recent files',
|
||||||
|
group = 'Label',
|
||||||
|
action = 'Telescope oldfiles',
|
||||||
|
key = 'r',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
desc = ' Find file',
|
||||||
|
group = 'Label',
|
||||||
|
action = 'Telescope find_files',
|
||||||
|
key = 'f',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
desc = ' Find text',
|
||||||
|
group = 'Label',
|
||||||
|
action = 'Telescope live_grep',
|
||||||
|
key = 't',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
dependencies = { { 'nvim-tree/nvim-web-devicons' } },
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
return {
|
||||||
|
'kndndrj/nvim-dbee',
|
||||||
|
dependencies = {
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
},
|
||||||
|
build = function()
|
||||||
|
-- "curl", "wget", "bitsadmin", "go"
|
||||||
|
require('dbee').install(curl)
|
||||||
|
end,
|
||||||
|
cmd = 'DBToggle',
|
||||||
|
enabled = false,
|
||||||
|
|
||||||
|
config = function()
|
||||||
|
require('dbee').setup({
|
||||||
|
sources = {
|
||||||
|
require('dbee.sources').EnvSource:new('NVIM_DB'),
|
||||||
|
-- require("dbee.sources").MemorySource:new({
|
||||||
|
-- {
|
||||||
|
-- name = "dbname",
|
||||||
|
-- type = "postgres",
|
||||||
|
-- url = "postgres://pguser:pguser@localhost:5602/dbname?sslmode=disable"
|
||||||
|
-- },
|
||||||
|
-- }),
|
||||||
|
-- require("dbee.sources").FileSource:new(vim.fn.stdpath("cache") .. "/dbee/config.json"),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command('DBToggle', function()
|
||||||
|
require('dbee').toggle()
|
||||||
|
end, {})
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -1,17 +1,52 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'williamboman/mason.nvim',
|
'williamboman/mason.nvim',
|
||||||
|
cmd = 'Mason',
|
||||||
|
dependencies = {
|
||||||
|
'williamboman/mason-lspconfig.nvim',
|
||||||
|
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('mason').setup()
|
require('mason').setup()
|
||||||
|
require('mason-lspconfig').setup({
|
||||||
|
ensure_installed = {
|
||||||
|
'lua_ls',
|
||||||
|
'clangd',
|
||||||
|
'pylsp',
|
||||||
|
'bashls',
|
||||||
|
'jsonls',
|
||||||
|
'vimls',
|
||||||
|
'jdtls',
|
||||||
|
'html',
|
||||||
|
'cssls',
|
||||||
|
'tailwindcss',
|
||||||
|
'tsserver',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
require('mason-tool-installer').setup({
|
||||||
|
ensure_installed = {
|
||||||
|
'prettier',
|
||||||
|
'stylua',
|
||||||
|
'clang-format',
|
||||||
|
'black',
|
||||||
|
'gdformat',
|
||||||
|
'djhtml',
|
||||||
|
},
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
|
local handlers = {
|
||||||
|
['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'rounded' }),
|
||||||
|
['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = 'rounded' }),
|
||||||
|
}
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
lspconfig.lua_ls.setup({
|
||||||
@@ -37,7 +72,7 @@ return {
|
|||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
handlers = handlers,
|
handlers = handlers,
|
||||||
})
|
})
|
||||||
lspconfig.biome.setup({
|
lspconfig.tsserver.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
handlers = handlers,
|
handlers = handlers,
|
||||||
})
|
})
|
||||||
|
|||||||
+44
-5
@@ -1,7 +1,46 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
require('lualine').setup()
|
require('lualine').setup({
|
||||||
end,
|
options = {
|
||||||
|
icons_enabled = true,
|
||||||
|
theme = 'auto',
|
||||||
|
component_separators = { left = '', right = '' },
|
||||||
|
section_separators = { left = '', right = '' },
|
||||||
|
disabled_filetypes = {
|
||||||
|
statusline = {},
|
||||||
|
winbar = {},
|
||||||
|
},
|
||||||
|
ignore_focus = {},
|
||||||
|
always_divide_middle = true,
|
||||||
|
globalstatus = false,
|
||||||
|
refresh = {
|
||||||
|
statusline = 1000,
|
||||||
|
tabline = 1000,
|
||||||
|
winbar = 1000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_a = { 'mode' },
|
||||||
|
lualine_b = { 'branch', 'diff', 'diagnostics' },
|
||||||
|
lualine_c = { 'filename' },
|
||||||
|
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
||||||
|
lualine_y = { 'progress' },
|
||||||
|
lualine_z = { 'location' },
|
||||||
|
},
|
||||||
|
inactive_sections = {
|
||||||
|
lualine_a = {},
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_c = { 'filename' },
|
||||||
|
lualine_x = { 'location' },
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = {},
|
||||||
|
},
|
||||||
|
tabline = {},
|
||||||
|
winbar = {},
|
||||||
|
inactive_winbar = {},
|
||||||
|
extensions = {},
|
||||||
|
})
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
return {
|
|
||||||
"iamcco/markdown-preview.nvim",
|
|
||||||
ft = "markdown",
|
|
||||||
build = function()
|
|
||||||
vim.fn["mkdp#util#install"]()
|
|
||||||
end,
|
|
||||||
cmd = {
|
|
||||||
"MarkdownPreviewToggle",
|
|
||||||
"MarkdownPreview",
|
|
||||||
"MarkdownPreviewStop",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
'nvimtools/none-ls.nvim',
|
'nvimtools/none-ls.nvim',
|
||||||
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
local null_ls = require('null-ls')
|
local null_ls = require('null-ls')
|
||||||
|
|
||||||
@@ -12,7 +12,6 @@ return {
|
|||||||
null_ls.builtins.formatting.black,
|
null_ls.builtins.formatting.black,
|
||||||
null_ls.builtins.formatting.gdformat,
|
null_ls.builtins.formatting.gdformat,
|
||||||
null_ls.builtins.formatting.djhtml,
|
null_ls.builtins.formatting.djhtml,
|
||||||
null_ls.builtins.formatting.biome,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
'rcarriga/nvim-notify',
|
'rcarriga/nvim-notify',
|
||||||
|
event = 'VeryLazy',
|
||||||
config = function()
|
config = function()
|
||||||
vim.notify = require('notify')
|
vim.notify = require('notify')
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-surround").setup()
|
require("nvim-surround").setup()
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
|
dependencies = {
|
||||||
|
'windwp/nvim-ts-autotag',
|
||||||
|
},
|
||||||
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
local configs = require("nvim-treesitter.configs")
|
local configs = require("nvim-treesitter.configs")
|
||||||
|
|
||||||
configs.setup({
|
configs.setup({
|
||||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "python", "cpp", "html", "css", "javascript", "typescript", "json", "php" },
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "python", "cpp", "html", "css", "javascript", "typescript", "json", "php", "gdscript", 'markdown', 'markdown_inline', 'bash','java' },
|
||||||
sync_install = false,
|
sync_install = true,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user