mirror of https://github.com/LazyVim/starter
stuff
parent
ba57d6ea45
commit
26a1b318a0
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"extras": [
|
||||
"lazyvim.plugins.extras.coding.codeium",
|
||||
"lazyvim.plugins.extras.editor.leap"
|
||||
],
|
||||
"news": {
|
||||
"NEWS.md": "2123"
|
||||
},
|
||||
"version": 2
|
||||
}
|
|
@ -5,6 +5,6 @@
|
|||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
pattern = { "*.html", "*.tsx", "*.jsx" },
|
||||
callback = function(_)
|
||||
vim.cmd("InlineFoldActivate")
|
||||
vim.cmd("InlineFoldToggle")
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -15,3 +15,10 @@ vim.api.nvim_set_keymap("n", "<C-e>", "<Plug>(coc-snippets-expand)", { noremap =
|
|||
|
||||
vim.keymap.set("i", "<C-Tab>", vim.fn["codeium#Accept"], { expr = true })
|
||||
vim.keymap.set("i", "<C-,>", vim.fn["codeium#Complete"], { expr = true })
|
||||
|
||||
vim.keymap.set("n", "<C-c>", function()
|
||||
require("harpoon.ui").nav_prev()
|
||||
end, { silent = true, noremap = true })
|
||||
vim.keymap.set("n", "<C-v>", function()
|
||||
require("harpoon.ui").nav_next()
|
||||
end, { silent = true, noremap = true })
|
||||
|
|
|
@ -7,8 +7,9 @@ vim.opt.clipboard = "unnamedplus"
|
|||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
vim.g.foldmethod = "expr"
|
||||
vim.g.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldmethod = "manual"
|
||||
-- vim.g.foldmethod = "manual"
|
||||
-- vim.g.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
-- vim.opt.foldenable = false
|
||||
|
||||
vim.opt.tabstop = 2
|
||||
|
|
|
@ -5,7 +5,7 @@ return {
|
|||
{
|
||||
"jul-o/LazyVim",
|
||||
opts = {
|
||||
colorscheme = "catppuccin-frappe",
|
||||
colorscheme = "catppuccin-mocha",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
return {
|
||||
"lukas-reineke/headlines.nvim",
|
||||
opts = function()
|
||||
local opts = {}
|
||||
for _, ft in ipairs({ "markdown", "norg", "rmd", "org" }) do
|
||||
opts[ft] = {
|
||||
headline_highlights = {},
|
||||
-- disable bullets for now. See https://github.com/lukas-reineke/headlines.nvim/issues/66
|
||||
-- bullets = {},
|
||||
}
|
||||
for i = 1, 6 do
|
||||
local hl = "Headline" .. i
|
||||
vim.api.nvim_set_hl(0, hl, { link = "Headline", default = true })
|
||||
table.insert(opts[ft].headline_highlights, hl)
|
||||
end
|
||||
end
|
||||
return opts
|
||||
end,
|
||||
ft = { "markdown", "norg", "rmd", "org" },
|
||||
config = function(_, opts)
|
||||
-- PERF: schedule to prevent headlines slowing down opening a file
|
||||
vim.schedule(function()
|
||||
require("headlines").setup(opts)
|
||||
require("headlines").refresh()
|
||||
end)
|
||||
end,
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
local tsx = {
|
||||
{ pattern = 'className="([^"]*)"' }, -- classes in html
|
||||
{ pattern = 'className="([^"]*)"' },
|
||||
{ pattern = 'd="([^"]*)"' },
|
||||
}
|
||||
|
||||
local jsx = tsx
|
||||
|
@ -11,7 +12,6 @@ return {
|
|||
queries = {
|
||||
html = {
|
||||
{ pattern = 'class="([^"]*)"' }, -- classes in html
|
||||
{ pattern = 'className="([^"]*)"' }, -- classes in html
|
||||
{ pattern = 'href="(.-)"' }, -- hrefs in html
|
||||
{ pattern = 'src="(.-)"' }, -- HTML img src attribute
|
||||
},
|
||||
|
|
|
@ -5,6 +5,7 @@ return {
|
|||
tailwindcss = {
|
||||
filetypes_exclude = { "markdown" },
|
||||
},
|
||||
marksman = {},
|
||||
eslint = {},
|
||||
emmet_language_server = {
|
||||
filetypes = {
|
||||
|
@ -43,7 +44,7 @@ return {
|
|||
},
|
||||
setup = {
|
||||
eslint = function()
|
||||
require("lazyvim.util").on_attach(function(client)
|
||||
require("lazyvim.util").lsp.on_attach(function(client)
|
||||
if client.name == "eslint" then
|
||||
client.server_capabilities.documentFormattingProvider = true
|
||||
elseif client.name == "tsserver" then
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"vhyrro/luarocks.nvim",
|
||||
priority = 1000, -- We'd like this plugin to load first out of the rest
|
||||
config = true, -- This automatically runs `require("luarocks-nvim").setup()`
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
build = function()
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>cp",
|
||||
ft = "markdown",
|
||||
"<cmd>MarkdownPreviewToggle<cr>",
|
||||
desc = "Markdown Preview",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
vim.cmd([[do FileType]])
|
||||
end,
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"kiran94/edit-markdown-table.nvim",
|
||||
config = true,
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
cmd = "EditMarkdownTable",
|
||||
}
|
|
@ -5,4 +5,10 @@
|
|||
-- end,
|
||||
-- }
|
||||
|
||||
return {}
|
||||
return {
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "markdownlint", "marksman" })
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"danymat/neogen",
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
config = true,
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
"nvim-neorg/neorg",
|
||||
dependencies = { "luarocks.nvim" },
|
||||
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
|
||||
version = "*", -- Pin Neorg to the latest stable release
|
||||
config = true,
|
||||
}
|
|
@ -1,9 +1,12 @@
|
|||
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||
|
||||
return {
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
"nvimtools/none-ls.nvim",
|
||||
opts = function(_, opts)
|
||||
local nls = require("null-ls")
|
||||
local nls = require("none-ls")
|
||||
opts.sources = vim.list_extend(opts.sources or {}, {
|
||||
nls.builtins.diagnostics.markdownlint,
|
||||
})
|
||||
-- table.insert(opts.sources, nls.builtins.formatting.prettierd)
|
||||
end,
|
||||
config = {
|
|
@ -1,10 +1,20 @@
|
|||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "markdown", "markdown_inline" })
|
||||
end
|
||||
end,
|
||||
setup = {
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
-- opts = {
|
||||
-- autotag = {
|
||||
-- enable = true,
|
||||
-- },
|
||||
-- },
|
||||
dependencies = {
|
||||
{ "windwp/nvim-ts-autotag" },
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue