mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
- TMUX: Switched back to ctrl+b as leader
- VIM: Configurations better commented - NVIM: NVChad, LazyNvim, Old-Config removed - NVIM: Restarted and reconfigured from kickstart.nvim [WIP] - Dotfiles on $HOME removed from 160+ to 25. Most of them moved to $XDG_* directories - Shell: Added back p10k config - Shell: Autoremove brew left over applications - Kitty: Added bashrc & profiles for ssh kitten - Kitty: Custom tab-titles
This commit is contained in:
@@ -1,68 +1,60 @@
|
||||
-- General Usage and debugging Nvim hints ---------------------------
|
||||
-- Use `vim.print()` to printout some variable
|
||||
-- TIP: General Usage and debugging Nvim hints:
|
||||
-- Use `vim.print()` to printout variables
|
||||
-- :lua > `require("plugin-name")` to load a plugin manually
|
||||
-- To check all issues in plugins -> :checkhealth
|
||||
-- To remove a keymaps -> `vim.keymap.del("n", "<leader>someth")`
|
||||
-- To override plugin's keymap -> inside "/lua/plugins" create a file > refer to the plugin > change whatever you want in the plugins. cmd, event, ft, keys, opts, dependencies properties are merged. All other properties are overridden. But if any property takes a function -> it'll always be overridden.
|
||||
-- To remove/disable a plugin - in the above step add `enabled = false` property.
|
||||
-- Show diff: 2 splits with the files -> :windo diffthis. To exit -> :windo diffoff
|
||||
-- To check all the keymaps -> :Telescope keymaps
|
||||
-- Check all notifications -> :Notifications
|
||||
-- Check past messages -> :messages
|
||||
|
||||
-- NOTE: To check all the keymaps -> :Telescope keymaps
|
||||
-- NOTE: Check all notifications -> :Notifications
|
||||
-- TIP: Keymap structure:
|
||||
-- b: buffer
|
||||
-- g: git/github
|
||||
-- c: Coding things
|
||||
-- e: explorer
|
||||
-- f: list & find something
|
||||
-- s: Grep/Search over something
|
||||
-- x: close/dismiss something
|
||||
-- r: restore sessions
|
||||
-- l: List some stuff
|
||||
|
||||
-- NOTE: For autoformatting language:
|
||||
-- 1. Add to :Mason ensure_installed,
|
||||
-- 2. Add to null-ls sources,
|
||||
-- 3. Add to conform's formatter_by_ft list.
|
||||
-- Load keymaps & options
|
||||
require("config")
|
||||
|
||||
-- NOTE: For supporting a language LSP:
|
||||
-- 1. Add to treesitter ensure_installed,
|
||||
-- 2. Add to :Mason ensure_installed,
|
||||
-- 3. Add to none-ls sources,
|
||||
-- 4. Add to nvim-lint's linters_by_ft list,
|
||||
-- 5. Add to nvim-lspconfig's servers
|
||||
-- `:help lazy.nvim.txt` for more info
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
---------------------------------------------------------------------
|
||||
---------------------------TODO Items--------------------------------
|
||||
---------------------------------------------------------------------
|
||||
-- Editor
|
||||
-- TODO: Telescope: search hidden folders (except .git/.idea/.vscode/node_modules etc.)
|
||||
-- TODO: Telescope: Map opening selected file in different splits/tabs
|
||||
-- FIXIT: nvim-lsp: Reduce LSP update progress messages-> opts.lsp.progress{}
|
||||
-- FIXIT: Disable which-key prompts for 'd' - way too much distraction
|
||||
-- FIXIT: Remove padding from bottom (below lualine) & right border
|
||||
|
||||
-- Coding General
|
||||
-- FIXIT: LSP suggestions hides the line being edited
|
||||
-- Keymap to close LSP hints?
|
||||
-- FIXIT: ys commands do not work - some paste thing is overriding it
|
||||
|
||||
-- FIXIT: SymbolsOutline doesn't work sometimes
|
||||
-- TODO: Which file installs mason?
|
||||
-- TODO: Configure following:
|
||||
-- 1. coding-json.lua,
|
||||
-- 2. coding-markdown.lua,
|
||||
-- 4. coding-python.lua (+black),
|
||||
-- 5. coding-rust.lua
|
||||
-- TODO: Have inline hints - rust-tools + https://github.com/simrat39/inlay-hints.nvim
|
||||
-- Test autocomplete on Rust projects
|
||||
-- 6. coding-tailwind.lua,
|
||||
-- 7. coding-typescript.lua (+eslint+prettier),
|
||||
-- TODO: Typescript - LSP integration - not being attached right now
|
||||
-- Test autocomplete on Typescript projects
|
||||
-- 8. coding-yaml.lua,
|
||||
-- 9. coding-docker.lua
|
||||
-- TODO: null-ls + dap + nlua + neotest in coding.lua
|
||||
|
||||
-- Coding Rust
|
||||
-- TODO: Rust debugging
|
||||
|
||||
-- General
|
||||
-- TODO: Create Ulauncher plugin for reading/searching/quickaccess saved sessions
|
||||
-- This needs to open the session in desired terminal app
|
||||
-- TODO: fzf scipt to show pop-up of all saved sessions on nvim <tab>
|
||||
|
||||
-- TODO: Figure out how to quickly stop all code suggestions & completions
|
||||
|
||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||
require("config.lazy")
|
||||
-- You can also configure plugins after the setup call,
|
||||
-- as they will be available in your neovim runtime.
|
||||
require("lazy").setup({
|
||||
{ import = "plugins" },
|
||||
}, {
|
||||
lockfile = vim.fn.stdpath("data") .. "/lazy/lazy-lock.json",
|
||||
change_detection = {
|
||||
notify = false,
|
||||
},
|
||||
performance = {
|
||||
rtp = {
|
||||
-- Disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"matchit",
|
||||
-- "matchparen",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user