Various tweaks

[bin] New script to start usual TUI's
[neovim] Set up nvlime; swap out neodev for lazydev
This commit is contained in:
Adam Cooper 2024-06-17 09:40:36 -04:00
parent 6f83e32406
commit 9a941cb6e3
5 changed files with 80 additions and 24 deletions

View file

@ -19,4 +19,3 @@ run "xscreensaver -no-splash"
run "sleep 4" run "sleep 4"
run "wmctrl -r bottom -t 8" run "wmctrl -r bottom -t 8"
run "keepassxc" run "keepassxc"

9
bin/start-tuis.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
#
# start-tuis.sh
#
# Convenience script to start up my usual TUIs
alacritty msg create-window --title joplin --command $NVM_BIN/joplin
alacritty msg create-window --title newsboat --command newsboat
alacritty msg create-window --title aerc --command aerc

View file

@ -139,7 +139,38 @@ require("lazy").setup({
opts = {}, opts = {},
config = function(_, opts) require 'lsp_signature'.setup(opts) end config = function(_, opts) require 'lsp_signature'.setup(opts) end
}, },
{ "folke/neodev.nvim", opts = {} }, {
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- See the configuration section for more details
-- Load luvit types when the `vim.uv` word is found
{ path = "luvit-meta/library", words = { "vim%.uv" } },
},
},
},
{ "Bilal2453/luvit-meta", lazy = true }, -- optional `vim.uv` typings
{ -- optional completion source for require statements and module annotations
"hrsh7th/nvim-cmp",
opts = function(_, opts)
opts.sources = opts.sources or {}
table.insert(opts.sources, {
name = "lazydev",
group_index = 0, -- set group index to 0 to skip loading LuaLS completions
})
end,
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-vsnip",
"hrsh7th/vim-vsnip",
"hrsh7th/cmp-nvim-lsp-signature-help",
},
},
{ {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" }, dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
@ -336,19 +367,6 @@ require("lazy").setup({
}, },
}, },
}, },
{
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-vsnip",
"hrsh7th/vim-vsnip",
"hrsh7th/cmp-nvim-lsp-signature-help",
},
},
{ "tpope/vim-fugitive", event = "VeryLazy" }, { "tpope/vim-fugitive", event = "VeryLazy" },
{ "lewis6991/gitsigns.nvim", event = "VeryLazy" }, { "lewis6991/gitsigns.nvim", event = "VeryLazy" },
{ {
@ -364,6 +382,20 @@ require("lazy").setup({
event = "VeryLazy", event = "VeryLazy",
}, },
{ "famiu/bufdelete.nvim", event = "VeryLazy" }, { "famiu/bufdelete.nvim", event = "VeryLazy" },
-- { "vlime/vlime", config = function() rtp = 'vim/' end },
--[[
{
'windwp/nvim-autopairs',
event = "InsertEnter",
config = true,
-- use opts = {} for passing setup options
-- this is equalent to setup({}) function
},
--]]
--{ "bhurlow/vim-parinfer", event = "VeryLazy" },
{ "kovisoft/paredit" },
--{ "monkoose/parsley", event = "VeryLazy" },
{ "monkoose/nvlime", ft = { "lisp" }, dependencies = { "monkoose/parsley" } },
}) })
--[[ mason --[[ mason
@ -466,11 +498,6 @@ cmp.setup.cmdline(':', {
}) })
}) })
-- Neodev
require("neodev").setup({
library = { plugins = { "nvim-dap-ui" }, types = true },
})
--[[ nvim-lspconfig --[[ nvim-lspconfig
--]] --]]
@ -776,5 +803,23 @@ vim.api.nvim_create_autocmd(
} }
) )
--[[
let g:nvlime_cl_impl = "ros"
function! NvlimeBuildServerCommandFor_ros(nvlime_loader, nvlime_eval)
return ["ros", "run",
\ "--load", a:nvlime_loader,
\ "--eval", a:nvlime_eval]
endfunction
--]]
-- Roswell
vim.g.nvlime_cl_impl = "ros"
vim.cmd([[
function! NvlimeBuildServerCommandFor_ros(nvlime_loader, nvlime_eval)
return ["ros", "run",
\ "--load", a:nvlime_loader,
\ "--eval", a:nvlime_eval]
endfunction
]])
-- Switch syntax highlighting on -- Switch syntax highlighting on
vim.cmd("syntax enable") vim.cmd("syntax enable")

View file

@ -42,5 +42,12 @@ export DDGR_COLORS="MBdexy"
export NAVI_TAG_COLOR=6 export NAVI_TAG_COLOR=6
export NAVI_COMMENT_COLOR=3 export NAVI_COMMENT_COLOR=3
# gomphotherium
export GOMPHOTHERIUM_SERVER='https://toot.cat'
export GOMPHOTHERIUM_ACCESS_TOKEN='qqscVpLBugWAv6cFUqu1vBm0QMbgsWTiafg7TwZsTec'
# roswell
export ROSWELL_HOME="/home/adam/.config/roswell"
# Consolidate PATH # Consolidate PATH
# export PATH="$(consolidate-path "$PATH")" # export PATH="$(consolidate-path "$PATH")"

View file

@ -140,10 +140,6 @@ source /home/adam/.config/broot/launcher/bash/br
# tea # tea
PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/adam/.config/tea/autocomplete.zsh" PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/adam/.config/tea/autocomplete.zsh"
# gomphotherium
export GOMPHOTHERIUM_SERVER='https://toot.cat'
export GOMPHOTHERIUM_ACCESS_TOKEN='qqscVpLBugWAv6cFUqu1vBm0QMbgsWTiafg7TwZsTec'
# ripgrep-all # ripgrep-all
rga-fzf() { rga-fzf() {
RG_PREFIX="rga --files-with-matches" RG_PREFIX="rga --files-with-matches"