reformated readme, added lint and markdown lint, fixed env.sh
This commit is contained in:
6
env/.config/hypr/hyprland.conf
vendored
6
env/.config/hypr/hyprland.conf
vendored
@@ -440,3 +440,9 @@ windowrule = workspace 8, title: VRChat
|
||||
|
||||
windowrule = noinitialfocus, title:im-emoji-picker
|
||||
windowrule = nofocus, title:im-emoji-picker
|
||||
|
||||
windowrule = float,title:(blob\:https://)(.*),class:xdg-desktop-portal-gtk
|
||||
windowrule = size 60% 60%,title:(blob\:https://)(.*),class:xdg-desktop-portal-gtk
|
||||
|
||||
windowrule = float,title:Open Files,class:xdg-desktop-portal-gtk
|
||||
windowrule = size 60% 60%,title:Open Files,class:xdg-desktop-portal-gtk
|
||||
|
||||
22
env/.config/nvim/after/plugin/lint.lua
vendored
Normal file
22
env/.config/nvim/after/plugin/lint.lua
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
local ok, lint = pcall(require, 'lint')
|
||||
if ok then
|
||||
lint.linters_by_ft = {
|
||||
markdown = { 'markdownlint-cli2' },
|
||||
}
|
||||
|
||||
-- ive spent like 3 hours getting this to work
|
||||
local markdownlint = lint.linters['markdownlint-cli2']
|
||||
markdownlint.args = {
|
||||
"--config", vim.fn.expand("~/.markdownlint.yaml"),
|
||||
"--",
|
||||
}
|
||||
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
group = lint_augroup,
|
||||
callback = function()
|
||||
lint.try_lint()
|
||||
end,
|
||||
})
|
||||
end
|
||||
11
env/.config/nvim/after/plugin/lsp.lua
vendored
11
env/.config/nvim/after/plugin/lsp.lua
vendored
@@ -76,3 +76,14 @@ if ok then
|
||||
|
||||
lsp.setup()
|
||||
end
|
||||
|
||||
|
||||
|
||||
local ok, null_ls = pcall(require, 'null-ls')
|
||||
if ok then
|
||||
null_ls.setup({
|
||||
sources = {
|
||||
null_ls.builtins.diagnostics.markdownlint_cli2,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
2
env/.config/nvim/after/plugin/markdown-preview.lua
vendored
Normal file
2
env/.config/nvim/after/plugin/markdown-preview.lua
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
vim.keymap.set('n', '<leader>mx', ':MarkdownPreview<cr>')
|
||||
vim.keymap.set('n', '<leader>ms', ':MarkdownPreviewStop<cr>')
|
||||
14
env/.config/nvim/after/plugin/telescope.lua
vendored
14
env/.config/nvim/after/plugin/telescope.lua
vendored
@@ -2,6 +2,17 @@ local ok, _ = pcall(require, 'telescope')
|
||||
if ok then
|
||||
local telescope = require('telescope')
|
||||
local builtin = require('telescope.builtin')
|
||||
local action = require('telescope.actions')
|
||||
telescope.setup{
|
||||
defaults = {
|
||||
mappings = {
|
||||
n = {
|
||||
["d"] = action.delete_buffer,
|
||||
["q"] = action.close,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if string.find(vim.loop.cwd(),"iceys%-linux%-stuffs") then
|
||||
telescope.setup{
|
||||
pickers = {
|
||||
@@ -11,6 +22,9 @@ if ok then
|
||||
}
|
||||
}
|
||||
end
|
||||
-- vim.keymap.set('n', '<leader>pf', "<cmd>Telescope find_files initial_mode=normal<cr>", {})
|
||||
-- sort_mru=true sort by most recently used
|
||||
-- sort_lastused=true
|
||||
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>pg', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>pb', builtin.buffers, {})
|
||||
|
||||
2
env/.config/nvim/lua/yourmom/init.lua
vendored
2
env/.config/nvim/lua/yourmom/init.lua
vendored
@@ -14,7 +14,7 @@ vim.opt.smartindent=true
|
||||
|
||||
vim.opt.wrap = true
|
||||
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.incsearch = true
|
||||
|
||||
vim.o.ignorecase = true
|
||||
|
||||
17
env/.config/nvim/lua/yourmom/packer.lua
vendored
17
env/.config/nvim/lua/yourmom/packer.lua
vendored
@@ -71,4 +71,21 @@ return require('packer').startup(function(use)
|
||||
{'L3MON4D3/LuaSnip'},
|
||||
}
|
||||
}
|
||||
|
||||
use 'mfussenegger/nvim-lint'
|
||||
|
||||
use 'nvimtools/none-ls.nvim'
|
||||
|
||||
use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
|
||||
|
||||
-- use({
|
||||
-- 'MeanderingProgrammer/render-markdown.nvim',
|
||||
-- after = { 'nvim-treesitter' },
|
||||
-- requires = { 'echasnovski/mini.nvim', opt = true }, -- if you use the mini.nvim suite
|
||||
-- -- requires = { 'echasnovski/mini.icons', opt = true }, -- if you use standalone mini plugins
|
||||
-- -- requires = { 'nvim-tree/nvim-web-devicons', opt = true }, -- if you prefer nvim-web-devicons
|
||||
-- config = function()
|
||||
-- require('render-markdown').setup({})
|
||||
-- end,
|
||||
-- })
|
||||
end)
|
||||
|
||||
2
env/.markdownlint.yaml
vendored
Normal file
2
env/.markdownlint.yaml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
MD013: false
|
||||
MD007: false
|
||||
Reference in New Issue
Block a user