···11-local ensure_packer = function()
22- local fn = vim.fn
33- local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
44- if fn.empty(fn.glob(install_path)) > 0 then
55- fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
66- vim.cmd([[packadd packer.nvim]])
77- return true
88- end
99- return false
11+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
22+if not vim.loop.fs_stat(lazypath) then
33+ vim.fn.system({
44+ "git",
55+ "clone",
66+ "--filter=blob:none",
77+ "https://github.com/folke/lazy.nvim.git",
88+ "--branch=stable", -- latest stable release
99+ lazypath,
1010+ })
1011end
1111-1212-local packer_bootstrap = ensure_packer()
1212+vim.opt.rtp:prepend(lazypath)
13131414+vim.g.mapleader = " "
1415--
1516-- This file can be loaded by calling `lua require('plugins')` from your init.vim
16171717--- Only required if you have packer configured as `opt`
1818-vim.cmd([[packadd packer.nvim]])
1818+return require("lazy").setup({
19192020-return require("packer").startup(function(use)
2121- -- Packer can manage itself
2222- use("wbthomason/packer.nvim")
2323-2424- use("ldelossa/litee.nvim")
2020+ 'ldelossa/litee.nvim',
25212622 --color scheme
2727- use("rebelot/kanagawa.nvim")
2828- use("gruvbox-community/gruvbox")
2929- -- use 'joshdick/onedark.vim'
3030- use({
2323+ 'rebelot/kanagawa.nvim',
2424+ 'gruvbox-community/gruvbox',
2525+ -- 'joshdick/onedark.vim',
2626+ {
3127 "ldelossa/gh.nvim",
3232- requires = { { "ldelossa/litee.nvim" } },
3333- })
2828+ dependencies = { { "ldelossa/litee.nvim" } },
2929+ },
34303535- use({
3131+ {
3632 "VonHeikemen/lsp-zero.nvim",
3737- requires = {
3333+ dependencies = {
3834 -- LSP Support
3935 { "neovim/nvim-lspconfig" },
4036 { "williamboman/mason.nvim" },
···5147 -- Snippets
5248 { "L3MON4D3/LuaSnip" },
5349 { "rafamadriz/friendly-snippets" },
5454- -- - Removed /Users/sspaeti/.local/share/nvim/site/pack/packer/start/lspkind-nvim
5555- -- - Removed /Users/sspaeti/.local/share/nvim/site/pack/packer/start/vim-vsnip
5656- -- - Removed /Users/sspaeti/.local/share/nvim/site/pack/packer/start/cmp-vsnip
5750 },
5858- })
5151+ },
59526053 --rust
6161- use("neovim/nvim-lspconfig")
6262- use("simrat39/rust-tools.nvim")
6363- use("puremourning/vimspector")
6464- use({ "akinsho/bufferline.nvim", tag = "v3.*", requires = "nvim-tree/nvim-web-devicons" })
6565- -- use 'simrat39/symbols-outline.nvim'
6666- use("goolord/alpha-nvim") --does not work!?
5454+ 'neovim/nvim-lspconfig',
5555+ 'simrat39/rust-tools.nvim',
5656+ 'puremourning/vimspector',
5757+ { "akinsho/bufferline.nvim", dependencies = "nvim-tree/nvim-web-devicons" },
5858+ -- 'simrat39/symbols-outline.nvim',
5959+ 'goolord/alpha-nvim', --does not work!?
67606868- use({
6161+ {
6962 "nvim-telescope/telescope.nvim",
7063 tag = "0.1.0",
7164 -- or , branch = '0.1.x',
7272- requires = { { "nvim-lua/plenary.nvim" } },
7373- })
6565+ dependencies = { { "nvim-lua/plenary.nvim" } },
6666+ },
74677568 --theme
7676- use("sheerun/vim-polyglot")
7777- use("christoomey/vim-system-copy")
7878- --use 'valloric/youcompleteme'
7979- use("tpope/vim-surround") -- Surrounding ysw)
6969+ 'sheerun/vim-polyglot',
7070+ 'christoomey/vim-system-copy',
7171+ --'valloric/youcompleteme',
7272+ 'tpope/vim-surround', -- Surrounding ys',
80738174 --Text Objects:
8275 --Utilities for user-defined text objects
8383- use("kana/vim-textobj-user")
7676+ 'kana/vim-textobj-user',
8477 --Text objects for indentation levels
8585- use("kana/vim-textobj-indent")
7878+ 'kana/vim-textobj-indent',
8679 --Text objects for Python
8787- use("bps/vim-textobj-python")
8080+ 'bps/vim-textobj-python',
8881 --preview CSS colors inline
8989- -- use 'ap/vim-css-color'
9090- use("norcalli/nvim-colorizer.lua")
8282+ -- 'ap/vim-css-color',
8383+ 'norcalli/nvim-colorizer.lua',
9184 -- comment healper
92859393- -- use 'preservim/nerdcommenter'
9494- use("tpope/vim-commentary")
8686+ -- 'preservim/nerdcommenter',
8787+ 'tpope/vim-commentary',
95889689 -- should be installed out of the box by neovim?
9797- use("nvim-treesitter/nvim-treesitter", { run = ":TSUpdate" })
9898- use("nvim-treesitter/playground")
9090+ {
9191+ 'nvim-treesitter/nvim-treesitter',
9292+ build = function()
9393+ pcall(require('nvim-treesitter.install').update { with_sync = true })
9494+ end,
9595+ dependencies = {
9696+ 'nvim-treesitter/nvim-treesitter-textobjects' ,
9797+ }
9898+ },
9999100100- --use 'ambv/black'
101101- use("psf/black")
102102- use("tpope/vim-fugitive")
103103- use("tpope/vim-rhubarb")
100100+ --'ambv/black',
101101+ 'psf/black',
102102+ 'tpope/vim-fugitive',
103103+ 'tpope/vim-rhubarb',
104104105105- use("kdheepak/lazygit.nvim")
106106- use("sindrets/diffview.nvim") --nvim gitdiff
107107- use("mhinz/vim-signify") --highlighing changes not commited to last commit
108108- use("APZelos/blamer.nvim") --gitlens blame style
105105+ 'kdheepak/lazygit.nvim',
106106+ 'sindrets/diffview.nvim', --nvim gitdi',
107107+ 'mhinz/vim-signify', --highlighing changes not commited to last comm',
108108+ 'APZelos/blamer.nvim', --gitlens blame sty',
109109 -- -- telescope requirements...
110110- -- use 'nvim-lua/popup.nvim'
111111- use("nvim-lua/plenary.nvim")
112112- use("ThePrimeagen/harpoon")
113113- use("jose-elias-alvarez/null-ls.nvim")
114114- -- use 'nvim-telescope/telescope.nvim'
115115- -- use 'nvim-telescope/telescope-fzy-native.nvim'
110110+ -- 'nvim-lua/popup.nvim',
111111+ 'nvim-lua/plenary.nvim',
112112+ 'ThePrimeagen/harpoon',
113113+ 'jose-elias-alvarez/null-ls.nvim',
114114+ -- 'nvim-telescope/telescope.nvim',
115115+ -- 'nvim-telescope/telescope-fzy-native.nvim',
116116 --terminal
117117- use("voldikss/vim-floaterm")
117117+ 'voldikss/vim-floaterm',
118118119119 -- search
120120- use("dyng/ctrlsf.vim")
121121- use({ "junegunn/fzf", run = ":call fzf#install()" })
122122- use({ "junegunn/fzf.vim" })
120120+ 'dyng/ctrlsf.vim',
121121+ { "junegunn/fzf", build = ":call fzf#install()" },
122122+ 'junegunn/fzf.vim',
123123124124 --File Navigation
125125- use("nvim-lualine/lualine.nvim")
126126- use("christoomey/vim-tmux-navigator")
125125+ 'nvim-lualine/lualine.nvim',
126126+ 'christoomey/vim-tmux-navigator',
127127128128- -- use 'akinsho/bufferline.nvim', { 'tag': 'v2.*' }
129129- use("kevinhwang91/rnvimr") --replaces 'francoiscabrol/ranger.vim'
128128+ -- 'akinsho/bufferline.nvim', { 'tag': 'v2.*', }
129129+ 'kevinhwang91/rnvimr',
130130 --nerdtree in lua
131131- use("kyazdani42/nvim-web-devicons") -- optional, for file icons
132132- use("kyazdani42/nvim-tree.lua")
133133- use("lukas-reineke/indent-blankline.nvim")
134134- use("mbbill/undotree")
131131+ -- 'kyazdani42/nvim-web-devicons', -- optional, for file ico',
132132+ 'kyazdani42/nvim-tree.lua',
133133+ 'lukas-reineke/indent-blankline.nvim',
134134+ 'mbbill/undotree',
135135136136 -- prettier
137137- use("sbdchd/neoformat")
137137+ 'sbdchd/neoformat',
138138139139 --support for go to defintion and autocompletion
140140- --use 'davidhalter/jedi-vim'
141141- -- use 'neoclide/coc.nvim', {'branch': 'release'}
142142- -- use("jmcantrell/vim-virtualenv") --very slow: check if still needed?
140140+ --'davidhalter/jedi-vim',
141141+ -- 'neoclide/coc.nvim', {'branch': 'release',}
142142+ -- "jmcantrell/vim-virtualenv", --very slow: check if still needed?
143143144144- -- use({
144144+ -- {
145145 -- "folke/which-key.nvim",
146146 -- config = function()
147147 -- require("which-key").setup({})
148148 -- end,
149149- -- })
150150- use("github/copilot.vim")
149149+ -- },
150150+ 'github/copilot.vim',
151151 --Markdown (or any Outline)
152152- use("simrat39/symbols-outline.nvim")
153153- use("stevearc/aerial.nvim")
154154- use {
152152+ 'simrat39/symbols-outline.nvim',
153153+ 'stevearc/aerial.nvim',
154154+ {
155155 "folke/zen-mode.nvim",
156156 config = function()
157157 require("zen-mode").setup {
···160160 -- refer to the configuration section below
161161 }
162162 end
163163- }
163163+ },
164164 -- install without yarn or npm
165165- use({
165165+ {
166166 "iamcco/markdown-preview.nvim",
167167- run = function() vim.fn["mkdp#util#install"]() end,
168168- })
167167+ build = function() vim.fn["mkdp#util#install"]() end,
168168+ },
169169170170- -- use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
170170+ -- use({ "iamcco/markdown-preview.nvim", build = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
171171 ----Obsidian
172172 -- (optional) recommended for syntax highlighting, folding, etc if you're not using nvim-treesitter:
173173- use("preservim/vim-markdown")
174174- use("godlygeek/tabular") -- needed by 'preservim/vim-markdown'
175175- use("epwalsh/obsidian.nvim") --using neovim with the Obsidian vault
176176- -- use 'vimwiki/vimwiki'
173173+ 'preservim/vim-markdown',
174174+ 'godlygeek/tabular', -- needed by 'preservim/vim-markdown'
175175+ 'epwalsh/obsidian.nvim', --using neovim with the Obsidian vau'
176176+ -- 'vimwiki/vimwiki',
177177178178 -- connect with Obsidian Second Brain
179179 -- vim.opt.nocompatible = true --Recommende for VimWiki
180180- --use({
180180+ --{
181181 -- "vimwiki/vimwiki"
182182 -- -- config = function()
183183 -- -- vim.g.vimwiki_list = {
···189189 -- -- }
190190 -- --vim.g.vimwiki_global_ext = 0 --only mark files in the second brain as vim viki, rest are standard markdown
191191 -- -- end,
192192- --})
192192+ --},
193193194194 --dbt
195195- -- use 'lepture/vim-jinja' --needed for dbt below but errors in hugo htmls...
196196- use("pedramnavid/dbt.nvim")
197197- use("glench/vim-jinja2-syntax")
198198- -- use 'ivanovyordan/dbt.vim'
195195+ -- 'lepture/vim-jinja', --needed for dbt below but errors in hugo htmls...
196196+ 'pedramnavid/dbt.nvim',
197197+ 'glench/vim-jinja2-syntax',
198198+ -- 'ivanovyordan/dbt.vim',
199199200200 -- Java
201201- --use("mfussenegger/nvim-jdtls") --removed until https://github.com/neovim/neovim/issues/20795 is fixed
201201+ --"mfussenegger/nvim-jdtls", --removed until https://github.com/neovim/neovim/issues/20795 is fixed
202202 --use nvim in browser
203203- use({
203203+ {
204204 "glacambre/firenvim",
205205- run = function()
205205+ build = function()
206206 vim.fn["firenvim#install"](0)
207207 end,
208208- })
208208+ },
209209 --to delete later
210210- use("dstein64/vim-startuptime")
211211-end)
210210+ 'dstein64/vim-startuptime',
211211+})
-1
nvim/lua/sspaeti/set.lua
···1818--set `filetype` in lua
1919vim.cmd("filetype plugin indent on")
20202121-vim.g.mapleader = " "
2221vim.opt.ruler = true -- show the cursor position all the time
2322vim.opt.showcmd = true -- display incomplete commands
2423vim.opt.laststatus = 3 -- 3: Only show global status line in acitve window 2: Always display the status line