mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Add spitjoin and endwise
This commit is contained in:
parent
2277117fec
commit
b09c8ab204
@ -18,6 +18,11 @@ keymap("n", "<C-p>", ":Telescope find_files<CR>")
|
|||||||
keymap("n", "<C-s>", ":Telescope live_grep<CR>")
|
keymap("n", "<C-s>", ":Telescope live_grep<CR>")
|
||||||
keymap("n", "<C-b>", ":Telescope buffers<CR>")
|
keymap("n", "<C-b>", ":Telescope buffers<CR>")
|
||||||
|
|
||||||
|
-- SplitJoin
|
||||||
|
keymap("n", "gs", ":TSJSplit<CR>", { desc = "Split block" })
|
||||||
|
keymap("n", "gj", ":TSJJoin<CR>", { desc = "Join blocks" })
|
||||||
|
keymap("n", "gm", ":TSJToggle<CR>", { desc = "SplitJoin togggle" })
|
||||||
|
|
||||||
-- Formatting
|
-- Formatting
|
||||||
keymap("n", "<leader>f", vim.lsp.buf.format, { desc = "Format buffer" })
|
keymap("n", "<leader>f", vim.lsp.buf.format, { desc = "Format buffer" })
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,7 @@ return function()
|
|||||||
"vue",
|
"vue",
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
},
|
||||||
|
timeout = 5000,
|
||||||
}),
|
}),
|
||||||
null_ls.builtins.formatting.rustfmt,
|
null_ls.builtins.formatting.rustfmt,
|
||||||
null_ls.builtins.formatting.standardrb,
|
null_ls.builtins.formatting.standardrb,
|
||||||
|
|||||||
@ -2,12 +2,14 @@ return function()
|
|||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
|
endwise = { enable = true },
|
||||||
context_commentstring = { enable = true },
|
context_commentstring = { enable = true },
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
"c",
|
||||||
|
"comment",
|
||||||
"css",
|
"css",
|
||||||
"dockerfile",
|
"dockerfile",
|
||||||
"eex",
|
"eex",
|
||||||
|
|||||||
3
config/nvim/lua/config/plugins/treesj.lua
Normal file
3
config/nvim/lua/config/plugins/treesj.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
return function()
|
||||||
|
require("treesj").setup()
|
||||||
|
end
|
||||||
@ -7,6 +7,11 @@ return {
|
|||||||
"hrsh7th/vim-vsnip",
|
"hrsh7th/vim-vsnip",
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
"preservim/nerdcommenter",
|
"preservim/nerdcommenter",
|
||||||
|
{
|
||||||
|
"Wansmer/treesj",
|
||||||
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
|
config = require("config.plugins.treesj"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"MaximilianLloyd/ascii.nvim",
|
"MaximilianLloyd/ascii.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|||||||
@ -28,6 +28,7 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
|
"RRethy/nvim-treesitter-endwise",
|
||||||
},
|
},
|
||||||
config = require("config.plugins.tree-sitter"),
|
config = require("config.plugins.tree-sitter"),
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user