mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update lvim, zsh, vscode
This commit is contained in:
parent
4c57b36f1b
commit
c36863d722
28 changed files with 613 additions and 115 deletions
11
config/lvim/lua/user/conjure.lua
Normal file
11
config/lvim/lua/user/conjure.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
local M = {}
|
||||
|
||||
local g = vim.g
|
||||
|
||||
M.setup = function()
|
||||
vim.g.localleader = ","
|
||||
|
||||
g["conjure#filetype#fennel"] = "conjure.client.fennel.stdio"
|
||||
end
|
||||
|
||||
return M
|
||||
14
config/lvim/lua/user/hop.lua
Normal file
14
config/lvim/lua/user/hop.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
local M = {}
|
||||
|
||||
function M.map(mode, key, cmd)
|
||||
vim.api.nvim_set_keymap(mode, key, cmd, { silent = true })
|
||||
end
|
||||
|
||||
M.setup = function()
|
||||
require("hop").setup()
|
||||
|
||||
M.map("n", "f", "<cmd>HopWord<cr>")
|
||||
M.map("n", "F", "<cmd>HopLine<cr>")
|
||||
end
|
||||
|
||||
return M
|
||||
22
config/lvim/lua/user/package-info.lua
Normal file
22
config/lvim/lua/user/package-info.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
local M = {}
|
||||
|
||||
M.setup = function()
|
||||
require("package-info").setup {
|
||||
{
|
||||
autostart = true,
|
||||
colors = {
|
||||
up_to_date = "#3C4048",
|
||||
outdated = "#6ec0fa",
|
||||
},
|
||||
icons = {
|
||||
enable = true,
|
||||
style = {
|
||||
up_to_date = "| ",
|
||||
outdated = "| ",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
20
config/lvim/lua/user/spectre.lua
Normal file
20
config/lvim/lua/user/spectre.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
local M = {}
|
||||
|
||||
M.setup = function()
|
||||
require("spectre").setup {
|
||||
color_devicons = true,
|
||||
highlights = { ui = "String", search = "DiffChange", replace = "DiffDelete" },
|
||||
find_engine = {
|
||||
["rg"] = {
|
||||
cmd = "rg",
|
||||
args = { "--color=never", "--no-heading", "--with-filename", "--line-number", "--column" },
|
||||
options = {
|
||||
["ignore-case"] = { value = "--ignore-case", icon = "[I]", desc = "ignore case" },
|
||||
["hidden"] = { value = "--hidden", desc = "hidden file", icon = "[H]" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue