summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua76
1 files changed, 76 insertions, 0 deletions
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..ffa7c8c
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,76 @@
+-- Use of lazy
+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", -- latest stable release
+ lazypath,
+ })
+end
+vim.opt.rtp:prepend(lazypath)
+
+-- lazy setup
+require("lazy").setup({
+ -- Loading theme
+ { "rebelot/kanagawa.nvim",
+ -- "ellisonleao/gruvbox.nvim",
+ config = function()
+ require("theme/kanagawa")
+ end,},
+
+ -- LSP
+ {
+ {'VonHeikemen/lsp-zero.nvim',
+ config = function()
+ require("autocomplete/autocomplete")
+ end
+ },
+ 'neovim/nvim-lspconfig',
+
+
+ {'williamboman/mason.nvim',
+ config = function()
+ require('mason').setup()
+ end},
+ 'williamboman/mason-lspconfig.nvim' , -- Optional
+
+ -- Autocompletion
+ 'hrsh7th/nvim-cmp' , -- Required
+ 'hrsh7th/cmp-nvim-lsp' , -- Required
+ 'hrsh7th/cmp-buffer' , -- Optional
+ 'hrsh7th/cmp-path' , -- Optional
+ 'saadparwaiz1/cmp_luasnip' , -- Optional
+ 'hrsh7th/cmp-nvim-lua' , -- Optional
+
+ -- Snippets
+ 'L3MON4D3/LuaSnip' , -- Required
+ 'rafamadriz/friendly-snippets' , -- Optional
+ },
+ {"xiyaowong/transparent.nvim",
+ config = function()
+ enable = true
+ end},
+
+ {
+ "nvim-treesitter/nvim-treesitter",
+ config = function()
+ require('treesitter/treesitter')
+ end
+ },
+
+ {
+ 'nvim-lualine/lualine.nvim',
+ -- dependencies = {'nvim-tree/nvim-web-devicons'},
+ config = function()
+ require('statusline/statusline')
+ end
+ },
+ {"rose-pine/neovim"},
+ {"tiagovla/tokyodark.nvim"}
+})
+
+-- nvim settings
+require("nvim_settings/set")
+require("nvim_settings/remap")