-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathminimal_config.lua
More file actions
56 lines (47 loc) · 1.38 KB
/
Copy pathminimal_config.lua
File metadata and controls
56 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
-- pick a temp root
local tmp = vim.loop.os_tmpdir() .. '/nvim-temp'
vim.env.XDG_DATA_HOME = tmp .. '/data'
vim.env.XDG_CACHE_HOME = tmp .. '/cache'
vim.env.XDG_STATE_HOME = tmp .. '/state'
local lazypath = vim.env.XDG_DATA_HOME .. '/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',
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
local plugins = {
{
'anurag3301/nvim-platformio.lua',
-- Dependencies are lazy-loaded by default unless specified otherwise.
dependencies = {
{ 'akinsho/toggleterm.nvim' },
{ 'nvim-telescope/telescope.nvim' },
{ 'nvim-telescope/telescope-ui-select.nvim' },
{ 'nvim-lua/plenary.nvim' },
{ 'folke/which-key.nvim' },
{ 'nvim-treesitter/nvim-treesitter' },
},
},
}
require('lazy').setup(plugins, {
install = {
missing = true,
},
})
vim.opt['number'] = true
vim.g.pioConfig = {
lsp = 'clangd', -- value: clangd | ccls
clangd_source = 'ccls', -- value: ccls | compiledb, For detailed explation check :help platformio-clangd_source
menu_key = '<leader>\\', -- replace this menu key to your convenience
debug = false, -- enable debug messages
}
local pok, platformio = pcall(require, 'platformio')
if pok then
platformio.setup(vim.g.pioConfig)
end