chore(nvim): a bunch of stuff
This commit is contained in:
parent
674dcb8d12
commit
c388f2843a
5 changed files with 18 additions and 6 deletions
|
@ -24,7 +24,7 @@ vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>")
|
||||||
vim.keymap.set("n", "<space>x", ":.lua<CR>")
|
vim.keymap.set("n", "<space>x", ":.lua<CR>")
|
||||||
vim.keymap.set("v", "<space>x", ":lua<CR>")
|
vim.keymap.set("v", "<space>x", ":lua<CR>")
|
||||||
--Merge lines in visual mode
|
--Merge lines in visual mode
|
||||||
vim.keymap.set("v", "J", function()
|
vim.keymap.set("v", "<A-J>", function()
|
||||||
for _ = 1, vim.fn.getpos("'>")[2] - vim.fn.getpos("'<")[2] - 1 do
|
for _ = 1, vim.fn.getpos("'>")[2] - vim.fn.getpos("'<")[2] - 1 do
|
||||||
vim.api.nvim_command("normal! J")
|
vim.api.nvim_command("normal! J")
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
vim.g.gruvbox_material_better_performance = 1
|
vim.g.gruvbox_material_better_performance=1
|
||||||
vim.g.gruvbox_material_background = 'hard'
|
vim.g.gruvbox_material_background="medium"
|
||||||
vim.g.gruvbox_material_foreground = 'original'
|
vim.g.gruvbox_material_foreground="material"
|
||||||
vim.opt.background = 'dark'
|
vim.opt.background="dark"
|
||||||
vim.cmd('colorscheme gruvbox-material')
|
vim.cmd('colorscheme gruvbox-material')
|
||||||
|
|
|
@ -9,8 +9,9 @@ vim.wo.relativenumber = true
|
||||||
vim.opt.hlsearch = false
|
vim.opt.hlsearch = false
|
||||||
vim.opt.incsearch = true
|
vim.opt.incsearch = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
-- Make searches case insensitive (except when using uppercase)
|
||||||
|
vim.opt.smartcase = true
|
||||||
--Change word definition
|
--Change word definition
|
||||||
vim.opt.iskeyword:append("-")
|
|
||||||
vim.opt.iskeyword:append("_")
|
vim.opt.iskeyword:append("_")
|
||||||
--Remove Wrap
|
--Remove Wrap
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
|
|
|
@ -4,4 +4,9 @@ return {
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"EdenEast/nightfox.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
priority = 1000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,5 +96,11 @@ return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"nvim-tree/nvim-web-devicons"
|
"nvim-tree/nvim-web-devicons"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'norcalli/nvim-colorizer.lua',
|
||||||
|
config = function()
|
||||||
|
require 'colorizer'.setup()
|
||||||
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue