lazygit + docs
This commit is contained in:
@@ -37,6 +37,11 @@ Telescope shortcuts:
|
||||
- `<leader>fb` list buffers
|
||||
- `<leader>fh` browse help tags
|
||||
|
||||
Git shortcuts:
|
||||
|
||||
- `:Git` to run commands directly (`:Git status`, `:Git log --oneline`)
|
||||
- `<leader>lg` open LazyGit
|
||||
|
||||
Oil usage:
|
||||
|
||||
- `<leader>dl` opens the file browser
|
||||
@@ -70,7 +75,13 @@ Cycle through windows:
|
||||
Leave terminal mode and return to normal mode:
|
||||
|
||||
```vim
|
||||
<Esc>
|
||||
<C-Esc>
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```vim
|
||||
<\\-Esc>
|
||||
```
|
||||
|
||||
## LSP
|
||||
@@ -87,9 +98,7 @@ Useful Mason commands:
|
||||
:checkhealth mason
|
||||
```
|
||||
|
||||
`ts_ls` provides TypeScript and JavaScript language server support after Mason installs `typescript-language-server`.
|
||||
|
||||
When an LSP server is attached to the current buffer:
|
||||
Useful LSP commands:
|
||||
|
||||
- `gd` go to definition
|
||||
- `gD` go to declaration
|
||||
@@ -109,7 +118,7 @@ Diagnostics:
|
||||
|
||||
## Tree-sitter
|
||||
|
||||
Tree-sitter is managed with `nvim-treesitter` via `vim.pack`. `tree-sitter-cli` and a C compiler is required to be installed.
|
||||
`tree-sitter-cli` and a C compiler is required to be installed.
|
||||
|
||||
Useful commands:
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ map("n", "<leader>ff", telescope_picker("find_files"), { desc = "find files" })
|
||||
map("n", "<leader>fg", telescope_picker("live_grep"), { desc = "live grep" })
|
||||
map("n", "<leader>fb", telescope_picker("buffers"), { desc = "find buffers" })
|
||||
map("n", "<leader>fh", telescope_picker("help_tags"), { desc = "help tags" })
|
||||
map("n", "<leader>lg", "<Cmd>LazyGit<CR>", { desc = "open lazygit" })
|
||||
|
||||
-- map("n", "<leader>s", ":set spell!<CR>", { desc = "toggle spell" })
|
||||
map("n", "<leader>sv", "<Cmd>vs<CR>", { desc = "split vertical" })
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
require("romanzy.plugins.rose-pine")
|
||||
require("romanzy.plugins.mini")
|
||||
require("romanzy.plugins.lazygit")
|
||||
require("romanzy.plugins.oil")
|
||||
require("romanzy.plugins.telescope")
|
||||
require("romanzy.plugins.nvim-treesitter")
|
||||
|
||||
10
nvim/.config/nvim/lua/romanzy/plugins/lazygit.lua
Normal file
10
nvim/.config/nvim/lua/romanzy/plugins/lazygit.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
vim.pack.add({
|
||||
{
|
||||
src = "https://github.com/kdheepak/lazygit.nvim",
|
||||
name = "lazygit.nvim",
|
||||
},
|
||||
{
|
||||
src = "https://github.com/nvim-lua/plenary.nvim",
|
||||
name = "plenary.nvim",
|
||||
},
|
||||
})
|
||||
@@ -4,6 +4,10 @@
|
||||
"rev": "d41468df1c53081c909fc78248cf233893b59809",
|
||||
"src": "https://codeberg.org/42nerds/header42.nvim"
|
||||
},
|
||||
"lazygit.nvim": {
|
||||
"rev": "a04ad0dbc725134edbee3a5eea29290976695357",
|
||||
"src": "https://github.com/kdheepak/lazygit.nvim"
|
||||
},
|
||||
"mason-lspconfig.nvim": {
|
||||
"rev": "21c5b3ebeaa0412e28096bb0701434c51c1fbf76",
|
||||
"src": "https://github.com/mason-org/mason-lspconfig.nvim"
|
||||
|
||||
Reference in New Issue
Block a user