Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siposattila/neovim
https://github.com/siposattila/neovim
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/siposattila/neovim
- Owner: Siposattila
- Created: 2023-11-11T12:13:45.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-09T05:30:16.000Z (7 months ago)
- Last Synced: 2024-04-09T06:32:28.790Z (7 months ago)
- Language: Lua
- Homepage:
- Size: 6.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Packages
[wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim)
[nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
[folke/tokyonight.nvim](https://github.com/folke/tokyonight.nvim)
[nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
[VonHeikemen/lsp-zero.nvim](https://github.com/VonHeikemen/lsp-zero.nvim)
[kdheepak/lazygit.nvim](https://github.com/kdheepak/lazygit.nvim)
[lewis6991/gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim)# Lazygit
```sudo install lazygit /usr/local/bin```# RipGrep
You need this! Beleive me! This tool is the ultimate searching tool. You need it.
```sudo apt-get install ./ripgrep_13.0.0_amd64.deb```# Clipboard
If copying and pasting is not working out of the box then you probably need to install something like xclip.
```sudo apt-get install xclip```# Keymaps
The leader key is `space`.```lua
-- remap.lua
vim.keymap.set("n", "e", vim.cmd.Ex)
vim.keymap.set("n", "p", vim.cmd.PackerSync)
vim.keymap.set("n", "cm", vim.cmd.Mason)
vim.keymap.set("n", "gg", vim.cmd.LazyGit)
vim.keymap.set("n", "bd", vim.cmd.bdelete)
vim.keymap.set("n", "", vim.cmd.w)
vim.keymap.set("i", "", vim.cmd.w, { noremap = true })
vim.keymap.set("n", "qq", vim.cmd.quit)
vim.keymap.set("n", "cd", "lua vim.diagnostic.open_float()")
vim.keymap.set("n", "fd", "Telescope diagnostics")
vim.keymap.set("n", "ca", "lua vim.lsp.buf.code_action()")
vim.keymap.set("n", "cf", "lua vim.lsp.buf.format()")
vim.keymap.set("n", "cr", "lua vim.lsp.buf.rename()")
vim.keymap.set("n", "cs", "lua vim.lsp.buf.signature_help()")
vim.keymap.set("n", "crf", "lua vim.lsp.buf.references()")
vim.keymap.set("n", "ci", "lua vim.lsp.buf.hover()")
vim.keymap.set("n", "gd", "lua vim.lsp.buf.definition()")
vim.keymap.set("n", "gD", "lua vim.lsp.buf.declaration()")
vim.keymap.set("n", "cim", "lua vim.lsp.buf.implementation()")
vim.keymap.set("n", "gtd", "lua vim.lsp.buf.type_definition()")
vim.keymap.set("n", "", "m .+1==")
vim.keymap.set("n", "", "m .-2==")
vim.keymap.set("i", "", "m .+1==gi")
vim.keymap.set("i", "", "m .-2==gi")
vim.keymap.set("v", "", ":m '>+1gv=gv")
vim.keymap.set("v", "", ":m '<-2gv=gv")-- telescope.lua
vim.keymap.set("n", "ff", builtin.find_files, {})
vim.keymap.set("n", "fb", builtin.buffers, {})
vim.keymap.set("n", "fg", builtin.live_grep, {})
vim.keymap.set("n", "gf", builtin.git_files, {})
vim.keymap.set("n", "fs", builtin.treesitter, {})-- gitsings.lua
map.set("n", "gb", function() gs.blame_line{full=true} end)-- lsp.lua
cmp.setup({
mapping = cmp.mapping.preset.insert({
-- `Enter` key to confirm completion
[""] = cmp.mapping.confirm({select = false}),-- Ctrl+Space to trigger completion menu
[""] = cmp.mapping.complete(),-- Navigate between snippet placeholder
[""] = cmp_action.luasnip_jump_forward(),
[""] = cmp_action.luasnip_jump_backward(),-- Scroll up and down in the completion documentation
[""] = cmp.mapping.scroll_docs(-4),
[""] = cmp.mapping.scroll_docs(4),
})
})
```