mirror of
https://github.com/arkorty/Neolite.git
synced 2026-03-18 09:02:29 +00:00
Call the new plugins
Add gruvbox colorscheme
Turn off jump on jumpable for code snippets
Add git integration
Remove unnecessary keybinds
Change keybinds for LSP functions
Turn off format on buffer write
Add plugin sources
Remove 'help' from syntax highlighting
Add transparency option
Add visible indentations
Changes to be committed:
modified: init.lua
modified: lua/colorschemes.lua
modified: lua/completions.lua
new file: lua/git-integration.lua
modified: lua/keybinds.lua
modified: lua/lsp-config.lua
modified: lua/lsp-format.lua
modified: lua/plugins.lua
modified: lua/syntax-highlight.lua
new file: lua/transparency.lua
new file: lua/visible-indents.lua
50 lines
1.4 KiB
Lua
50 lines
1.4 KiB
Lua
local opts = { noremap = true, silent = true }
|
|
|
|
--Local term_opts = { silent = true }
|
|
local bind = vim.api.nvim_set_keymap
|
|
local set = vim.keymap.set
|
|
|
|
-- Bind a leader key
|
|
bind("", ";", "<Nop>", opts) -- undo any previous bind
|
|
vim.g.mapleader = ";"
|
|
vim.g.maplocalleader = ";"
|
|
|
|
-- Modes
|
|
-- Normal Mode = 'n',
|
|
-- Insert Mode = 'i',
|
|
-- Visual Mode = 'v',
|
|
-- Visual Block Mode = 'x',
|
|
-- Terminal Mode = 't',
|
|
-- Command Mode = 'c',
|
|
|
|
-- Normal mode --
|
|
-- Nvim tree
|
|
bind("n", "<C-f>", ":NvimTreeToggle<CR>", opts)
|
|
|
|
-- Fuzzy finder
|
|
local telescope_status_ok, telescope = pcall(require, "telescope.builtin")
|
|
if telescope_status_ok then
|
|
set("n", "<Leader>ff", telescope.find_files, {})
|
|
set("n", "<Leader>fg", telescope.live_grep, {})
|
|
set("n", "<Leader>fb", telescope.buffers, {})
|
|
set("n", "<Leader>fh", telescope.help_tags, {})
|
|
end
|
|
|
|
-- Better tabs
|
|
bind("n", "<S-t>", ":tabnew<CR>", opts)
|
|
bind("n", "<S-c>", ":tabclose<CR>", opts)
|
|
bind("n", "<S-n>", ":tabprev<CR>", opts)
|
|
bind("n", "<S-m>", ":tabnext<CR>", opts)
|
|
|
|
-- Better window navigation
|
|
bind("n", "<C-Left>", "<C-w>h", opts)
|
|
bind("n", "<C-Down>", "<C-w>j", opts)
|
|
bind("n", "<C-Up>", "<C-w>k", opts)
|
|
bind("n", "<C-Right>", "<C-w>l", opts)
|
|
|
|
-- Resize with arrows
|
|
bind("n", "<C-k>", ":resize -2<CR>", opts)
|
|
bind("n", "<C-j>", ":resize +2<CR>", opts)
|
|
bind("n", "<C-l>", ":vertical resize -2<CR>", opts)
|
|
bind("n", "<C-h>", ":vertical resize +2<CR>", opts)
|