Compare commits
4 Commits
4fb307840b
...
c4a77e9d1b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4a77e9d1b | ||
|
|
97efab296d | ||
|
|
5081396ccf | ||
|
|
d65c92e8ad |
@@ -44,6 +44,13 @@ https://github.com/sharkdp/bat
|
||||
brew install bat
|
||||
```
|
||||
|
||||
### Doggo
|
||||
https://github.com/mr-karan/doggo
|
||||
|
||||
```shell
|
||||
brew install doggo
|
||||
```
|
||||
|
||||
### Eza
|
||||
https://github.com/eza-community/eza
|
||||
|
||||
|
||||
@@ -7,33 +7,21 @@
|
||||
# https://github.com/junegunn/fzf
|
||||
brew install fzf
|
||||
|
||||
# https://github.com/alesbrelih/gitlab-ci-ls
|
||||
brew install alesbrelih/gitlab-ci-ls/gitlab-ci-ls
|
||||
|
||||
# https://github.com/golang/go
|
||||
brew install go
|
||||
|
||||
# https://github.com/jesseduffield/lazygit
|
||||
brew install lazygit
|
||||
|
||||
# https://github.com/LuaLS/lua-language-server
|
||||
brew install lua-language-server
|
||||
|
||||
# https://github.com/getsops/sops
|
||||
brew onstall sops
|
||||
|
||||
# https://github.com/hashicorp/terraform-ls
|
||||
brew install terraform-ls
|
||||
|
||||
# https://tree-sitter.github.io/
|
||||
brew install tree-sitter
|
||||
|
||||
# https://github.com/redhat-developer/yaml-language-server
|
||||
brew install yaml-language-server
|
||||
|
||||
# https://github.com/docker/docker-language-server
|
||||
brew install docker-language-server
|
||||
|
||||
# https://github.com/ryanoasis/nerd-fonts
|
||||
brew install --cask font-jetbrains-mono-nerd-font
|
||||
|
||||
# https://rust-lang.org/ for cargo package manager
|
||||
brew install rust
|
||||
```
|
||||
|
||||
@@ -33,8 +33,6 @@ keymap.set("n", "<leader>ch", ":nohl<CR>", { desc = "[C]lear: serch [h]ighlights
|
||||
|
||||
-- [D]iagnostic
|
||||
keymap.set("n", "<leader>dl", vim.diagnostic.open_float, { desc = "[D]iagnostic: [l]ine" })
|
||||
keymap.set("n", "K", vim.lsp.buf.hover, { desc = "Hover Documentation" })
|
||||
keymap.set({ "n", "v" }, "<leader>da", vim.lsp.buf.code_action, { desc = "[D]iagnostic: avalible code [a]ctions" })
|
||||
-- nvim-telescope/telescope.nvim
|
||||
keymap.set("n", "<leader>db", "<cmd>Telescope diagnostics bufnr=0<CR>", { desc = "[D]iagnostic: [b]uffer" })
|
||||
-- folke/trouble.nvim
|
||||
@@ -81,10 +79,12 @@ keymap.set("n", "<leader>hn", function() Snacks.picker.notifications() end, { de
|
||||
keymap.set("n", "<leader>hc", function() Snacks.picker.command_history() end, { desc = "[H]istory: [C]ommands" } )
|
||||
|
||||
-- [L]SP
|
||||
keymap.set({ "n", "v" }, "<leader>ld", vim.lsp.buf.hover, { desc = "[L]SP: Hover [D]ocumentation" })
|
||||
keymap.set({ "n", "v" }, "<leader>la", vim.lsp.buf.code_action, { desc = "[L]SP: avalible code [a]ctions" })
|
||||
-- folke/snacks.nvim
|
||||
keymap.set("n", "<leader>lf", function() Snacks.picker.lsp_definitions() end, { desc = "[L]SP: Goto De[f]initions" })
|
||||
keymap.set("n", "<leader>lc", function() Snacks.picker.lsp_declarations() end, { desc = "[L]SP: Goto De[c]larations" })
|
||||
keymap.set("n", "<leader>le", function() Snacks.picker.lsp_references() end, { desc = "[L]SP: Goto R[e]ferences" })
|
||||
keymap.set("n", "<leader>le", function() Snacks.picker.lsp_references() end, { desc = "[L]SP: R[e]ferences" })
|
||||
keymap.set("n", "<leader>li", function() Snacks.picker.lsp_implementations() end, { desc = "[L]SP: Goto [I]mplementations" })
|
||||
keymap.set("n", "<leader>ly", function() Snacks.picker.lsp_type_definitions() end, { desc = "[L]SP: Goto T[y]pe Definitions" })
|
||||
|
||||
@@ -116,6 +116,8 @@ keymap.set("n", "<leader>ug", function() Snacks.lazygit() end, { desc = "[U]I: O
|
||||
keymap.set("n", "<leader>ud", function() Snacks.dashboard() end, { desc = "[U]I: Open [D]ashboard" })
|
||||
-- folke/lazy.nvim
|
||||
keymap.set("n", "<leader>ul", "<cmd>Lazy<CR>", { desc = "[U]I: Open [L]azyVim" })
|
||||
-- mason-org/mason.nvim
|
||||
keymap.set("n", "<leader>um", "<cmd>Mason<CR>", { desc = "[U]I: Open [M]ason" })
|
||||
|
||||
-- Misc
|
||||
-- VonHeikemen/fine-cmdline.nvim
|
||||
|
||||
38
nvim/lua/plugins/mason.lua
Normal file
38
nvim/lua/plugins/mason.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
-- https://github.com/mason-org/mason.nvim
|
||||
-- https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim
|
||||
return {
|
||||
{
|
||||
"mason-org/mason.nvim",
|
||||
opts = {
|
||||
registries = {
|
||||
"file:~/.config/mason-registry",
|
||||
"github:mason-org/mason-registry",
|
||||
},
|
||||
ui = {
|
||||
icons = {
|
||||
package_installed = "✓",
|
||||
package_pending = "➜",
|
||||
package_uninstalled = "✗"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"docker-language-server",
|
||||
"gitlab-ci-ls",
|
||||
"lua-language-server",
|
||||
"prettier",
|
||||
"prettierd",
|
||||
"stylua",
|
||||
"terraform-ls",
|
||||
"yaml-language-server",
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,8 @@ return {
|
||||
{ icon = " ", key = "ff", desc = "Find File", action = ":Telescope find_files" },
|
||||
{ icon = " ", key = "fs", desc = "Find String", action = ":Telescope live_grep" },
|
||||
{ icon = " ", key = "s", desc = "Restore Session", action = ":AutoSession restore"},
|
||||
{ icon = " ", key = "L", desc = "Lazy UI", action = ":Lazy", enabled = package.loaded.lazy ~= nil },
|
||||
{ icon = " ", key = "L", desc = "Lazy UI", action = ":Lazy" },
|
||||
{ icon = " ", key = "M", desc = "Mason UI", action = ":Mason" },
|
||||
{ icon = " ", key = "G", desc = "LazyGit", action = function() Snacks.lazygit() end},
|
||||
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
||||
},
|
||||
|
||||
@@ -12,6 +12,7 @@ return {
|
||||
local telescope = require("telescope")
|
||||
local actions = require("telescope.actions")
|
||||
|
||||
---@diagnostic disable-next-line undefined-field
|
||||
telescope.setup({
|
||||
defaults = {
|
||||
path_display = { "smart" },
|
||||
@@ -19,12 +20,14 @@ return {
|
||||
i = {
|
||||
["<C-k>"] = actions.move_selection_previous, -- move to prev result
|
||||
["<C-j>"] = actions.move_selection_next, -- move to next result
|
||||
["<C-a>"] = actions.add_to_qflist, -- add all to qflist
|
||||
["<C-q>"] = actions.send_selected_to_qflist, -- add to qflist
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
---@diagnostic disable-next-line undefined-field
|
||||
telescope.load_extension("fzf")
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ style = "bold red"
|
||||
|
||||
[kubernetes]
|
||||
disabled = false
|
||||
format = 'ctx [$symbol$context]($style)'
|
||||
format = 'ctx [$symbol$context( \($namespace\)) ]($style)'
|
||||
|
||||
[palettes.catppuccin_mocha]
|
||||
rosewater = "#f5e0dc"
|
||||
|
||||
Reference in New Issue
Block a user