nvim: Add arduino language server wrapping

This commit is contained in:
Marty Oehme 2023-03-19 14:46:26 +01:00
parent 6dd08327d8
commit b8eb02ef6c
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 4 additions and 1 deletions

View file

@ -61,6 +61,9 @@ lsp.configure("pyright", {
client.config.settings.python.pythonPath = python_path client.config.settings.python.pythonPath = python_path
end end
}) })
-- set up arduino with the help of arduino.nvim plugin
lsp.configure("arduino_language_server",
{ on_new_config = require('arduino').on_new_config })
lsp.setup_nvim_cmp({ lsp.setup_nvim_cmp({
sources = { sources = {
{ name = 'path' }, { name = 'nvim_lsp', keyword_length = 2 }, { name = 'path' }, { name = 'nvim_lsp', keyword_length = 2 },

View file

@ -61,7 +61,7 @@ return {
}, { }, {
'junegunn/vim-easy-align', -- Align tables and other alignable things 'junegunn/vim-easy-align', -- Align tables and other alignable things
event = "VeryLazy" event = "VeryLazy"
}, -- statusline }, { 'edKotinsky/Arduino.nvim', ft = 'arduino', config = true }, -- statusline
{ {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true }, requires = { 'kyazdani42/nvim-web-devicons', opt = true },