Skip to content

Instantly share code, notes, and snippets.

@hilmiwicak
Last active May 15, 2023 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hilmiwicak/031e9045bbad76e04afb70e68552d6e3 to your computer and use it in GitHub Desktop.
Save hilmiwicak/031e9045bbad76e04afb70e68552d6e3 to your computer and use it in GitHub Desktop.
init.lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
require("lazy").setup({
root = lazy_plug_path,
diff = {
cmd = "diffview.nvim"
},
{
"github/copilot.vim",
lazy = false,
init = function()
vim.g.copilot_filetypes = {
TelescopePrompt = false,
markdown = true,
yaml = true,
}
end,
},
{
"mattn/emmet-vim",
ft = { "html", "php", "xml" },
init = function()
vim.g.user_emmet_leader_key = "<M-m>"
local user_emmet_settings = {
[ "php" ] = {
[ "extends" ] = "html",
[ "filters" ] = "c",
},
[ "xml" ] = {
[ "extends" ] = "html",
},
}
vim.g.user_emmet_settings = user_emmet_settings
end,
},
{ "jwalton512/vim-blade", lazy = false },
{ "mhinz/vim-signify", },
{ "tpope/vim-surround", lazy = false },
{ "neovim/nvim-lspconfig" },
{
"hrsh7th/nvim-cmp",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-path",
},
},
{ "hrsh7th/cmp-nvim-lsp" },
{ "hrsh7th/cmp-path" },
{ "saadparwaiz1/cmp_luasnip" },
{
"L3MON4D3/LuaSnip",
dependencies = {
"saadparwaiz1/cmp_luasnip",
},
},
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"windwp/nvim-ts-autotag",
},
},
{
"windwp/nvim-autopairs",
config = function()
require("nvim-autopairs").setup({
disable_filetype = { "TelescopePrompt", "vim" },
})
end,
},
{ "windwp/nvim-ts-autotag" },
{
"numToStr/Comment.nvim",
config = function()
require("Comment").setup({
toggler = {
line = "gcc",
block = "gcb",
},
})
end,
},
{ "catppuccin/nvim", as = "catppuccin" },
{ "rmehri01/onenord.nvim", branch = "main" },
{
"nvim-lua/plenary.nvim",
lazy = false,
init = function()
require("plenary")
end,
},
{ "nvim-telescope/telescope.nvim" },
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
{ "nvim-telescope/telescope-live-grep-args.nvim" },
{ "nvim-telescope/telescope-ui-select.nvim" },
{ "ThePrimeagen/harpoon" },
{
"sindrets/diffview.nvim",
lazy = false,
init = function()
require("diffview").setup({
win_config = {
position = "right",
},
})
end,
},
{
"phaazon/hop.nvim",
config = function()
require("hop").setup({
keys = "abcdeghijklmnopqrstuvwxyz",
quit_key = "f",
})
end,
},
{ "lukas-reineke/indent-blankline.nvim" },
{ "sbdchd/neoformat" },
{
"shortcuts/no-neck-pain.nvim",
config = function()
require("no-neck-pain").setup()
end,
},
{
"pwntester/octo.nvim",
config = function()
require("octo").setup()
end,
},
{
"nvim-tree/nvim-tree.lua",
dependencies = {
"kyazdani42/nvim-web-devicons",
},
config = function()
require("scripts.nvim-tree")
end,
},
{
"mbbill/undotree",
init = function()
vim.g.undotree_WindowLayout = 3
end,
},
{
"kyazdani42/nvim-web-devicons",
config = function()
require("nvim-web-devicons").setup({
default = true,
})
end,
},
{ "tamton-aquib/zone.nvim" },
})
require("init")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment