enhancement: some vim enhancements
- mapleader moved to bindings file - vim number + relative number - signcolumn number - load everything after theme - remove tildas after buffer end
This commit is contained in:
parent
57b8649527
commit
684c0dbeaf
@ -1,3 +1,8 @@
|
|||||||
|
-- Set <space> as the leader key
|
||||||
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
-- ───────────────────── disable highlight on search ─────────────────────
|
-- ───────────────────── disable highlight on search ─────────────────────
|
||||||
vim.keymap.set({ "n", "i" }, "<C-H>", "<C-W>", { noremap = true, desc = "Delete word" })
|
vim.keymap.set({ "n", "i" }, "<C-H>", "<C-W>", { noremap = true, desc = "Delete word" })
|
||||||
|
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
-- Set <space> as the leader key
|
|
||||||
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
|
||||||
vim.g.mapleader = " "
|
|
||||||
vim.g.maplocalleader = " "
|
|
||||||
|
|
||||||
-- Set the number of spaces to use for each step of (auto)indent
|
-- Set the number of spaces to use for each step of (auto)indent
|
||||||
vim.opt.tabstop = 2 -- Number of spaces that a <Tab> counts for
|
vim.opt.tabstop = 2 -- Number of spaces that a <Tab> counts for
|
||||||
vim.opt.shiftwidth = 2 -- Number of spaces to use for each step of (auto)indent
|
vim.opt.shiftwidth = 2 -- Number of spaces to use for each step of (auto)indent
|
||||||
@ -20,6 +15,7 @@ vim.g.have_nerd_font = true
|
|||||||
-- For more options, you can see `:help option-list`
|
-- For more options, you can see `:help option-list`
|
||||||
|
|
||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
|
vim.opt.number = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||||
@ -42,7 +38,10 @@ vim.opt.ignorecase = true
|
|||||||
vim.opt.smartcase = true
|
vim.opt.smartcase = true
|
||||||
|
|
||||||
-- Keep signcolumn on by default
|
-- Keep signcolumn on by default
|
||||||
vim.opt.signcolumn = "yes"
|
vim.opt.signcolumn = "number"
|
||||||
|
|
||||||
|
-- Removes ~ after file end
|
||||||
|
vim.opt.fillchars:append({ eob = " " })
|
||||||
|
|
||||||
-- Decrease update time
|
-- Decrease update time
|
||||||
vim.opt.updatetime = 250
|
vim.opt.updatetime = 250
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require("goodhumored.common-vim-settings")
|
|
||||||
require("goodhumored.common-bindings")
|
require("goodhumored.common-bindings")
|
||||||
require("goodhumored.autocommands")
|
|
||||||
require("goodhumored.lazy")
|
require("goodhumored.lazy")
|
||||||
|
require("goodhumored.common-vim-settings")
|
||||||
|
require("goodhumored.autocommands")
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
Loading…
x
Reference in New Issue
Block a user