fix: Corrected function declaration syntax errors in lazy spec files.
This commit is contained in:
parent
e23246622c
commit
fc4e037743
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
-- Code completion
|
-- Code completion
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
config = function() {
|
config = function()
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
|
|
@ -74,5 +74,5 @@ return {
|
||||||
--require('lspconfig')['<YOUR_LSP_SERVER>'].setup {
|
--require('lspconfig')['<YOUR_LSP_SERVER>'].setup {
|
||||||
-- capabilities = capabilities
|
-- capabilities = capabilities
|
||||||
--}
|
--}
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
-- Git utility
|
-- Git utility
|
||||||
'tpope/vim-fugitive',
|
'tpope/vim-fugitive',
|
||||||
config = function() {
|
config = function()
|
||||||
vim.keymap.set("n", "<leader>gs", vim.cmd.Git, { desc = "Show git summary" } )
|
vim.keymap.set("n", "<leader>gs", vim.cmd.Git, { desc = "Show git summary" } )
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
-- File navigation utility
|
-- File navigation utility
|
||||||
'ThePrimeagen/harpoon',
|
'ThePrimeagen/harpoon',
|
||||||
config = function() {
|
config = function()
|
||||||
local mark = require("harpoon.mark")
|
local mark = require("harpoon.mark")
|
||||||
local ui = require("harpoon.ui")
|
local ui = require("harpoon.ui")
|
||||||
|
|
||||||
|
|
@ -12,5 +12,5 @@ return {
|
||||||
vim.keymap.set("n", "<C-j>", function() ui.nav_file(2) end)
|
vim.keymap.set("n", "<C-j>", function() ui.nav_file(2) end)
|
||||||
vim.keymap.set("n", "<C-k>", function() ui.nav_file(3) end)
|
vim.keymap.set("n", "<C-k>", function() ui.nav_file(3) end)
|
||||||
vim.keymap.set("n", "<C-l>", function() ui.nav_file(4) end)
|
vim.keymap.set("n", "<C-l>", function() ui.nav_file(4) end)
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
-- Packager Manager (LSPs)
|
-- Packager Manager (LSPs)
|
||||||
'williamboman/mason.nvim',
|
'williamboman/mason.nvim',
|
||||||
config = function() {
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
|
|
||||||
vim.lsp.enable("lua_ls")
|
vim.lsp.enable("lua_ls")
|
||||||
|
|
@ -46,5 +46,5 @@ return {
|
||||||
vim.lsp.enable("tailwindcss")
|
vim.lsp.enable("tailwindcss")
|
||||||
|
|
||||||
vim.lsp.enable("jdtls")
|
vim.lsp.enable("jdtls")
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
-- Formatter, Linter, etc bridge??
|
-- Formatter, Linter, etc bridge??
|
||||||
'nvimtools/none-ls.nvim',
|
'nvimtools/none-ls.nvim',
|
||||||
config = function() {
|
config = function()
|
||||||
local null_ls = require("null-ls")
|
local null_ls = require("null-ls")
|
||||||
|
|
||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
|
|
@ -11,5 +11,5 @@ return {
|
||||||
--require("none-ls.diagnostics.eslint"), -- requires none-ls-extras.nvim
|
--require("none-ls.diagnostics.eslint"), -- requires none-ls-extras.nvim
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ return {
|
||||||
-- optional but recommended
|
-- optional but recommended
|
||||||
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
||||||
},
|
},
|
||||||
config = function() {
|
config = function()
|
||||||
require("telescope").setup({
|
require("telescope").setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
|
|
@ -26,5 +26,5 @@ return {
|
||||||
vim.keymap.set('n', '<leader>pf', builtin.find_files, { desc = 'Telescope find files' })
|
vim.keymap.set('n', '<leader>pf', builtin.find_files, { desc = 'Telescope find files' })
|
||||||
vim.keymap.set('n', '<C-p>', builtin.git_files, { desc = 'Telescope find files (git)' })
|
vim.keymap.set('n', '<C-p>', builtin.git_files, { desc = 'Telescope find files (git)' })
|
||||||
vim.keymap.set('n', '<leader>ps', builtin.live_grep, { desc = 'Telescope live grep' })
|
vim.keymap.set('n', '<leader>ps', builtin.live_grep, { desc = 'Telescope live grep' })
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
return {
|
return {
|
||||||
-- Color Scheme
|
-- Color Scheme
|
||||||
'folke/tokyonight.nvim',
|
'folke/tokyonight.nvim',
|
||||||
config = function() {
|
config = function()
|
||||||
color = color or "tokyonight"
|
color = color or "tokyonight"
|
||||||
vim.cmd.colorscheme(color)
|
vim.cmd.colorscheme(color)
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
-- Undo.. tree
|
-- Undo.. tree
|
||||||
'mbbill/undotree',
|
'mbbill/undotree',
|
||||||
config = function() {
|
config = function()
|
||||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle, { desc = "Toggle undo tree" })
|
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle, { desc = "Toggle undo tree" })
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue