ferris: initial setup
This commit is contained in:
parent
158f7c0dda
commit
b6dcd77355
3 changed files with 23 additions and 2 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -134,3 +134,6 @@
|
||||||
[submodule "pack/general/start/nvim-colorizer.lua"]
|
[submodule "pack/general/start/nvim-colorizer.lua"]
|
||||||
path = pack/general/start/nvim-colorizer.lua
|
path = pack/general/start/nvim-colorizer.lua
|
||||||
url = https://github.com/NvChad/nvim-colorizer.lua
|
url = https://github.com/NvChad/nvim-colorizer.lua
|
||||||
|
[submodule "pack/general/opt/ferris.nvim"]
|
||||||
|
path = pack/general/opt/ferris.nvim
|
||||||
|
url = https://github.com/vxpm/ferris.nvim
|
||||||
|
|
|
||||||
21
init.lua
21
init.lua
|
|
@ -654,17 +654,34 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
---- nvim-surround
|
---- nvim-surround
|
||||||
require("nvim-surround").setup()
|
require("nvim-surround").setup()
|
||||||
|
|
||||||
--- nvim-spider
|
---- nvim-spider
|
||||||
-- we need to use the ex-command version to cal the commands to allow dot repeatability
|
-- we need to use the ex-command version to cal the commands to allow dot repeatability
|
||||||
-- see: https://github.com/chrisgrieser/nvim-spider#installation
|
-- see: https://github.com/chrisgrieser/nvim-spider#installation
|
||||||
vim.keymap.set({ "n", "o", "x" }, "w", "<cmd>lua require('spider').motion('w')<CR>", { desc = "Spider-w" })
|
vim.keymap.set({ "n", "o", "x" }, "w", "<cmd>lua require('spider').motion('w')<CR>", { desc = "Spider-w" })
|
||||||
vim.keymap.set({ "n", "o", "x" }, "e", "<cmd>lua require('spider').motion('e')<CR>", { desc = "Spider-e" })
|
vim.keymap.set({ "n", "o", "x" }, "e", "<cmd>lua require('spider').motion('e')<CR>", { desc = "Spider-e" })
|
||||||
vim.keymap.set({ "n", "o", "x" }, "b", "<cmd>lua require('spider').motion('b')<CR>", { desc = "Spider-b" })
|
vim.keymap.set({ "n", "o", "x" }, "b", "<cmd>lua require('spider').motion('b')<CR>", { desc = "Spider-b" })
|
||||||
vim.keymap.set({ "n", "o", "x" }, "ge", "<cmd>lua require('spider').motion('ge')<CR>", { desc = "Spider-ge" })
|
vim.keymap.set({ "n", "o", "x" }, "ge", "<cmd>lua require('spider').motion('ge')<CR>", { desc = "Spider-ge" })
|
||||||
--- colorizer
|
|
||||||
|
---- colorizer
|
||||||
require 'colorizer'.setup({
|
require 'colorizer'.setup({
|
||||||
user_default_options = {
|
user_default_options = {
|
||||||
names = false,
|
names = false,
|
||||||
css_fn = true,
|
css_fn = true,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
---- ferris.nvim
|
||||||
|
vim.g.ferris_loaded = false
|
||||||
|
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
|
pattern = { "rust" },
|
||||||
|
callback = function()
|
||||||
|
if vim.g.ferris_loaded then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
vim.g.ferris_loaded = true
|
||||||
|
vim.cmd("packadd ferris.nvim")
|
||||||
|
|
||||||
|
require("ferris").setup()
|
||||||
|
vim.keymap.set("n", "<leader>od", require("ferris.methods.open_documentation"))
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
|
||||||
1
pack/general/opt/ferris.nvim
Submodule
1
pack/general/opt/ferris.nvim
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit ecc3b463ca8b138ce6a1eaab56c9b9e36d8fb29f
|
||||||
Loading…
Add table
Reference in a new issue