1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Barber
b09c8ab204 Add spitjoin and endwise 2023-06-02 15:29:25 -05:00
2277117fec Upgrade a bunch of tools 2023-06-02 15:27:53 -05:00
7 changed files with 22 additions and 5 deletions

View File

@ -18,6 +18,11 @@ keymap("n", "<C-p>", ":Telescope find_files<CR>")
keymap("n", "<C-s>", ":Telescope live_grep<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
keymap("n", "<leader>f", vim.lsp.buf.format, { desc = "Format buffer" })

View File

@ -24,6 +24,7 @@ return function()
"vue",
"yaml",
},
timeout = 5000,
}),
null_ls.builtins.formatting.rustfmt,
null_ls.builtins.formatting.standardrb,

View File

@ -2,12 +2,14 @@ return function()
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
indent = { enable = true },
endwise = { enable = true },
context_commentstring = { enable = true },
auto_install = true,
sync_install = false,
ensure_installed = {
"bash",
"c",
"comment",
"css",
"dockerfile",
"eex",

View File

@ -0,0 +1,3 @@
return function()
require("treesj").setup()
end

View File

@ -7,6 +7,11 @@ return {
"hrsh7th/vim-vsnip",
"tpope/vim-fugitive",
"preservim/nerdcommenter",
{
"Wansmer/treesj",
dependencies = { "nvim-treesitter/nvim-treesitter" },
config = require("config.plugins.treesj"),
},
{
"MaximilianLloyd/ascii.nvim",
dependencies = {

View File

@ -9,7 +9,7 @@ return {
init = function()
-- PERF: no need to load the plugin, if we only need its queries for mini.ai
local plugin =
require("lazy.core.config").spec.plugins["nvim-treesitter"]
require("lazy.core.config").spec.plugins["nvim-treesitter"]
local opts = require("lazy.core.plugin").values(plugin, "opts", false)
local enabled = false
if opts.textobjects then
@ -28,6 +28,7 @@ return {
end,
},
"JoosepAlviste/nvim-ts-context-commentstring",
"RRethy/nvim-treesitter-endwise",
},
config = require("config.plugins.tree-sitter"),
},

View File

@ -1,8 +1,8 @@
ruby 2.7.4
ruby 3.2.1
nodejs 17.3.0
python 3.9.12
erlang 23.2.4
elixir 1.11.3
rust 1.56.1
erlang 25.3.2
elixir 1.14.5-otp-25
rust 1.69.0
yarn 1.22.10
crystal 1.2.2