Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Dec 11, 2024
1 parent 53bbe59 commit 696400e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion config/native/after/ftplugin/rust.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ local bufnr = vim.api.nvim_get_current_buf()
local lsp = require("pde.lsp")

lsp.start(require("pde.lsp.configs.rust_analyzer").config(bufnr), { bufnr = bufnr })

1 change: 0 additions & 1 deletion config/native/after/ftplugin/terraform-vars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ local bufnr = vim.api.nvim_get_current_buf()
local lsp = require("pde.lsp")

lsp.start(require("pde.lsp.configs.terraformls").config(bufnr), { bufnr = bufnr })

1 change: 0 additions & 1 deletion config/native/after/ftplugin/toml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ local bufnr = vim.api.nvim_get_current_buf()
local lsp = require("pde.lsp")

lsp.start(require("pde.lsp.configs.efm").config_from_single("taplo", bufnr), { bufnr = bufnr })

1 change: 0 additions & 1 deletion config/native/after/ftplugin/zig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ local bufnr = vim.api.nvim_get_current_buf()
local lsp = require("pde.lsp")

lsp.start(require("pde.lsp.configs.zls").config(bufnr), { bufnr = bufnr })

1 change: 0 additions & 1 deletion config/native/after/ftplugin/zir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ local bufnr = vim.api.nvim_get_current_buf()
local lsp = require("pde.lsp")

lsp.start(require("pde.lsp.configs.zls").config(bufnr), { bufnr = bufnr })

1 change: 0 additions & 1 deletion config/native/plugin/git-conflict.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@ vim.api.nvim_create_autocmd("User", {
)
end,
})

16 changes: 11 additions & 5 deletions config/native/plugin/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@ snacks.setup({
bigfile = { enabled = true },
gitbrowse = {
config = function(opts, _)
table.insert(opts.remote_patterns, { "repositories%.gitlab%.cerebredev", "gitlab.cerebredev" })
table.insert(
opts.remote_patterns,
{ "repositories%.gitlab%.cerebredev", "gitlab.cerebredev" }
)
opts.url_patterns["gitlab%.cerebredev%.com"] = opts.url_patterns["gitlab%.com"]
end,
},
})

local opts_with_desc = function(desc)
return { desc = "[snacks] " .. desc }
end
local opts_with_desc = function(desc) return { desc = "[snacks] " .. desc } end

vim.keymap.set({ "n", "v" }, "<leader>go", snacks.gitbrowse.open, opts_with_desc("open current file in the browser"))
vim.keymap.set(
{ "n", "v" },
"<leader>go",
snacks.gitbrowse.open,
opts_with_desc("open current file in the browser")
)

vim.keymap.set("n", "grf", snacks.rename.rename_file, opts_with_desc("Rename current file"))

0 comments on commit 696400e

Please sign in to comment.