Compare commits

..

4 Commits

Author SHA1 Message Date
Valeriy Filippov
c4a77e9d1b Add mason for lsp and formatters install 2026-03-11 09:43:52 +03:00
Valeriy Filippov
97efab296d Upd keymaps and dashboard 2026-03-11 09:43:29 +03:00
Valeriy Filippov
5081396ccf Add doggo 2026-03-11 09:42:47 +03:00
Valeriy Filippov
d65c92e8ad Upd starship to show k8s context and ns 2026-03-11 09:42:34 +03:00
7 changed files with 59 additions and 20 deletions

View File

@@ -44,6 +44,13 @@ https://github.com/sharkdp/bat
brew install bat brew install bat
``` ```
### Doggo
https://github.com/mr-karan/doggo
```shell
brew install doggo
```
### Eza ### Eza
https://github.com/eza-community/eza https://github.com/eza-community/eza

View File

@@ -7,33 +7,21 @@
# https://github.com/junegunn/fzf # https://github.com/junegunn/fzf
brew install 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 # https://github.com/golang/go
brew install go brew install go
# https://github.com/jesseduffield/lazygit # https://github.com/jesseduffield/lazygit
brew install lazygit brew install lazygit
# https://github.com/LuaLS/lua-language-server
brew install lua-language-server
# https://github.com/getsops/sops # https://github.com/getsops/sops
brew onstall sops brew onstall sops
# https://github.com/hashicorp/terraform-ls
brew install terraform-ls
# https://tree-sitter.github.io/ # https://tree-sitter.github.io/
brew install tree-sitter 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 # https://github.com/ryanoasis/nerd-fonts
brew install --cask font-jetbrains-mono-nerd-font brew install --cask font-jetbrains-mono-nerd-font
# https://rust-lang.org/ for cargo package manager
brew install rust
``` ```

View File

@@ -33,8 +33,6 @@ keymap.set("n", "<leader>ch", ":nohl<CR>", { desc = "[C]lear: serch [h]ighlights
-- [D]iagnostic -- [D]iagnostic
keymap.set("n", "<leader>dl", vim.diagnostic.open_float, { desc = "[D]iagnostic: [l]ine" }) 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 -- nvim-telescope/telescope.nvim
keymap.set("n", "<leader>db", "<cmd>Telescope diagnostics bufnr=0<CR>", { desc = "[D]iagnostic: [b]uffer" }) keymap.set("n", "<leader>db", "<cmd>Telescope diagnostics bufnr=0<CR>", { desc = "[D]iagnostic: [b]uffer" })
-- folke/trouble.nvim -- 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" } ) keymap.set("n", "<leader>hc", function() Snacks.picker.command_history() end, { desc = "[H]istory: [C]ommands" } )
-- [L]SP -- [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 -- 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>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>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>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" }) 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" }) keymap.set("n", "<leader>ud", function() Snacks.dashboard() end, { desc = "[U]I: Open [D]ashboard" })
-- folke/lazy.nvim -- folke/lazy.nvim
keymap.set("n", "<leader>ul", "<cmd>Lazy<CR>", { desc = "[U]I: Open [L]azyVim" }) 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 -- Misc
-- VonHeikemen/fine-cmdline.nvim -- VonHeikemen/fine-cmdline.nvim

View 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",
},
}
}

View File

@@ -55,7 +55,8 @@ return {
{ icon = "", key = "ff", desc = "Find File", action = ":Telescope find_files" }, { icon = "", key = "ff", desc = "Find File", action = ":Telescope find_files" },
{ icon = "", key = "fs", desc = "Find String", action = ":Telescope live_grep" }, { icon = "", key = "fs", desc = "Find String", action = ":Telescope live_grep" },
{ icon = "", key = "s", desc = "Restore Session", action = ":AutoSession restore"}, { 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 = "G", desc = "LazyGit", action = function() Snacks.lazygit() end},
{ icon = "", key = "q", desc = "Quit", action = ":qa" }, { icon = "", key = "q", desc = "Quit", action = ":qa" },
}, },

View File

@@ -12,6 +12,7 @@ return {
local telescope = require("telescope") local telescope = require("telescope")
local actions = require("telescope.actions") local actions = require("telescope.actions")
---@diagnostic disable-next-line undefined-field
telescope.setup({ telescope.setup({
defaults = { defaults = {
path_display = { "smart" }, path_display = { "smart" },
@@ -19,12 +20,14 @@ return {
i = { i = {
["<C-k>"] = actions.move_selection_previous, -- move to prev result ["<C-k>"] = actions.move_selection_previous, -- move to prev result
["<C-j>"] = actions.move_selection_next, -- move to next 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 ["<C-q>"] = actions.send_selected_to_qflist, -- add to qflist
}, },
}, },
}, },
}) })
---@diagnostic disable-next-line undefined-field
telescope.load_extension("fzf") telescope.load_extension("fzf")
end, end,
} }

View File

@@ -36,7 +36,7 @@ style = "bold red"
[kubernetes] [kubernetes]
disabled = false disabled = false
format = 'ctx [$symbol$context]($style)' format = 'ctx [$symbol$context( \($namespace\)) ]($style)'
[palettes.catppuccin_mocha] [palettes.catppuccin_mocha]
rosewater = "#f5e0dc" rosewater = "#f5e0dc"