refactor + feat: replaced nvim-cmp w/ coq_nvim and refactored everything
This commit is contained in:
parent
f82cc2bc93
commit
7a906314d8
19 changed files with 435 additions and 311 deletions
|
|
@ -1,28 +1,49 @@
|
|||
-- neovim/vim options
|
||||
-- neovim/vim variables
|
||||
local opt = vim.opt
|
||||
local keybind = vim.keymap.set
|
||||
|
||||
opt.guicursor = "" -- For indentation
|
||||
-- transperency
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "EndOfBuffer", { bg = "none" })
|
||||
|
||||
-- basic
|
||||
opt.relativenumber = true
|
||||
opt.number = true
|
||||
|
||||
opt.tabstop = 2
|
||||
opt.softtabstop = 2
|
||||
opt.shiftwidth = 2
|
||||
opt.smartindent = true
|
||||
|
||||
opt.hlsearch = false
|
||||
opt.incsearch = true
|
||||
|
||||
opt.termguicolors = true
|
||||
|
||||
vim.g.rust_recommended_style = 0
|
||||
-- indentation
|
||||
opt.tabstop = 2
|
||||
opt.softtabstop = 0
|
||||
opt.shiftwidth = 2
|
||||
opt.smarttab = true
|
||||
opt.smartindent = true
|
||||
|
||||
-- Keybinds
|
||||
local keybind = vim.keymap.set
|
||||
keybind('n', "<leader>hh", '<cmd>lua vim.diagnostic.setqflist()<CR>')
|
||||
keybind('v', "<leader>ii", '\"+y')
|
||||
keybind('n', "<leader>bb", '<cmd>bprevious<CR>')
|
||||
keybind('n', "<leader>nn", '<cmd>bnext<CR>')
|
||||
keybind('n', "<leader>,,", '<cmd>bdel<CR>')
|
||||
keybind('i', "jk", '<Esc>') -- For justin
|
||||
-- searches
|
||||
opt.incsearch = true
|
||||
|
||||
-- mapleader
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- keybinds
|
||||
keybind("n", "<leader>hh", "<cmd>lua vim.diagnostic.setqflist()<CR>")
|
||||
-- for buffers
|
||||
keybind("n", "<leader>bb", "<cmd>bprevious<CR>")
|
||||
keybind("n", "<leader>nn", "<cmd>bnext<CR>")
|
||||
keybind("n", "<leader>,,", "<cmd>bdel<CR>")
|
||||
-- for visual mode
|
||||
keybind("v", "<leader>ii", '"+y', { desc = "Copy to clipboard ( + yank)" })
|
||||
keybind("v", "<", "<gv", { desc = "Indent left and reselect" })
|
||||
keybind("v", ">", ">gv", { desc = "Indent right and reselect" })
|
||||
keybind("v", "<S-Up>", ":m '<-2<CR>gv", { desc = "Move selection up" })
|
||||
keybind("v", "<S-Down>", ":m '>+1<CR>gv", { desc = "Move selection down" })
|
||||
-- friend keybinds
|
||||
keybind("i", "jk", "<Esc>", { desc = "Keybind set for Justin" })
|
||||
|
||||
-- file handling
|
||||
opt.backup = false
|
||||
opt.writebackup = false
|
||||
opt.swapfile = false
|
||||
opt.undofile = true
|
||||
opt.undodir = vim.fn.expand("~/.nvim/undodir")
|
||||
opt.autoread = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue