Make various small clean-up changes
This commit is contained in:
@@ -152,8 +152,8 @@ vim.keymap.set('n', '<leader>fg', tscBuiltin.git_files, { desc = 'tscope find gi
|
||||
vim.keymap.set('n', '<leader>fb', tscBuiltin.buffers, { desc = 'tscope buffers' })
|
||||
vim.keymap.set('n', '<leader>fh', tscBuiltin.help_tags, { desc = 'tscope help tags' })
|
||||
-- TODO: maybe add commands:
|
||||
-- - find files including git-ignored (have a yes and no option)
|
||||
-- - grep files including git-ignored (have a yes and no option)
|
||||
-- - find files including git-ignored (that is, have both a yes and no option)
|
||||
-- - grep files including git-ignored (that is, have both a yes and no option)
|
||||
-- - grep which supports fuzzy-find, unless performance is horrendous
|
||||
|
||||
-- harpoon
|
||||
@@ -171,9 +171,6 @@ end
|
||||
-- undotree
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
|
||||
-- treesitter and treesitter-context
|
||||
vim.keymap.set("n", "<leader>tc", function() vim.cmd.TSContext({ "toggle" }) end)
|
||||
|
||||
-- conform (formatter)
|
||||
vim.keymap.set("n", "<leader>fmt", function()
|
||||
require("conform").format({ bufnr = 0 })
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
-- TODO: maybe switch this over from git-clone approach to neovim's builtin vim.pack.add
|
||||
local path_lazy_nvim = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(path_lazy_nvim) then
|
||||
local git_output = vim.fn.system({
|
||||
|
||||
@@ -95,7 +95,7 @@ return {
|
||||
end,
|
||||
},
|
||||
{
|
||||
"jay-babu/mason-nvim-dap.nvim", -- TODO: here, or handle manually outside of neovim?
|
||||
"jay-babu/mason-nvim-dap.nvim", -- TODO: install here? manually outside of neovim?
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"mfussenegger/nvim-dap",
|
||||
|
||||
@@ -27,12 +27,10 @@ return {
|
||||
},
|
||||
},
|
||||
{
|
||||
-- TODO: decide if i want rose-pine, remove from file if not
|
||||
"rose-pine/neovim",
|
||||
name = "rose-pine",
|
||||
},
|
||||
{
|
||||
-- TODO: decide if i want tokyonight, remove from file if not
|
||||
"folke/tokyonight.nvim",
|
||||
opts = {
|
||||
style = "night", -- "night", "storm", "moon", "day"
|
||||
@@ -60,8 +58,6 @@ return {
|
||||
},
|
||||
{
|
||||
'ribru17/bamboo.nvim',
|
||||
-- lazy = false,
|
||||
-- priority = 1000,
|
||||
config = function()
|
||||
require('bamboo').setup { }
|
||||
require('bamboo').load()
|
||||
|
||||
@@ -17,7 +17,7 @@ return {
|
||||
ignore_install = {
|
||||
"csv",
|
||||
},
|
||||
-- indent = { enable = true }, -- TODO: do i want this?
|
||||
indent = { enable = true },
|
||||
highlight = {
|
||||
enable = true, -- `false` will disable the whole extension
|
||||
disable = function(lang, buf)
|
||||
@@ -51,26 +51,7 @@ return {
|
||||
-- branch = "master",
|
||||
-- },
|
||||
-- }
|
||||
|
||||
-- vim.treesitter.language.register("templ", "templ")
|
||||
end
|
||||
},
|
||||
-- {
|
||||
-- -- TODO: decide if needed/wanted
|
||||
-- "nvim-treesitter/nvim-treesitter-context",
|
||||
-- after = "nvim-treesitter",
|
||||
-- opts = {
|
||||
-- enable = false, -- can enable/disable via manual command
|
||||
-- multiwindow = false,
|
||||
-- max_lines = 0, -- lines the window should span; x <= 0 means no limit
|
||||
-- min_window_height = 10, -- min window height to enable; x <= 0 means no limit
|
||||
-- line_numbers = true,
|
||||
-- multiline_threshold = 40, -- max lines to show for a single context
|
||||
-- trim_scope = 'outer', -- 'inner', 'outer'; discard lines if max_lines exceeded
|
||||
-- mode = 'cursor', -- 'cursor', 'topline'; line used to calculate context
|
||||
-- separator = "-", -- 1 char, like '-'; only shown when >= 2 lines above
|
||||
-- zindex = 20, -- z-index of the context window
|
||||
-- on_attach = nil, -- (fun(buf: integer): boolean); return false to disable attaching
|
||||
-- },
|
||||
-- },
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- -- TODO: do i want these?
|
||||
-- vim.opt.isfname:append("@-@")
|
||||
-- vim.opt.guicursor = ""
|
||||
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.incsearch = true
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# set -g default-terminal "tmux-255color" # TODO: messes up backspace render, fix
|
||||
set -s escape-time 0
|
||||
|
||||
unbind C-b
|
||||
|
||||
@@ -23,6 +23,7 @@ alias ls='ls -F'
|
||||
alias ksh=oksh # NOTE: if i ever use openBSD, conditionally remove this alias
|
||||
|
||||
# focus/productivity/similar
|
||||
alias cal="calcurse"
|
||||
alias note="cd $DIR_NOTES/inbox; $EDITOR"
|
||||
alias todo="cd $DIR_NOTES/rhythm; $EDITOR todo.md"
|
||||
alias budget="open $DIR_HOME_BOX/finance/budget/.current"
|
||||
|
||||
Reference in New Issue
Block a user