chore(starship, nvim, tmux): removing starship, navigation between tmux and nvim, updated environment configs and scripts

This commit is contained in:
DarthMooMancer committed 2026-11-05 14:15:22 -05:00
1 parent c9b2a67939
commit 89d37946cf
19 files changed
+354 -405

No files matched your search

@@ -20,6 +20,11 @@ map('n', '<C-j>', '<C-w>j', { silent = true })
map('n', '<C-k>', '<C-w>k', { silent = true })
map('n', '<C-l>', '<C-w>l', { silent = true })
map('n', '<C-h>', ':NvimTmuxNavigateLeft<CR>', { silent = true })
map('n', '<C-j>', ':NvimTmuxNavigateDown<CR>', { silent = true })
map('n', '<C-k>', ':NvimTmuxNavigateUp<CR>', { silent = true })
map('n', '<C-l>', ':NvimTmuxNavigateRight<CR>', { silent = true })
map('n', '<leader>E', ':Ex<CR>')
map('n', '<leader>lp', '<cmd>LivePreview pick<cr>')
@@ -33,9 +38,7 @@ map('n', '<leader>uu', function()
})
end, { desc = 'native undotree', silent = true })
map('n', '<leader>ff', function()
require('conform').format({ async = true, lsp_format = 'never' })
end)
map('n', '<leader>ff', vim.lsp.buf.format)
map('n', '<leader>fs', vim.lsp.buf.document_symbol)
map('n', '<leader>gd', vim.lsp.buf.definition)
@@ -43,61 +46,40 @@ map('n', '<leader>gr', vim.lsp.buf.references)
map('n', '<leader>gR', vim.lsp.buf.rename)
map('n', '<leader>gc', vim.lsp.buf.code_action)
map('n', '<leader>xx', function()
local qf_open = false
for _, win in ipairs(vim.fn.getwininfo()) do
if win.quickfix == 1 then
qf_open = true
break
end
end
if qf_open then
vim.cmd('cclose')
else
vim.diagnostic.setqflist()
if #vim.fn.getqflist() == 0 then
vim.notify('No diagnostics found', vim.log.levels.WARN)
else
vim.cmd('copen')
end
end
end, { desc = 'Toggle Diagnostics Quickfix' })
local function qf_is_open()
return vim.fn.getqflist({ winid = 0 }).winid ~= 0
end
local qf_group = vim.api.nvim_create_augroup('QuickFixDiagnostics', { clear = true })
local function diagnostic_items()
return vim.diagnostic.toqflist(vim.diagnostic.get())
end
map('n', '<leader>xx', function()
if qf_is_open() then
vim.cmd('cclose')
return
end
local items = diagnostic_items()
if #items == 0 then
vim.notify('No diagnostics found', vim.log.levels.WARN)
return
end
vim.fn.setqflist(items)
vim.cmd('copen')
end, { desc = 'Toggle diagnostics quickfix' })
local qf_group = vim.api.nvim_create_augroup('DiagnosticsQuickfix', { clear = true })
vim.api.nvim_create_autocmd('DiagnosticChanged', {
group = qf_group,
callback = function()
vim.schedule(function()
local qf_open = false
for _, win in ipairs(vim.fn.getwininfo()) do
if win.quickfix == 1 then
qf_open = true
break
end
end
if qf_open then
local diagnostics = vim.diagnostic.get()
local qf_items = vim.diagnostic.toqflist(diagnostics)
vim.fn.setqflist(qf_items, 'r')
if #qf_items == 0 then
vim.cmd('cclose')
vim.notify('No diagnostics found', vim.log.levels.WARN)
end
end
end)
end,
})
vim.api.nvim_create_autocmd('FileType', {
group = qf_group,
pattern = 'qf',
callback = function()
vim.schedule(function()
if vim.fn.getqflist({ size = 0 }).size == 0 then
vim.cmd('cclose')
end
end)
if not qf_is_open() then
return
end
local items = diagnostic_items()
vim.fn.setqflist(items, 'r')
if #items == 0 then
vim.cmd('cclose')
end
end,
})
+1 -46
View File
@@ -86,52 +86,6 @@ vim.lsp.config('rust_analyzer', {
},
},
})
-- vim.lsp.config('gopls', {})
vim.lsp.config('gopls', {
cmd = { 'gopls' },
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
settings = {
gopls = {
-- Verbose/Enhanced Completion Settings
usePlaceholders = true, -- Enables snippet placeholders (e.g. $1, $2) for function params
completeUnimported = true, -- Auto-suggests and imports packages that aren't yet in your imports block
completeFunctionCalls = false, -- Automatically appends parentheses to function completions
experimentalPostfixCompletions = true, -- Enables postfix completions like slice.sort!
-- Nice LSP & Diagnostics Settings
analyses = {
unusedparams = true, -- Highlights unused parameters
unusedvariable = true, -- Highlights unused variables
unusedwrite = true, -- Highlights field writes that are never read
shadow = true, -- Catches shadowed variables
fillreturns = true, -- Suggests return values to fill stub functions
nonewdecl = true, -- Catches redeclaration errors early
},
staticcheck = true, -- Enables staticcheck advanced analyzers for better linting
semanticTokens = true, -- Enables fine-grained semantic syntax highlighting if your theme supports it
codelenses = {
gc_details = true, -- Shows escape analysis details as code lenses
generate = true, -- Adds a code lens to run `go generate`
test = true, -- Adds a code lens to run tests inline
tidy = true, -- Adds a code lens to run `go mod tidy`
upgrade_dependency = true, -- Adds a code lens to upgrade dependencies
vendor = true, -- Adds a code lens to run `go mod vendor`
},
hints = {
assignVariableTypes = true, -- Inlay hints for variable types
compositeLiteralFields = true, -- Inlay hints for struct literal fields
compositeLiteralTypes = true, -- Inlay hints for struct literal types
constantValues = true, -- Inlay hints for constants
functionTypeParameters = true, -- Inlay hints for generic type parameters
parameterNames = true, -- Inlay hints for function parameter names (e.g. foo(ctx, /* paramName: */ val))
rangeVariableTypes = true, -- Inlay hints for range loops
},
},
},
})
-- Enable the server so it attaches to your Go files automatically
vim.lsp.enable('gopls')
vim.lsp.enable({
'lua_ls',
@@ -139,6 +93,7 @@ vim.lsp.enable({
'pylsp',
'rust_analyzer',
'gopls',
--- Web
'vtsls',
'superhtml',
@@ -17,6 +17,7 @@ vim.opt.smoothscroll = true
vim.opt.updatetime = 50
vim.opt.smartindent = true
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
local shifts = {
lua = 4,
@@ -42,6 +43,5 @@ vim.api.nvim_create_autocmd('FileType', {
vim.diagnostic.config({
virtual_text = true,
-- virtual_lines = true,
severity_sort = true,
})
@@ -8,21 +8,15 @@ vim.pack.add({
{ src = 'https://github.com/stevearc/conform.nvim' },
{ src = 'https://git.moomancer.xyz/DarthMooMancer/mason-conform.nvim.git' },
{ src = 'https://github.com/brianhuster/live-preview.nvim' },
-- { src = 'https://git.moomancer.xyz/DarthMooMancer/vern-nvim' },
-- { src = 'https://github.com/vague-theme/vague.nvim' },
-- { src = 'https://github.com/rose-pine/neovim', name = 'rose-pine' },
{ src = 'https://github.com/alexghergh/nvim-tmux-navigation' },
})
-- require('rose-pine').setup({
-- disable_background = true,
-- styles = {
-- italic = false,
-- },
-- })
vim.opt.rtp:append('/Users/andrew/personal/Projects/Lua/vern-nvim')
vim.cmd('packadd nvim.undotree')
require('nvim-tmux-navigation').setup({
disable_when_zoomed = true, -- defaults to false
})
require('DarthMooMancer.plugins.blink-cmp')
require('DarthMooMancer.plugins.mini-nvim')
require('DarthMooMancer.plugins.vern')
@@ -6,6 +6,7 @@ require('mason-lspconfig').setup({
'pylsp',
'cssls',
'superhtml',
'gopls',
},
automatic_enable = false,
})
@@ -9,7 +9,6 @@ local parsers = {
'typescript',
'tsx',
'css',
'html',
'python',
'yaml',
}
+4 -16
View File
@@ -30,29 +30,17 @@
"src": "https://github.com/nvim-mini/mini.nvim.git",
"version": ">=0.0.0"
},
"neovim": {
"rev": "ff483051a47e27d84bdef47703538df1ed9f4a47",
"src": "https://github.com/rose-pine/neovim"
},
"nvim-lspconfig": {
"rev": "adfbb74472f6c231b651b650a89f414c2680fb31",
"src": "https://github.com/neovim/nvim-lspconfig"
},
"nvim-tmux-navigation": {
"rev": "4898c98702954439233fdaf764c39636681e2861",
"src": "https://github.com/alexghergh/nvim-tmux-navigation"
},
"nvim-treesitter": {
"rev": "0195cd62fa89950f34c0e0d648ea7897ab85d4d3",
"src": "https://github.com/nvim-treesitter/nvim-treesitter"
},
"rose-pine": {
"rev": "ff483051a47e27d84bdef47703538df1ed9f4a47",
"src": "https://github.com/rose-pine/neovim"
},
"vague.nvim": {
"rev": "73f8aaa866bf3d14dd0b0ab9e48c11794c1cb7ab",
"src": "https://github.com/vague-theme/vague.nvim"
},
"vern-nvim": {
"rev": "adbd2bc0e929431cbd2b713df67866019fabfccb",
"src": "https://git.moomancer.xyz/DarthMooMancer/vern-nvim"
}
}
}