anual lazy sync update
This commit is contained in:
parent
04431f7ba9
commit
c07c2c5477
@ -60,6 +60,10 @@ return {
|
||||
luasnip.lsp_expand(args.body)
|
||||
end,
|
||||
},
|
||||
preselect = cmp.PreselectMode.None,
|
||||
completion = {
|
||||
completeopt = "noselect,menuone,menu"
|
||||
},
|
||||
sorting = {
|
||||
-- TODO: Would be cool to add stuff like "See variable names before method names" in rust, or something like that.
|
||||
comparators = {
|
||||
|
5
lua/custom/plugins/dap_go.lua
Normal file
5
lua/custom/plugins/dap_go.lua
Normal file
@ -0,0 +1,5 @@
|
||||
return {
|
||||
"leoluz/nvim-dap-go",
|
||||
main = "dap-go",
|
||||
opts = {},
|
||||
}
|
10
lua/custom/plugins/gopher.lua
Normal file
10
lua/custom/plugins/gopher.lua
Normal file
@ -0,0 +1,10 @@
|
||||
return {
|
||||
"olexsmir/gopher.nvim",
|
||||
ft = "go",
|
||||
config = function(_, opts)
|
||||
require("gopher").setup(opts)
|
||||
end,
|
||||
build = function()
|
||||
vim.cmd [[silent! GoInstallDeps]]
|
||||
end
|
||||
}
|
7
lua/custom/plugins/md.lua
Normal file
7
lua/custom/plugins/md.lua
Normal file
@ -0,0 +1,7 @@
|
||||
return {
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
ft = { "markdown" },
|
||||
build = function() vim.fn["mkdp#util#install"]() end,
|
||||
}
|
||||
|
@ -1,48 +1,47 @@
|
||||
return {}
|
||||
-- return {
|
||||
-- "svrana/neosolarized.nvim",
|
||||
-- priority = 1000,
|
||||
-- dependencies = { "tjdevries/colorbuddy.vim" },
|
||||
-- config = function()
|
||||
-- local status, n = pcall(require, "neosolarized")
|
||||
-- if (not status) then return end
|
||||
--
|
||||
-- vim.o.termguicolors = true
|
||||
--
|
||||
-- n.setup({
|
||||
-- comment_italics = true,
|
||||
-- })
|
||||
--
|
||||
-- local cb = require('colorbuddy.init')
|
||||
-- local Color = cb.Color
|
||||
-- local colors = cb.colors
|
||||
-- local Group = cb.Group
|
||||
-- local groups = cb.groups
|
||||
-- local styles = cb.styles
|
||||
--
|
||||
-- Color.new('white', '#ffffff')
|
||||
-- Color.new('black', '#000000')
|
||||
-- Group.new('CursorLine', colors.none, colors.base03, styles.NONE, colors.base1)
|
||||
-- Group.new('CursorLineNr', colors.yellow, colors.black, styles.NONE, colors.base1)
|
||||
-- Group.new('Visual', colors.none, colors.base03, styles.reverse)
|
||||
--
|
||||
-- local cError = groups.Error.fg
|
||||
-- local cInfo = groups.Information.fg
|
||||
-- local cWarn = groups.Warning.fg
|
||||
-- local cHint = groups.Hint.fg
|
||||
--
|
||||
-- Group.new("DiagnosticVirtualTextError", cError, cError:dark():dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticVirtualTextInfo", cInfo, cInfo:dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticVirtualTextWarn", cWarn, cWarn:dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticVirtualTextHint", cHint, cHint:dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticUnderlineError", colors.none, colors.none, styles.undercurl, cError)
|
||||
-- Group.new("DiagnosticUnderlineWarn", colors.none, colors.none, styles.undercurl, cWarn)
|
||||
-- Group.new("DiagnosticUnderlineInfo", colors.none, colors.none, styles.undercurl, cInfo)
|
||||
-- Group.new("DiagnosticUnderlineHint", colors.none, colors.none, styles.undercurl, cHint)
|
||||
-- Group.new("Macro", groups.PreProc, colors.none, styles.italic + styles.bold)
|
||||
-- Group.link("Function", groups.Function, colors.none, styles.italic)
|
||||
-- Group.new("Conditional", groups.Statement, colors.none, styles.italic)
|
||||
-- Group.new("Boolean", groups.Constant, colors.none, styles.bold)
|
||||
-- Group.new("HoverBorder", colors.yellow, colors.none, styles.NONE)
|
||||
-- end
|
||||
-- }
|
||||
return {
|
||||
-- "svrana/neosolarized.nvim",
|
||||
-- priority = 1000,
|
||||
-- dependencies = { "tjdevries/colorbuddy.vim" },
|
||||
-- config = function()
|
||||
-- local status, n = pcall(require, "neosolarized")
|
||||
-- if (not status) then return end
|
||||
--
|
||||
-- vim.o.termguicolors = true
|
||||
--
|
||||
-- n.setup({
|
||||
-- comment_italics = true,
|
||||
-- })
|
||||
--
|
||||
-- local cb = require('colorbuddy.init')
|
||||
-- local Color = cb.Color
|
||||
-- local colors = cb.colors
|
||||
-- local Group = cb.Group
|
||||
-- local groups = cb.groups
|
||||
-- local styles = cb.styles
|
||||
--
|
||||
-- Color.new('white', '#ffffff')
|
||||
-- Color.new('black', '#000000')
|
||||
-- Group.new('CursorLine', colors.none, colors.base03, styles.NONE, colors.base1)
|
||||
-- Group.new('CursorLineNr', colors.yellow, colors.black, styles.NONE, colors.base1)
|
||||
-- Group.new('Visual', colors.none, colors.base03, styles.reverse)
|
||||
--
|
||||
-- local cError = groups.Error.fg
|
||||
-- local cInfo = groups.Information.fg
|
||||
-- local cWarn = groups.Warning.fg
|
||||
-- local cHint = groups.Hint.fg
|
||||
--
|
||||
-- Group.new("DiagnosticVirtualTextError", cError, cError:dark():dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticVirtualTextInfo", cInfo, cInfo:dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticVirtualTextWarn", cWarn, cWarn:dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticVirtualTextHint", cHint, cHint:dark():dark():dark(), styles.NONE)
|
||||
-- Group.new("DiagnosticUnderlineError", colors.none, colors.none, styles.undercurl, cError)
|
||||
-- Group.new("DiagnosticUnderlineWarn", colors.none, colors.none, styles.undercurl, cWarn)
|
||||
-- Group.new("DiagnosticUnderlineInfo", colors.none, colors.none, styles.undercurl, cInfo)
|
||||
-- Group.new("DiagnosticUnderlineHint", colors.none, colors.none, styles.undercurl, cHint)
|
||||
-- Group.new("Macro", groups.PreProc, colors.none, styles.italic + styles.bold)
|
||||
-- Group.link("Function", groups.Function, colors.none, styles.italic)
|
||||
-- Group.new("Conditional", groups.Statement, colors.none, styles.italic)
|
||||
-- Group.new("Boolean", groups.Constant, colors.none, styles.bold)
|
||||
-- Group.new("HoverBorder", colors.yellow, colors.none, styles.NONE)
|
||||
-- end
|
||||
}
|
||||
|
@ -6,7 +6,10 @@ return {
|
||||
require("null-ls").builtins.formatting.black.with({
|
||||
extra_args = { "--line-length=80" }
|
||||
}),
|
||||
require("null-ls").builtins.formatting.prettierd
|
||||
require("null-ls").builtins.formatting.prettierd,
|
||||
require("null-ls").builtins.formatting.gofumpt,
|
||||
require("null-ls").builtins.formatting.goimports_reviser,
|
||||
require("null-ls").builtins.formatting.golines,
|
||||
}
|
||||
}
|
||||
end
|
||||
|
@ -1,11 +1,13 @@
|
||||
return {
|
||||
"folke/zen-mode.nvim",
|
||||
opts = {
|
||||
tmux = { enabled = true },
|
||||
kitty = {
|
||||
enabled = true,
|
||||
font = "+5",
|
||||
}
|
||||
plugins = {
|
||||
tmux = { enabled = true },
|
||||
kitty = {
|
||||
enabled = true,
|
||||
font = "+5",
|
||||
}
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>", { silent = true })
|
||||
|
@ -28,6 +28,7 @@ keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
|
||||
|
||||
keymap.set("n", "<leader>rr", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], { desc = "replace current word" })
|
||||
keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true, desc = "chmod +x current file" })
|
||||
keymap.set("n", "<leader>q", "<cmd>!go run %<CR>", { desc = "go run current file" })
|
||||
|
||||
keymap.set("t", "<leader><Esc>", [[<C-\><C-n>]], { desc = "exit insert mode on builtin terminal" })
|
||||
|
||||
@ -46,3 +47,6 @@ keymap.set("n", "<left>", "<C-w><")
|
||||
keymap.set("n", "<right>", "<C-w>>")
|
||||
keymap.set("n", "<up>", "<C-w>+")
|
||||
keymap.set("n", "<down>", "<C-w>-")
|
||||
|
||||
keymap.set("n", "<leader>gsj", "<cmd>GoTagAdd json <CR>", { desc = "Add json struct tags" })
|
||||
keymap.set("n", "<leader>gsy", "<cmd>GoTagAdd yaml <CR>", { desc = "Add yaml struct tags" })
|
||||
|
@ -5,9 +5,9 @@ vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
vim.opt.clipboard:append({ "unnamedplus" })
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
@ -28,7 +28,10 @@ vim.opt.isfname:append("@-@")
|
||||
|
||||
vim.opt.updatetime = 50
|
||||
|
||||
-- vim.opt.colorcolumn = "80"
|
||||
vim.opt.colorcolumn = "80"
|
||||
vim.cmd[[highlight ColorColumn ctermbg=235 guibg=#262626]]
|
||||
vim.api.nvim_create_autocmd({"WinLeave"}, {pattern = "*", callback = function() vim.opt.colorcolumn = "0" end,})
|
||||
vim.api.nvim_create_autocmd({"WinEnter"}, {pattern = "*", callback = function() vim.opt.colorcolumn = "80" end,})
|
||||
|
||||
vim.g.mapleader = " "
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user