mirror of
https://codeberg.org/Mo8it/server_dotfiles.git
synced 2024-12-04 23:50:31 +00:00
Update config from normal nvim config
This commit is contained in:
parent
32ac3f6cc4
commit
339430d629
1 changed files with 9 additions and 14 deletions
|
@ -2,19 +2,11 @@
|
|||
--------------
|
||||
|
||||
-- Highlight on yank
|
||||
local function custom_highlight_on_yank()
|
||||
vim.highlight.on_yank({ timeout = 1200 })
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
pattern = "*",
|
||||
callback = custom_highlight_on_yank,
|
||||
})
|
||||
|
||||
-- Autoresize
|
||||
vim.api.nvim_create_autocmd("VimResized", {
|
||||
pattern = "*",
|
||||
command = "wincmd =",
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ timeout = 1200 })
|
||||
end,
|
||||
})
|
||||
|
||||
-- keybindings.lua
|
||||
|
@ -36,11 +28,15 @@ set("", "<Space>", "<Nop>", opts)
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
--
|
||||
|
||||
set("n", "<space>l", cmd("noh"), opts)
|
||||
|
||||
set("v", ">", ">gv", opts)
|
||||
set("v", "<", "<gv", opts)
|
||||
|
||||
set("n", "<C-d>", cmd("bd"), opts)
|
||||
|
||||
-- options.lua
|
||||
--------------
|
||||
|
||||
|
@ -48,6 +44,8 @@ local o = vim.o
|
|||
|
||||
--
|
||||
|
||||
o.mouse = ""
|
||||
|
||||
o.expandtab = true
|
||||
o.tabstop = 4
|
||||
o.shiftwidth = 4
|
||||
|
@ -86,6 +84,3 @@ o.linebreak = true
|
|||
o.laststatus = 3
|
||||
|
||||
o.pumblend = 10
|
||||
|
||||
-- Disable diagnostics
|
||||
vim.diagnostic.disable()
|
||||
|
|
Loading…
Reference in a new issue