feat: add all plugins from the old config
parent
4a37a0a9b1
commit
1fd5843cf1
@ -0,0 +1,8 @@
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||
config = function()
|
||||
require'alpha.themes.dashboard'.section.footer.val = require'alpha.fortune'()
|
||||
require'alpha'.setup(require'alpha.themes.dashboard'.opts)
|
||||
end,
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
-- Case insensitive searching UNLESS /C or capital in search
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
|
||||
-- Copy to clipboard
|
||||
local has_unnamedplus = vim.fn.has("unnamedplus")
|
||||
if has_unnamedplus then
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
end
|
||||
|
||||
vim.api.nvim_buf_set_keymap(0, 'n', 'y', '"+y', { noremap = true, silent = true })
|
||||
vim.api.nvim_buf_set_keymap(0, 'n', 'p', '"+p', { noremap = true, silent = true })
|
||||
|
||||
local function set_json_filetype()
|
||||
if string.match(vim.api.nvim_buf_get_name(0), '%.geojson$') or string.match(vim.api.nvim_buf_get_name(0), '%.json$') then
|
||||
-- vim.filetype('json')
|
||||
vim.api.nvim_buf_set_option(0, 'filetype', 'json')
|
||||
end
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufReadPost" }, { pattern = { "*.geojson", "*.bson" }, callback = set_json_filetype })
|
||||
|
||||
function Format()
|
||||
vim.lsp.buf.format(nil, 100)
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, { pattern = { "*" }, callback = Format })
|
||||
|
||||
function Macos()
|
||||
return vim.fn.has("mac") == 1
|
||||
end
|
||||
|
||||
function Linux()
|
||||
if package.os == 'Linux' then
|
||||
return true
|
||||
end
|
||||
if vim.fn.has('unix') and not vim.fn.has('macunix') and not vim.fn.has('win32unix')
|
||||
and not vim.fn.has('win64unix') then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function Windows()
|
||||
return vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
|
||||
end
|
||||
|
||||
function OpenBuffer()
|
||||
if Macos() then
|
||||
vim.cmd('silent !open ' .. vim.fn.expand('%:p'))
|
||||
-- vim.cmd('silent !open -a "Google Chrome" ' .. vim.fn.expand('%:p'))
|
||||
elseif Linux() then
|
||||
vim.cmd('silent !xdg-open ' .. vim.fn.expand('%:p'))
|
||||
elseif Windows() then
|
||||
vim.cmd('silent !start ' .. vim.fn.expand('%:p'))
|
||||
end
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<leader>vob", OpenBuffer, { noremap = true })
|
||||
|
||||
-- vim.keymap.set("n", "<leader>e", vim.lsp.diagnostic.show_line_diagnostics, { noremap = true, silent = true })
|
||||
--
|
||||
local function prettify_json()
|
||||
vim.api.nvim_command('%!jq .')
|
||||
end
|
||||
|
||||
local function uglify_json()
|
||||
vim.api.nvim_command("%!jq -c .")
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<leader>jq", prettify_json, { noremap = true })
|
||||
vim.keymap.set("n", "<leader>ujq", uglify_json, { noremap = true })
|
||||
|
||||
return {}
|
@ -0,0 +1,8 @@
|
||||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
dependencies = {'kyazdani42/nvim-web-devicons'},
|
||||
config = function()
|
||||
vim.opt.termguicolors = true
|
||||
require("bufferline").setup {}
|
||||
end
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"hrsh7th/cmp-path"
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
return {
|
||||
"tzachar/cmp-tabnine",
|
||||
build = "./install.sh",
|
||||
dependencies = {"hrsh7th/nvim-cmp"}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
config = function()
|
||||
require('Comment').setup()
|
||||
end
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"github/copilot.vim"
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
return {
|
||||
"EtiamNullam/deferred-clipboard.nvim",
|
||||
config = function()
|
||||
require("deferred-clipboard").setup({
|
||||
fallback = 'unnamedplus', -- or your preferred setting for clipboard
|
||||
lazy = true,
|
||||
})
|
||||
end
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
return {
|
||||
'sindrets/diffview.nvim',
|
||||
dependencies = {'nvim-lua/plenary.nvim'}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
return {
|
||||
'feline-nvim/feline.nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
||||
config = function()
|
||||
require('feline').setup()
|
||||
end
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
return {
|
||||
"ibhagwan/fzf-lua",
|
||||
-- optional for icon support
|
||||
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||
config = function()
|
||||
vim.api.nvim_set_keymap("n", "<c-P>", "<cmd>lua require('fzf-lua').files()<CR>", { noremap = true, silent = true })
|
||||
|
||||
vim.api.nvim_set_keymap(
|
||||
"n",
|
||||
"<c-F>",
|
||||
"<cmd>lua require('fzf-lua').grep_project()<CR>",
|
||||
{ noremap = true, silent = true }
|
||||
)
|
||||
end
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
return{
|
||||
"junegunn/fzf",
|
||||
build = "./install --bin"
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
return {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
config = function()
|
||||
require('gitsigns').setup()
|
||||
end
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
return {
|
||||
'TimUntersberger/neogit',
|
||||
dependencies = {'nvim-lua/plenary.nvim'},
|
||||
config = function()
|
||||
require('neogit').setup {
|
||||
integrations = {
|
||||
diffview = true,
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
return {
|
||||
"kyazdani42/nvim-web-devicons",
|
||||
config = function()
|
||||
require 'nvim-web-devicons'.setup {
|
||||
-- your personnal icons can go here (to override)
|
||||
-- you can specify color or cterm_color instead of specifying both of them
|
||||
-- DevIcon will be appended to `name`
|
||||
override = {
|
||||
zsh = {
|
||||
icon = "",
|
||||
color = "#428850",
|
||||
cterm_color = "65",
|
||||
name = "Zsh"
|
||||
}
|
||||
};
|
||||
-- globally enable default icons (default to false)
|
||||
-- will get overriden by `get_icons` option
|
||||
default = true;
|
||||
}
|
||||
end
|
||||
}
|
@ -0,0 +1 @@
|
||||
return { 'high-moctane/anthraxylon', branch = 'main' }
|
@ -0,0 +1,7 @@
|
||||
return {
|
||||
'ayu-theme/ayu-vim',
|
||||
config = function()
|
||||
-- light, mirage, dark
|
||||
vim.cmd([[ let ayucolor="mirage" ]])
|
||||
end
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
return {
|
||||
'uloco/bluloco.nvim',
|
||||
dependencies = { 'rktjmp/lush.nvim' }
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
return {
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
config = function()
|
||||
-- latte, frappe, macchiato, mocha
|
||||
vim.g.catppuccin_flavour = "frappe"
|
||||
require("catppuccin").setup()
|
||||
end
|
||||
}
|
@ -0,0 +1 @@
|
||||
return { 'dracula/vim', name = 'dracula' }
|
@ -0,0 +1 @@
|
||||
return { 'embark-theme/vim', name = 'embark', branch = 'main' }
|
@ -0,0 +1,5 @@
|
||||
-- You can add your own plugins here or in other files in this directory!
|
||||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
return { import = "custom.plugins.themes" }
|
@ -0,0 +1 @@
|
||||
return { "rebelot/kanagawa.nvim" }
|
@ -0,0 +1 @@
|
||||
return { 'kaicataldo/material.vim', branch = 'main' }
|
@ -0,0 +1 @@
|
||||
return {'savq/melange'}
|
@ -0,0 +1 @@
|
||||
return {'ishan9299/modus-theme-vim'}
|
@ -0,0 +1 @@
|
||||
return {'fxn/vim-monochrome'}
|
@ -0,0 +1 @@
|
||||
return {'haishanh/night-owl.vim'}
|
@ -0,0 +1 @@
|
||||
return {"EdenEast/nightfox.nvim"}
|
@ -0,0 +1,9 @@
|
||||
return {
|
||||
"jesseleite/nvim-noirbuddy",
|
||||
dependencies = { "tjdevries/colorbuddy.nvim", branch = "dev" },
|
||||
config = function()
|
||||
require('noirbuddy').setup {
|
||||
preset = 'miami-nights',
|
||||
}
|
||||
end
|
||||
}
|
@ -0,0 +1 @@
|
||||
return { 'nyoom-engineering/oxocarbon.nvim' }
|
@ -0,0 +1 @@
|
||||
return {'drewtempelmeyer/palenight.vim'}
|
@ -0,0 +1 @@
|
||||
return {'JoosepAlviste/palenightfall.nvim'}
|
@ -0,0 +1 @@
|
||||
return {'matsuuu/pinkmare'}
|
@ -0,0 +1 @@
|
||||
return {'KKPMW/sacredforest-vim'}
|
@ -0,0 +1 @@
|
||||
return {'jacoborus/tender.vim'}
|
@ -0,0 +1 @@
|
||||
return {'folke/tokyonight.nvim'}
|
@ -0,0 +1 @@
|
||||
return { 'danilo-augusto/vim-afterglow'}
|
@ -0,0 +1 @@
|
||||
return { 'pbrisbin/vim-colors-off', branch = 'main' }
|
@ -0,0 +1 @@
|
||||
return {'reedes/vim-colors-pencil'}
|
@ -0,0 +1 @@
|
||||
return {'andreypopp/vim-colors-plain'}
|
@ -0,0 +1 @@
|
||||
return {'altercation/vim-colors-solarized'}
|
@ -0,0 +1 @@
|
||||
return { 'kkga/vim-envy' }
|
@ -0,0 +1,7 @@
|
||||
return { 'gzagatti/vim-leuven-theme',
|
||||
config = function()
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.guicursor = 'a:blinkon0-Cursor,i-ci:ver100'
|
||||
-- vim.cmd([[ colorscheme leuven ]])
|
||||
end
|
||||
}
|
@ -0,0 +1 @@
|
||||
return {'jonathanfilip/vim-lucius'}
|
@ -0,0 +1 @@
|
||||
return { 'bluz71/vim-moonfly-colors', branch = 'cterm-compat' }
|
@ -0,0 +1 @@
|
||||
return {'bluz71/vim-nightfly-colors'}
|
@ -0,0 +1 @@
|
||||
return {'lifepillar/vim-solarized8'}
|
@ -0,0 +1,122 @@
|
||||
return {
|
||||
"preservim/vim-thematic",
|
||||
config = function()
|
||||
vim.cmd([[
|
||||
let g:thematic#themes = {
|
||||
\ 'afterglow' : {
|
||||
\ 'typeface': 'FuraCode Nerd Font Mono Light',
|
||||
\ },
|
||||
\ 'anthraxylon' : {
|
||||
\ },
|
||||
\ 'ayu' : {
|
||||
\ },
|
||||
\ 'bluloco' : {
|
||||
\ },
|
||||
\ 'catppuccin' : {
|
||||
\ },
|
||||
\ 'dracula' : {
|
||||
\ 'typeface': 'FuraCode Nerd Font Mono Light',
|
||||
\ },
|
||||
\ 'embark' : {
|
||||
\ },
|
||||
\ 'kanagawa' : {
|
||||
\ },
|
||||
\ 'leuven' : {
|
||||
\ },
|
||||
\ 'lucius' : {
|
||||
\ },
|
||||
\ 'materiam' : {
|
||||
\ },
|
||||
\ 'melange' : {
|
||||
\ },
|
||||
\ 'modus-operandi' : {
|
||||
\ 'background': 'light',
|
||||
\ },
|
||||
\ 'modus-vivendi' : {
|
||||
\ },
|
||||
\ 'monochrome' : {
|
||||
\ },
|
||||
\ 'moonfly' : {
|
||||
\ },
|
||||
\ 'nightfox' : {
|
||||
\ },
|
||||
\ 'nightfly' : {
|
||||
\ },
|
||||
\ 'night-owl' : {
|
||||
\ },
|
||||
\ 'noirbuddy' : {
|
||||
\ },
|
||||
\ 'off' : {
|
||||
\ 'typeface': 'Cascadia Code Regular',
|
||||
\ },
|
||||
\ 'oxocarbon' : {
|
||||
\ },
|
||||
\ 'palenight' : {
|
||||
\ },
|
||||
\ 'palenightfall' : {
|
||||
\ },
|
||||
\ 'papaya' : {
|
||||
\ 'typeface': 'FuraCode Nerd Font Mono Light',
|
||||
\ },
|
||||
\ 'plain' : {
|
||||
\ },
|
||||
\ 'pencil_dark' :{ 'colorscheme': 'pencil',
|
||||
\ 'background': 'dark',
|
||||
\ 'ruler': 1,
|
||||
\ 'laststatus': 0,
|
||||
\ 'typeface': 'Dank Mono Italic',
|
||||
\ 'font-size': 11,
|
||||
\ 'transparency': 10,
|
||||
\ 'linespace': 8,
|
||||
\ },
|
||||
\ 'pencil_lite' :{ 'colorscheme': 'pencil',
|
||||
\ 'background': 'light',
|
||||
\ 'laststatus': 0,
|
||||
\ 'ruler': 1,
|
||||
\ 'typeface': 'FuraCode Nerd Font Mono Light',
|
||||
\ 'fullscreen': 1,
|
||||
\ 'transparency': 0,
|
||||
\ 'font-size': 11,
|
||||
\ 'linespace': 6,
|
||||
\ },
|
||||
\ 'pinkmare' : {
|
||||
\ },
|
||||
\ 'sacredforest' : {
|
||||
\ 'typeface': 'FuraCode Nerd Font Mono Light',
|
||||
\ },
|
||||
\ 'solarized' : {
|
||||
\ 'typeface': 'Victor Mono Regular Nerd Font Complete Mono',
|
||||
\ },
|
||||
\ 'solarized8' : {
|
||||
\ 'typeface': 'FuraCode Nerd Font Mono Light',
|
||||
\ },
|
||||
\ 'tender' : {
|
||||
\ },
|
||||
\ 'tokyonight' : {
|
||||
\ },
|
||||
\ 'tokyonight-night' : {
|
||||
\ },
|
||||
\ 'tokyonight-storm' : {
|
||||
\ },
|
||||
\ 'tokyonight-day' : {
|
||||
\ },
|
||||
\ 'tokyonight-moon' : {
|
||||
\ },
|
||||
\ }
|
||||
|
||||
|
||||
|
||||
let g:thematic#defaults = {
|
||||
\ 'background': 'dark',
|
||||
\ 'laststatus': 2,
|
||||
\ 'typeface': 'Dank Mono',
|
||||
\ 'font-size': 11,
|
||||
\ 'transparency': 10,
|
||||
\ 'linespace': 2,
|
||||
\ }
|
||||
|
||||
let g:thematic#theme_name = 'catppuccin'
|
||||
]])
|
||||
end
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
return {'HenryNewcomer/vim-theme-papaya'}
|
@ -0,0 +1,6 @@
|
||||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
config = function()
|
||||
require("nvim-autopairs").setup({})
|
||||
end,
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"tpope/vim-sensible"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"tpope/vim-surround"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"tpope/vim-vinegar"
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
return {
|
||||
"folke/zen-mode.nvim",
|
||||
config = function()
|
||||
require("zen-mode").setup {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
}
|
||||
|
||||
end
|
||||
}
|
Loading…
Reference in New Issue