Skip to content

Commit

Permalink
chore(nvim): update lazyvim config
Browse files Browse the repository at this point in the history
  • Loading branch information
miszo committed Nov 12, 2024
1 parent 827ce0e commit 77b4b0e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ return {
enabled = true,
custom_bg = colors.mantle,
},
overseer = true,
telescope = {
enabled = true,
style = 'nvchad',
Expand Down
25 changes: 18 additions & 7 deletions home/dot_config/exact_nvim/exact_lua/exact_plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ return {
},
-- Completion emoji
{
'nvim-cmp',
'hrsh7th/nvim-cmp',
dependencies = { 'hrsh7th/cmp-emoji' },
opts = function(_, opts)
table.insert(opts.sources, { name = 'emoji' })
Expand Down Expand Up @@ -86,7 +86,7 @@ return {
-- NPM Package info
{
'vuki656/package-info.nvim',
dependencies = { 'folke/which-key.nvim', 'MunifTanjim/nui.nvim', 'catppuccin/nvim' },
dependencies = { 'MunifTanjim/nui.nvim', 'catppuccin/nvim' },
ft = { 'json' },
opts = {
autostart = true,
Expand All @@ -95,7 +95,6 @@ return {
package_manager = 'pnpm',
},
keys = function()
require('which-key').add({ '<leader>n', group = 'PackageInfo' })
local function map(key, cmd, desc)
vim.keymap.set({ 'n' }, '<leader>n' .. key, cmd, { desc = desc, silent = true, noremap = true })
end
Expand All @@ -112,24 +111,25 @@ return {
-- Open openapi preview in swagger-ui
{
'vinnymeller/swagger-preview.nvim',
build = 'npm install -g swagger-ui-watcher',
build = 'npm i',
cmd = { 'SwaggerPreview', 'SwaggerPreviewStop', 'SwaggerPreviewToggle' },
keys = {
{
'<leader>os',
'<leader>Os',
function()
require('swagger-preview').start_server()
end,
desc = 'Open preview OpenAPI in Swagger UI',
},
{
'<leader>ox',
'<leader>Ox',
function()
require('swagger-preview').stop_server()
end,
desc = 'Stop preview OpenAPI in Swagger UI',
},
{
'<leader>ot',
'<leader>Ot',
function()
require('swagger-preview').toggle_server()
end,
Expand Down Expand Up @@ -213,6 +213,17 @@ return {
})
end,
},
-- Which key
{
'folke/which-key.nvim',
optional = true,
opts = {
spec = {
{ '<leader>n', group = 'PackageInfo' },
{ '<leader>O', group = 'OpenAPI Swagger' },
},
},
},
-- Local plugins
{
dir = '../local-plugins/copy-filepath',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
return {
{
'typed-rocks/ts-worksheet-neovim',
dependencies = { 'folke/which-key.nvim', 'echasnovski/mini.icons' },
config = function(_, opts)
require('tsw').setup(opts)

local icons = require('mini.icons')
require('which-key').add({ '<leader>W', group = 'TSWorksheet', icon = icons.get('extension', 'ts') })
local function map(key, cmd, desc)
vim.keymap.set({ 'n' }, '<leader>W' .. key, cmd, { desc = desc, silent = true, noremap = true })
end
Expand All @@ -15,4 +11,15 @@ return {
map('b', '<cmd>Tsw rt=bun show_variables=true show_order=true<cr>', 'Run Tsw with Bun')
end,
},
-- Which key
{
'folke/which-key.nvim',
optional = true,
dependencies = { 'echasnovski/mini.icons' },
opts = {
spec = {
{ '<leader>W', group = 'TSWorksheet', icon = require('mini.icons').get('extension', 'ts') },
},
},
},
}
9 changes: 5 additions & 4 deletions home/dot_config/exact_nvim/lazyvim.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extras": [
"lazyvim.plugins.extras.coding.copilot",
"lazyvim.plugins.extras.coding.copilot-chat",
"lazyvim.plugins.extras.ai.copilot",
"lazyvim.plugins.extras.ai.copilot-chat",
"lazyvim.plugins.extras.coding.mini-comment",
"lazyvim.plugins.extras.coding.mini-surround",
"lazyvim.plugins.extras.coding.neogen",
Expand All @@ -11,6 +11,7 @@
"lazyvim.plugins.extras.editor.leap",
"lazyvim.plugins.extras.editor.mini-move",
"lazyvim.plugins.extras.editor.navic",
"lazyvim.plugins.extras.editor.overseer",
"lazyvim.plugins.extras.editor.refactoring",
"lazyvim.plugins.extras.formatting.prettier",
"lazyvim.plugins.extras.lang.astro",
Expand Down Expand Up @@ -41,5 +42,5 @@
"NEWS.md": "7107",
"doc/news.txt": "24450"
},
"version": 6
}
"version": 7
}

0 comments on commit 77b4b0e

Please sign in to comment.