chore(nvim): other stuff
This commit is contained in:
parent
48459eb333
commit
13ae0c0e78
4 changed files with 85 additions and 25 deletions
|
@ -10,5 +10,9 @@ return {
|
||||||
priority = 1000
|
priority = 1000
|
||||||
},
|
},
|
||||||
{ "blazkowolf/gruber-darker.nvim" },
|
{ "blazkowolf/gruber-darker.nvim" },
|
||||||
{ "sainnhe/everforest" }
|
{ "sainnhe/everforest" },
|
||||||
|
{
|
||||||
|
"navarasu/onedark.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,28 +19,28 @@ return {
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {}
|
opts = {}
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
"ray-x/go.nvim",
|
-- "ray-x/go.nvim",
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
"ray-x/guihua.lua",
|
-- "ray-x/guihua.lua",
|
||||||
"neovim/nvim-lspconfig",
|
-- "neovim/nvim-lspconfig",
|
||||||
"nvim-treesitter/nvim-treesitter",
|
-- "nvim-treesitter/nvim-treesitter",
|
||||||
},
|
-- },
|
||||||
config = function(lp, opts)
|
-- config = function(lp, opts)
|
||||||
require("go").setup(opts)
|
-- require("go").setup(opts)
|
||||||
local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
|
-- local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
|
||||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
-- vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
pattern = "*.go",
|
-- pattern = "*.go",
|
||||||
callback = function()
|
-- callback = function()
|
||||||
require('go.format').goimports()
|
-- require('go.format').goimports()
|
||||||
end,
|
-- end,
|
||||||
group = format_sync_grp,
|
-- group = format_sync_grp,
|
||||||
})
|
-- })
|
||||||
end,
|
-- end,
|
||||||
event = { "CmdlineEnter" },
|
-- event = { "CmdlineEnter" },
|
||||||
ft = { "go", 'gomod' },
|
-- ft = { "go", 'gomod' },
|
||||||
build = ':lua require("go.install").update_all_sync()'
|
-- build = ':lua require("go.install").update_all_sync()'
|
||||||
},
|
-- },
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
@ -115,10 +115,14 @@ return {
|
||||||
assignVariablesTypes = true,
|
assignVariablesTypes = true,
|
||||||
compositeLiteralFields = true,
|
compositeLiteralFields = true,
|
||||||
compositeLiteralTypes = true,
|
compositeLiteralTypes = true,
|
||||||
|
completeUnimported = true,
|
||||||
constantValues = true,
|
constantValues = true,
|
||||||
functionTypeParameters = true,
|
functionTypeParameters = true,
|
||||||
parameterNames = true,
|
parameterNames = true,
|
||||||
rangeVariableTypes = true
|
rangeVariableTypes = true,
|
||||||
|
analyses = {
|
||||||
|
unusedparams = true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -165,6 +169,9 @@ return {
|
||||||
lspconfig["pyright"].setup({
|
lspconfig["pyright"].setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
lspconfig["sourcekit"].setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -172,6 +179,12 @@ return {
|
||||||
version = '^5',
|
version = '^5',
|
||||||
lazy = false
|
lazy = false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"leoluz/nvim-dap-go",
|
||||||
|
ft = "go",
|
||||||
|
dependencies = "mfussenegger/nvim-dap",
|
||||||
|
opts = {}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
|
|
@ -47,9 +47,27 @@ return {
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
|
{
|
||||||
|
'codethread/qmk.nvim',
|
||||||
|
config = function()
|
||||||
|
---@type qmk.UserConfig
|
||||||
|
local conf = {
|
||||||
|
name = 'LAYOUT_lily58_pro',
|
||||||
|
variant = 'zmk',
|
||||||
|
layout = {
|
||||||
|
'x x x x x x _ _ _ _ x x x x x x',
|
||||||
|
'x x x x x x _ _ _ _ x x x x x x',
|
||||||
|
'x x x x x x _ _ _ _ x x x x x x',
|
||||||
|
'x x x x x x x _ _ x x x x x x x',
|
||||||
|
'_ _ _ x x x x _ _ x x x x _ _ _',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
require('qmk').setup(conf)
|
||||||
|
end
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"afonsofrancof/worktrees.nvim",
|
"afonsofrancof/worktrees.nvim",
|
||||||
dev = true,
|
dev = false,
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
mappings = {
|
mappings = {
|
||||||
|
@ -58,5 +76,29 @@ return {
|
||||||
switch = "<leader>wts",
|
switch = "<leader>wts",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"afonsofrancof/osc11.nvim",
|
||||||
|
dev = false,
|
||||||
|
dependencies = {
|
||||||
|
"navarasu/onedark.nvim",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
on_dark = function()
|
||||||
|
vim.g.gruvbox_material_better_performance = 1
|
||||||
|
vim.g.gruvbox_material_background = "hard"
|
||||||
|
vim.g.gruvbox_material_foreground = "original"
|
||||||
|
vim.g.gruvbox_material_transparent_background = 2
|
||||||
|
vim.opt.background = "dark"
|
||||||
|
vim.cmd('colorscheme gruvbox-material')
|
||||||
|
end,
|
||||||
|
on_light = function()
|
||||||
|
require('onedark').setup {
|
||||||
|
style = 'light'
|
||||||
|
}
|
||||||
|
-- Enable theme
|
||||||
|
require('onedark').load()
|
||||||
|
end,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,4 +53,5 @@ return {
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
"kyoh86/vim-jsonl"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue