Automated update
This commit is contained in:
6
nvim/after/ftplugin/c.lua
Normal file
6
nvim/after/ftplugin/c.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
function c()
|
||||
nn('<c-n>', ":w<cr>:!gcc '%' -o '%:r' -lm -O3 && ./'%:r'<cr>")
|
||||
nn('<c-p>', ":w<cr>:make<cr>")
|
||||
end
|
||||
|
||||
c()
|
||||
@@ -157,6 +157,7 @@ packer.startup(function(use)
|
||||
run = ':TSUpdate',
|
||||
config = function()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = { "go", "lua", "python", "rust" }, -- add Go and any other languages you need
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
@@ -184,6 +185,22 @@ end)
|
||||
|
||||
-- LSP settings
|
||||
local lspconfig = require('lspconfig')
|
||||
-- Set up 'gopls' and other language servers
|
||||
lspconfig.gopls.setup {
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
gopls = {
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
shadow = true,
|
||||
},
|
||||
staticcheck = true,
|
||||
},
|
||||
},
|
||||
init_options = {
|
||||
verboseOutput = true,
|
||||
}
|
||||
}
|
||||
local on_attach = function(client, bufnr)
|
||||
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
||||
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
|
||||
@@ -212,7 +229,7 @@ local on_attach = function(client, bufnr)
|
||||
end
|
||||
|
||||
-- Enable the following language servers
|
||||
local servers = { 'pyright', 'tsserver', 'gopls', 'rust_analyzer' }
|
||||
local servers = { 'pyright', 'ts_ls', 'gopls', 'rust_analyzer' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
@@ -263,6 +280,33 @@ local associations = {
|
||||
{ '*.ino' , { arduino } },
|
||||
}
|
||||
|
||||
-- Create an augroup for Rust-specific settings
|
||||
vim.api.nvim_create_augroup('RustGroup', { clear = true })
|
||||
|
||||
-- Define autocmds that apply only for Rust files
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
group = 'RustGroup',
|
||||
pattern = 'rust',
|
||||
callback = function()
|
||||
-- Keybinding for running rustfmt (formatting)
|
||||
vim.api.nvim_buf_set_keymap(0, 'n', '<leader>rf', ':lua vim.lsp.buf.format()<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Keybinding for running Clippy (linting)
|
||||
vim.api.nvim_buf_set_keymap(0, 'n', '<leader>rc', ':!cargo clippy<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Keybinding to build Rust project
|
||||
vim.api.nvim_buf_set_keymap(0, 'n', '<leader>rb', ':!cargo build<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Keybinding to run Rust project
|
||||
vim.api.nvim_buf_set_keymap(0, 'n', '<leader>rr', ':!cargo run<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Show diagnostics (errors/warnings) in Rust
|
||||
vim.api.nvim_buf_set_keymap(0, 'n', '<leader>rd', ':lua vim.diagnostic.open_float()<CR>', { noremap = true, silent = true })
|
||||
|
||||
print("Rust-specific keybindings loaded!")
|
||||
end
|
||||
})
|
||||
|
||||
for _, assoc in ipairs(associations) do
|
||||
local pattern = assoc[1]
|
||||
local callbacks = assoc[2]
|
||||
|
||||
@@ -49,8 +49,8 @@ local function save_profiles(threshold)
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/root/.cache/nvim/packer_hererocks/2.1.1716656478/share/lua/5.1/?.lua;/root/.cache/nvim/packer_hererocks/2.1.1716656478/share/lua/5.1/?/init.lua;/root/.cache/nvim/packer_hererocks/2.1.1716656478/lib/luarocks/rocks-5.1/?.lua;/root/.cache/nvim/packer_hererocks/2.1.1716656478/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/root/.cache/nvim/packer_hererocks/2.1.1716656478/lib/lua/5.1/?.so"
|
||||
local package_path_str = "/home/klein/.cache/nvim/packer_hererocks/2.1.1716656478/share/lua/5.1/?.lua;/home/klein/.cache/nvim/packer_hererocks/2.1.1716656478/share/lua/5.1/?/init.lua;/home/klein/.cache/nvim/packer_hererocks/2.1.1716656478/lib/luarocks/rocks-5.1/?.lua;/home/klein/.cache/nvim/packer_hererocks/2.1.1716656478/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/home/klein/.cache/nvim/packer_hererocks/2.1.1716656478/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
@@ -77,154 +77,134 @@ _G.packer_plugins = {
|
||||
["Comment.nvim"] = {
|
||||
config = { "\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/Comment.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/Comment.nvim",
|
||||
url = "https://github.com/numToStr/Comment.nvim"
|
||||
},
|
||||
LuaSnip = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
||||
url = "https://github.com/L3MON4D3/LuaSnip"
|
||||
},
|
||||
["cmp-buffer"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
||||
},
|
||||
["cmp-cmdline"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
||||
url = "https://github.com/hrsh7th/cmp-cmdline"
|
||||
},
|
||||
["cmp-nvim-lsp"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
||||
},
|
||||
["cmp-path"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/cmp-path",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/cmp-path",
|
||||
url = "https://github.com/hrsh7th/cmp-path"
|
||||
},
|
||||
cmp_luasnip = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
|
||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
||||
},
|
||||
["gitsigns.nvim"] = {
|
||||
config = { "\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rgitsigns\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
||||
url = "https://github.com/lewis6991/gitsigns.nvim"
|
||||
},
|
||||
gruvbox = {
|
||||
config = { "\27LJ\2\n7\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\24colorscheme gruvbox\bcmd\bvim\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/gruvbox",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/gruvbox",
|
||||
url = "https://github.com/morhetz/gruvbox"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
config = { "\27LJ\2\n<EFBFBD>\5\0\0\a\0\29\0)6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\a\0005\4\6\0=\4\b\0035\4\t\0005\5\n\0005\6\v\0=\6\f\5>\5\3\4=\4\r\0035\4\14\0=\4\15\0035\4\16\0=\4\17\0035\4\18\0=\4\19\0035\4\20\0=\4\21\3=\3\22\0025\3\23\0004\4\0\0=\4\b\0034\4\0\0=\4\r\0035\4\24\0=\4\15\0035\4\25\0=\4\17\3=\3\26\0024\3\0\0=\3\27\0024\3\0\0=\3\28\2B\0\2\1K\0\1\0\15extensions\ftabline\22inactive_sections\1\2\0\0\rlocation\1\2\0\0\rfilename\1\0\4\14lualine_a\0\14lualine_c\0\14lualine_x\0\14lualine_b\0\rsections\14lualine_z\1\2\0\0\rlocation\14lualine_y\1\2\0\0\rprogress\14lualine_x\1\4\0\0\rencoding\15fileformat\rfiletype\14lualine_c\1\2\0\0\rfilename\14lualine_b\fsources\1\3\0\0\rnvim_lsp\bcoc\1\2\1\0\16diagnostics\fsources\0\1\3\0\0\vbranch\tdiff\14lualine_a\1\0\6\14lualine_y\0\14lualine_x\0\14lualine_b\0\14lualine_a\0\14lualine_c\0\14lualine_z\0\1\2\0\0\tmode\foptions\1\0\5\ftabline\0\15extensions\0\foptions\0\22inactive_sections\0\rsections\0\1\0\4\23section_separators\5\ntheme\fgruvbox\18icons_enabled\2\25component_separators\6|\nsetup\flualine\frequire\0" },
|
||||
config = { "\27LJ\2\n<EFBFBD>\5\0\0\a\0\29\0)6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\a\0005\4\6\0=\4\b\0035\4\t\0005\5\n\0005\6\v\0=\6\f\5>\5\3\4=\4\r\0035\4\14\0=\4\15\0035\4\16\0=\4\17\0035\4\18\0=\4\19\0035\4\20\0=\4\21\3=\3\22\0025\3\23\0004\4\0\0=\4\b\0034\4\0\0=\4\r\0035\4\24\0=\4\15\0035\4\25\0=\4\17\3=\3\26\0024\3\0\0=\3\27\0024\3\0\0=\3\28\2B\0\2\1K\0\1\0\15extensions\ftabline\22inactive_sections\1\2\0\0\rlocation\1\2\0\0\rfilename\1\0\4\14lualine_c\0\14lualine_x\0\14lualine_b\0\14lualine_a\0\rsections\14lualine_z\1\2\0\0\rlocation\14lualine_y\1\2\0\0\rprogress\14lualine_x\1\4\0\0\rencoding\15fileformat\rfiletype\14lualine_c\1\2\0\0\rfilename\14lualine_b\fsources\1\3\0\0\rnvim_lsp\bcoc\1\2\1\0\16diagnostics\fsources\0\1\3\0\0\vbranch\tdiff\14lualine_a\1\0\6\14lualine_c\0\14lualine_z\0\14lualine_x\0\14lualine_y\0\14lualine_b\0\14lualine_a\0\1\2\0\0\tmode\foptions\1\0\5\foptions\0\rsections\0\15extensions\0\ftabline\0\22inactive_sections\0\1\0\4\25component_separators\6|\23section_separators\5\ntheme\fgruvbox\18icons_enabled\2\nsetup\flualine\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||
},
|
||||
["markdown-preview.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim",
|
||||
url = "https://github.com/iamcco/markdown-preview.nvim"
|
||||
},
|
||||
["nvim-autopairs"] = {
|
||||
config = { "\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
|
||||
url = "https://github.com/windwp/nvim-autopairs"
|
||||
},
|
||||
["nvim-cmp"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||
url = "https://github.com/neovim/nvim-lspconfig"
|
||||
},
|
||||
["nvim-tree.lua"] = {
|
||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14nvim-tree\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
|
||||
url = "https://github.com/kyazdani42/nvim-tree.lua"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
config = { "\27LJ\2\n<EFBFBD>\1\0\0\5\0\f\0\0156\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\6\0=\3\a\0025\3\t\0005\4\b\0=\4\n\3=\3\v\2B\0\2\1K\0\1\0\16textobjects\vselect\1\0\1\vselect\0\1\0\1\venable\2\26incremental_selection\1\0\1\venable\2\14highlight\1\0\3\16textobjects\0\14highlight\0\26incremental_selection\0\1\0\1\venable\2\nsetup\28nvim-treesitter.configs\frequire\0" },
|
||||
config = { "\27LJ\2\n<EFBFBD>\2\0\0\5\0\14\0\0176\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\6\0=\3\a\0025\3\b\0=\3\t\0025\3\v\0005\4\n\0=\4\f\3=\3\r\2B\0\2\1K\0\1\0\16textobjects\vselect\1\0\1\vselect\0\1\0\1\venable\2\26incremental_selection\1\0\1\venable\2\14highlight\1\0\1\venable\2\21ensure_installed\1\0\4\26incremental_selection\0\16textobjects\0\21ensure_installed\0\14highlight\0\1\5\0\0\ago\blua\vpython\trust\nsetup\28nvim-treesitter.configs\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
url = "https://github.com/wbthomason/packer.nvim"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14telescope\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||
},
|
||||
vimwiki = {
|
||||
config = { "\27LJ\2\nw\0\0\3\0\4\0\a6\0\0\0009\0\1\0004\1\3\0005\2\3\0>\2\1\1=\1\2\0K\0\1\0\1\0\4\bext\b.md\vsyntax\rmarkdown\19diary_rel_path\vdiary/\tpath\15~/vimwiki/\17vimwiki_list\6g\bvim\0" },
|
||||
config = { "\27LJ\2\nw\0\0\3\0\4\0\a6\0\0\0009\0\1\0004\1\3\0005\2\3\0>\2\1\1=\1\2\0K\0\1\0\1\0\4\vsyntax\rmarkdown\19diary_rel_path\vdiary/\bext\b.md\tpath\15~/vimwiki/\17vimwiki_list\6g\bvim\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/vimwiki",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/vimwiki",
|
||||
url = "https://github.com/vimwiki/vimwiki"
|
||||
},
|
||||
["which-key.nvim"] = {
|
||||
config = { "\27LJ\2\n7\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\14which-key\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/root/.local/share/nvim/site/pack/packer/start/which-key.nvim",
|
||||
path = "/home/klein/.local/share/nvim/site/pack/packer/start/which-key.nvim",
|
||||
url = "https://github.com/folke/which-key.nvim"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
-- Config for: nvim-tree.lua
|
||||
time([[Config for nvim-tree.lua]], true)
|
||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14nvim-tree\frequire\0", "config", "nvim-tree.lua")
|
||||
time([[Config for nvim-tree.lua]], false)
|
||||
-- Config for: Comment.nvim
|
||||
time([[Config for Comment.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
|
||||
time([[Config for Comment.nvim]], false)
|
||||
-- Config for: vimwiki
|
||||
time([[Config for vimwiki]], true)
|
||||
try_loadstring("\27LJ\2\nw\0\0\3\0\4\0\a6\0\0\0009\0\1\0004\1\3\0005\2\3\0>\2\1\1=\1\2\0K\0\1\0\1\0\4\bext\b.md\vsyntax\rmarkdown\19diary_rel_path\vdiary/\tpath\15~/vimwiki/\17vimwiki_list\6g\bvim\0", "config", "vimwiki")
|
||||
time([[Config for vimwiki]], false)
|
||||
-- Config for: telescope.nvim
|
||||
time([[Config for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14telescope\frequire\0", "config", "telescope.nvim")
|
||||
time([[Config for telescope.nvim]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n<EFBFBD>\5\0\0\a\0\29\0)6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\a\0005\4\6\0=\4\b\0035\4\t\0005\5\n\0005\6\v\0=\6\f\5>\5\3\4=\4\r\0035\4\14\0=\4\15\0035\4\16\0=\4\17\0035\4\18\0=\4\19\0035\4\20\0=\4\21\3=\3\22\0025\3\23\0004\4\0\0=\4\b\0034\4\0\0=\4\r\0035\4\24\0=\4\15\0035\4\25\0=\4\17\3=\3\26\0024\3\0\0=\3\27\0024\3\0\0=\3\28\2B\0\2\1K\0\1\0\15extensions\ftabline\22inactive_sections\1\2\0\0\rlocation\1\2\0\0\rfilename\1\0\4\14lualine_a\0\14lualine_c\0\14lualine_x\0\14lualine_b\0\rsections\14lualine_z\1\2\0\0\rlocation\14lualine_y\1\2\0\0\rprogress\14lualine_x\1\4\0\0\rencoding\15fileformat\rfiletype\14lualine_c\1\2\0\0\rfilename\14lualine_b\fsources\1\3\0\0\rnvim_lsp\bcoc\1\2\1\0\16diagnostics\fsources\0\1\3\0\0\vbranch\tdiff\14lualine_a\1\0\6\14lualine_y\0\14lualine_x\0\14lualine_b\0\14lualine_a\0\14lualine_c\0\14lualine_z\0\1\2\0\0\tmode\foptions\1\0\5\ftabline\0\15extensions\0\foptions\0\22inactive_sections\0\rsections\0\1\0\4\23section_separators\5\ntheme\fgruvbox\18icons_enabled\2\25component_separators\6|\nsetup\flualine\frequire\0", "config", "lualine.nvim")
|
||||
time([[Config for lualine.nvim]], false)
|
||||
-- Config for: nvim-treesitter
|
||||
time([[Config for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\n<EFBFBD>\1\0\0\5\0\f\0\0156\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\6\0=\3\a\0025\3\t\0005\4\b\0=\4\n\3=\3\v\2B\0\2\1K\0\1\0\16textobjects\vselect\1\0\1\vselect\0\1\0\1\venable\2\26incremental_selection\1\0\1\venable\2\14highlight\1\0\3\16textobjects\0\14highlight\0\26incremental_selection\0\1\0\1\venable\2\nsetup\28nvim-treesitter.configs\frequire\0", "config", "nvim-treesitter")
|
||||
time([[Config for nvim-treesitter]], false)
|
||||
-- Config for: which-key.nvim
|
||||
time([[Config for which-key.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n7\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\14which-key\frequire\0", "config", "which-key.nvim")
|
||||
time([[Config for which-key.nvim]], false)
|
||||
-- Config for: gitsigns.nvim
|
||||
time([[Config for gitsigns.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rgitsigns\frequire\0", "config", "gitsigns.nvim")
|
||||
@@ -233,6 +213,26 @@ time([[Config for gitsigns.nvim]], false)
|
||||
time([[Config for nvim-autopairs]], true)
|
||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||
time([[Config for nvim-autopairs]], false)
|
||||
-- Config for: nvim-treesitter
|
||||
time([[Config for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\n<EFBFBD>\2\0\0\5\0\14\0\0176\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\6\0=\3\a\0025\3\b\0=\3\t\0025\3\v\0005\4\n\0=\4\f\3=\3\r\2B\0\2\1K\0\1\0\16textobjects\vselect\1\0\1\vselect\0\1\0\1\venable\2\26incremental_selection\1\0\1\venable\2\14highlight\1\0\1\venable\2\21ensure_installed\1\0\4\26incremental_selection\0\16textobjects\0\21ensure_installed\0\14highlight\0\1\5\0\0\ago\blua\vpython\trust\nsetup\28nvim-treesitter.configs\frequire\0", "config", "nvim-treesitter")
|
||||
time([[Config for nvim-treesitter]], false)
|
||||
-- Config for: which-key.nvim
|
||||
time([[Config for which-key.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n7\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\14which-key\frequire\0", "config", "which-key.nvim")
|
||||
time([[Config for which-key.nvim]], false)
|
||||
-- Config for: nvim-tree.lua
|
||||
time([[Config for nvim-tree.lua]], true)
|
||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14nvim-tree\frequire\0", "config", "nvim-tree.lua")
|
||||
time([[Config for nvim-tree.lua]], false)
|
||||
-- Config for: vimwiki
|
||||
time([[Config for vimwiki]], true)
|
||||
try_loadstring("\27LJ\2\nw\0\0\3\0\4\0\a6\0\0\0009\0\1\0004\1\3\0005\2\3\0>\2\1\1=\1\2\0K\0\1\0\1\0\4\vsyntax\rmarkdown\19diary_rel_path\vdiary/\bext\b.md\tpath\15~/vimwiki/\17vimwiki_list\6g\bvim\0", "config", "vimwiki")
|
||||
time([[Config for vimwiki]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n<EFBFBD>\5\0\0\a\0\29\0)6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0025\3\a\0005\4\6\0=\4\b\0035\4\t\0005\5\n\0005\6\v\0=\6\f\5>\5\3\4=\4\r\0035\4\14\0=\4\15\0035\4\16\0=\4\17\0035\4\18\0=\4\19\0035\4\20\0=\4\21\3=\3\22\0025\3\23\0004\4\0\0=\4\b\0034\4\0\0=\4\r\0035\4\24\0=\4\15\0035\4\25\0=\4\17\3=\3\26\0024\3\0\0=\3\27\0024\3\0\0=\3\28\2B\0\2\1K\0\1\0\15extensions\ftabline\22inactive_sections\1\2\0\0\rlocation\1\2\0\0\rfilename\1\0\4\14lualine_c\0\14lualine_x\0\14lualine_b\0\14lualine_a\0\rsections\14lualine_z\1\2\0\0\rlocation\14lualine_y\1\2\0\0\rprogress\14lualine_x\1\4\0\0\rencoding\15fileformat\rfiletype\14lualine_c\1\2\0\0\rfilename\14lualine_b\fsources\1\3\0\0\rnvim_lsp\bcoc\1\2\1\0\16diagnostics\fsources\0\1\3\0\0\vbranch\tdiff\14lualine_a\1\0\6\14lualine_c\0\14lualine_z\0\14lualine_x\0\14lualine_y\0\14lualine_b\0\14lualine_a\0\1\2\0\0\tmode\foptions\1\0\5\foptions\0\rsections\0\15extensions\0\ftabline\0\22inactive_sections\0\1\0\4\25component_separators\6|\23section_separators\5\ntheme\fgruvbox\18icons_enabled\2\nsetup\flualine\frequire\0", "config", "lualine.nvim")
|
||||
time([[Config for lualine.nvim]], false)
|
||||
-- Config for: gruvbox
|
||||
time([[Config for gruvbox]], true)
|
||||
try_loadstring("\27LJ\2\n7\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\24colorscheme gruvbox\bcmd\bvim\0", "config", "gruvbox")
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
compile()
|
||||
{
|
||||
echo "[Compiling Sketch]"
|
||||
echo "[Command]: arduino-cli compile -b $FQBN $SKETCH --no-color"
|
||||
arduino-cli compile -b "$FQBN" "$SKETCH" --no-color
|
||||
}
|
||||
|
||||
upload()
|
||||
{
|
||||
echo "[Uploading]"
|
||||
echo "[Command]: arduino-cli upload -b $FQBN -p $PORT_ADDRESS $SKETCH --no-color"
|
||||
arduino-cli upload -b "$FQBN" -p "$PORT_ADDRESS" "$SKETCH" --no-color
|
||||
}
|
||||
|
||||
monitor()
|
||||
{
|
||||
echo "[Command]: arduino-cli monitor -p $PORT_ADDRESS -c $BAUDRATE"
|
||||
arduino-cli monitor -p "$PORT_ADDRESS" -c "$BAUDRATE"
|
||||
}
|
||||
|
||||
compile_and_upload()
|
||||
{
|
||||
[[ "$FQBN" == "null" ]] && echo "[Error]: Board not found" && exit 1
|
||||
compile && upload && echo "[Success]"
|
||||
}
|
||||
|
||||
INFO="$(arduino-cli board list --json)"
|
||||
FQBN="$(echo "$INFO" | jq -r .detected_ports[0].matching_boards[0].fqbn)"
|
||||
PORT_ADDRESS="$(echo "$INFO" | jq -r .detected_ports[0].port.address)"
|
||||
|
||||
while getopts "imu:" opt
|
||||
do
|
||||
case "$opt" in
|
||||
u)
|
||||
SKETCH="$OPTARG"
|
||||
compile && upload ;;
|
||||
i)
|
||||
echo "$INFO" ;;
|
||||
m)
|
||||
BAUDRATE="$2"
|
||||
monitor ;;
|
||||
esac
|
||||
done
|
||||
Reference in New Issue
Block a user