mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
- Nvim Theme changed to github-dark-dimmed - keeps it in sync with the kitty theme
- Reorged multiple nvim settings (using LazyVim as primary now)
This commit is contained in:
@@ -1,38 +1,68 @@
|
||||
-- TODO: Git: Add a plugin
|
||||
-- TODO: System install and setup lazygit
|
||||
-- TODO: Setup auto complete
|
||||
-- TODO: Provide description to each keymap
|
||||
-- TODO: tpope/vim-obsession configure to work with tmux-resurrection
|
||||
-- TODO: Check why Nvim can't find todos
|
||||
-- TODO: Put all plugin configs inside /after/plugin directory
|
||||
-- General Usage and debugging Nvim hints ---------------------------
|
||||
-- Use `vim.print()` to printout some variable
|
||||
-- :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
|
||||
|
||||
-- Loads the system's Vim configs: keeps the VIM & NVim configs in sync
|
||||
local vimrc = vim.fn.stdpath("config") .. "/vim-sync.vim"
|
||||
if vim.loop.fs_stat(vimrc) then
|
||||
vim.cmd("source " .. vimrc)
|
||||
end
|
||||
-- NOTE: To check all the keymaps -> :Telescope keymaps
|
||||
-- NOTE: Check all notifications -> :Notifications
|
||||
|
||||
-- Setup Lazy.nvim package manager
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
-- 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.
|
||||
|
||||
require("lazy").setup("plugins", {
|
||||
change_detection = {
|
||||
enabled = true,
|
||||
notify = false,
|
||||
},
|
||||
})
|
||||
-- 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
|
||||
|
||||
require("configs.autocommands")
|
||||
require("configs.configs")
|
||||
require("configs.keymaps")
|
||||
---------------------------------------------------------------------
|
||||
---------------------------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")
|
||||
|
||||
Reference in New Issue
Block a user