mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(nvim): nvim config rewrite (wip)
This commit is contained in:
parent
649ad5de0f
commit
f5a5fc368e
6 changed files with 163 additions and 513 deletions
36
.config/nvim/lua/core/settings.lua
Normal file
36
.config/nvim/lua/core/settings.lua
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
-- UI
|
||||
vim.o.hlsearch = false
|
||||
vim.o.relativenumber = true
|
||||
vim.o.mouse = 'a'
|
||||
vim.o.breakindent = true
|
||||
vim.o.undofile = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
vim.o.updatetime = 500
|
||||
vim.o.termguicolors = true
|
||||
vim.o.completeopt = "menu,preview"
|
||||
vim.o.scrolloff = 8
|
||||
|
||||
vim.wo.signcolumn = "yes"
|
||||
vim.wo.number = true
|
||||
|
||||
vim.opt.wrap = true
|
||||
vim.opt.backup = false
|
||||
|
||||
vim.cmd "colorscheme one-nvim"
|
||||
|
||||
-- Keymaps
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
|
||||
---- From THE one and only "Primeagen"
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||
vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
||||
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
vim.keymap.set("n", "n", "nzzzv")
|
||||
vim.keymap.set("n", "N", "Nzzzv")
|
||||
vim.keymap.set("n", "Q", "<nop>")
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue