1
0
Fork 0

ferris: initial setup

This commit is contained in:
Felipe 2023-11-10 01:11:22 -03:00
parent 158f7c0dda
commit b6dcd77355
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk
3 changed files with 23 additions and 2 deletions

3
.gitmodules vendored
View file

@ -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

View file

@ -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,
})

@ -0,0 +1 @@
Subproject commit ecc3b463ca8b138ce6a1eaab56c9b9e36d8fb29f