b275d74db5
Abandon common config for both vim and neovim, as the neovim ecosystem is just diverging more and more. For now the goals is to have an IDE-like neovim config, with a fallback minimal vimrc. As of this config, only the first part has been started
95 lines
2.5 KiB
Lua
95 lines
2.5 KiB
Lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
if not (vim.uv or 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)
|
|
|
|
require("lazy").setup({
|
|
{
|
|
"folke/which-key.nvim",
|
|
init = function()
|
|
vim.o.timeout = true
|
|
vim.o.timeoutlen = 500
|
|
end
|
|
},
|
|
"RRethy/base16-nvim",
|
|
"neovim/nvim-lspconfig",
|
|
"ray-x/lsp_signature.nvim",
|
|
-- {
|
|
-- "itchyny/lightline.vim",
|
|
-- init = function()
|
|
-- vim.g.lightline = {colorscheme = "base16lightline"}
|
|
-- end,
|
|
-- dependencies = {{"nolo18/base16lightline"}},
|
|
-- },
|
|
{
|
|
'nvim-lualine/lualine.nvim',
|
|
dependencies = { 'nvim-tree/nvim-web-devicons' }
|
|
},
|
|
"beyondmarc/opengl.vim",
|
|
{
|
|
"arrufat/vala.vim",
|
|
init = function()
|
|
vim.g.vala_syntax_folding_enabled = 0
|
|
end
|
|
},
|
|
'tikhomirov/vim-glsl',
|
|
'jamessan/vim-gnupg',
|
|
'https://git.sr.ht/~sircmpwn/hare.vim',
|
|
'romainl/vim-cool',
|
|
{
|
|
'machakann/vim-highlightedyank',
|
|
init = function()
|
|
vim.g.highlightedyank_highlight_duration = 200
|
|
end
|
|
},
|
|
{
|
|
'tcbbd/detectindent',
|
|
init = function()
|
|
vim.g.detectindent_preferred_indent=4
|
|
vim.g.detectindent_autodetect=1
|
|
end
|
|
},
|
|
{
|
|
'lambdalisue/suda.vim',
|
|
-- Allow writing of unwritable file with sudo, until neovim#1716 is fixed
|
|
init = function()
|
|
vim.g.suda_smart_edit = 1
|
|
end
|
|
},
|
|
'neovim/nvim-lspconfig',
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
'hrsh7th/cmp-buffer',
|
|
'hrsh7th/cmp-path',
|
|
'hrsh7th/cmp-cmdline',
|
|
'hrsh7th/nvim-cmp',
|
|
|
|
'L3MON4D3/LuaSnip',
|
|
'saadparwaiz1/cmp_luasnip',
|
|
{
|
|
'nvim-telescope/telescope.nvim',
|
|
branch = "0.1.x",
|
|
dependencies = {{"nvim-lua/plenary.nvim"}}
|
|
},
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
build = ":TSUpdate",
|
|
config = function ()
|
|
local configs = require("nvim-treesitter.configs")
|
|
|
|
configs.setup({
|
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "javascript", "html" },
|
|
sync_install = false,
|
|
highlight = { enable = true },
|
|
indent = { enable = true },
|
|
})
|
|
end
|
|
}
|
|
})
|