Fix an issue with vscode nvim setup
This commit is contained in:
parent
e178806339
commit
4fe6c41e67
|
@ -3,6 +3,17 @@
|
|||
-- [[ Install `lazy.nvim` plugin manager ]]
|
||||
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
|
||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||
|
||||
-- NOTE: for windows we need to make sure we're pointing towards the
|
||||
-- correct path
|
||||
if vim.fn.has "win32" == 1 or vim.fn.has "win64" == 1 then
|
||||
package.path = "%localappdata%\\nvim-data\\" .. package.path
|
||||
lazypath = vim.fn.stdpath 'data' .. '\\lazy\\lazy.nvim'
|
||||
-- lazypath ='C:\\Program Files\\Neovim\\bin\\lua' .. '\\lazy\\lazy.nvim'
|
||||
-- print('C:\\Program Files\\Neovim\\bin\\lua')
|
||||
end
|
||||
|
||||
-- If lazy.nvim doesn't exist, clone it
|
||||
if not vim.uv.fs_stat(lazypath) then
|
||||
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
|
||||
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
|
||||
|
@ -12,9 +23,9 @@ if not vim.uv.fs_stat(lazypath) then
|
|||
end ---@diagnostic disable-next-line: undefined-field
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
|
||||
-- Lazy
|
||||
require('lazy').setup({
|
||||
spec = {
|
||||
{ -- Collection of various small independent plugins/modules
|
||||
'echasnovski/mini.nvim',
|
||||
config = function()
|
||||
|
@ -36,5 +47,6 @@ require('lazy').setup({
|
|||
-- For more Mini.nvim stuff:
|
||||
-- Check out: https://github.com/echasnovski/mini.nvim
|
||||
end,
|
||||
}
|
||||
},
|
||||
})
|
Loading…
Reference in New Issue