From b917b82fdd914e8d18d80ec1b7c8b87d66ceeb9a Mon Sep 17 00:00:00 2001 From: Aotrix Date: Wed, 14 Feb 2024 14:49:35 +0100 Subject: added nvim config --- init.lua | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 init.lua (limited to 'init.lua') 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") -- cgit v1.2.3