More plugins
This commit is contained in:
1
init.lua
1
init.lua
@ -16,3 +16,4 @@ require('plugins/nvim-lsp-installer')
|
|||||||
require('plugins/neoscroll')
|
require('plugins/neoscroll')
|
||||||
require('plugins/marks')
|
require('plugins/marks')
|
||||||
require('plugins/toggleterm')
|
require('plugins/toggleterm')
|
||||||
|
require('plugins/_mkdx')
|
||||||
|
|||||||
@ -42,14 +42,15 @@ map('n', '<leader>q', ':NvimTreeRefresh<CR>', default_opts) -- refresh
|
|||||||
map('n', '<C-m>', ':Vista!!<CR>', default_opts) -- open/close
|
map('n', '<C-m>', ':Vista!!<CR>', default_opts) -- open/close
|
||||||
|
|
||||||
-- Place Check box for To-Do style Lists
|
-- Place Check box for To-Do style Lists
|
||||||
map('i','<C-z>', '[ ] - ', default_opts)
|
map('i','<C-z>', '- [ ] ', default_opts)
|
||||||
map('n','<C-x>', '<Esc>rX<Esc>i', default_opts)
|
map('n', '<C-z>', '- [ ] ', default_opts)
|
||||||
|
map('n','<C-x>', '<Esc>rX<Esc>', default_opts)
|
||||||
map('n','<leader>x', '~~~', default_opts)
|
map('n','<leader>x', '~~~', default_opts)
|
||||||
|
|
||||||
-- Vim Tmux Navigator
|
-- Vim Tmux Navigator
|
||||||
map ('n', '<leader>-', ':TmuxNavigateDown', default_opts)
|
map('n', '<leader>-', ':TmuxNavigateDown', default_opts)
|
||||||
map ('n', '<leader>[', ':TmuxNavigateLeft', default_opts)
|
map('n', '<leader>[', ':TmuxNavigateLeft', default_opts)
|
||||||
map ('n', '<leader>]', ':TmuxNavigateRight', default_opts)
|
map('n', '<leader>]', ':TmuxNavigateRight', default_opts)
|
||||||
|
|
||||||
-- Telescope Open
|
-- Telescope Open
|
||||||
map ('n', '<leader>/', ':Telescope<CR>', default_opts)
|
map('n', '<leader>/', ':Telescope<CR>', default_opts)
|
||||||
|
|||||||
17
lua/plugins/_mkdx.lua
Normal file
17
lua/plugins/_mkdx.lua
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
local cmd = vim.cmd
|
||||||
|
local g = vim.g
|
||||||
|
|
||||||
|
g['mkdx#settings.highlight.enable'] = 1
|
||||||
|
|
||||||
|
cmd [[
|
||||||
|
let g:mkdx#settings = {
|
||||||
|
\ 'highlight': { 'enable': 1 },
|
||||||
|
\ 'map': { 'prefix': '<=>' },
|
||||||
|
\ 'enter': { 'shift': 1, 'enable': 1 },
|
||||||
|
\ 'links': { 'external': { 'enable': 1 }, 'fragment': { 'jumplist': 1 } },
|
||||||
|
\ 'toc': { 'text': 'Table of Contents', 'update_on_write': 1},
|
||||||
|
\ 'fold': { 'enable': 1 },
|
||||||
|
\ 'checkbox': { 'toggles': [' ', '-', 'X' ] },
|
||||||
|
\ }
|
||||||
|
]]
|
||||||
|
|
||||||
124
lua/plugins/headlines.lua
Normal file
124
lua/plugins/headlines.lua
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
require("headlines").setup {
|
||||||
|
markdown = {
|
||||||
|
query = vim.treesitter.parse_query(
|
||||||
|
"markdown",
|
||||||
|
[[
|
||||||
|
(atx_heading [
|
||||||
|
(atx_h1_marker)
|
||||||
|
(atx_h2_marker)
|
||||||
|
(atx_h3_marker)
|
||||||
|
(atx_h4_marker)
|
||||||
|
(atx_h5_marker)
|
||||||
|
(atx_h6_marker)
|
||||||
|
] @headline)
|
||||||
|
|
||||||
|
(thematic_break) @dash
|
||||||
|
|
||||||
|
(fenced_code_block) @codeblock
|
||||||
|
|
||||||
|
(block_quote_marker) @quote
|
||||||
|
(block_quote (paragraph (inline (block_continuation) @quote)))
|
||||||
|
]]
|
||||||
|
),
|
||||||
|
headline_highlights = { "Headline" },
|
||||||
|
codeblock_highlight = "CodeBlock",
|
||||||
|
dash_highlight = "Dash",
|
||||||
|
dash_string = "-",
|
||||||
|
quote_highlight = "Quote",
|
||||||
|
quote_string = "┃",
|
||||||
|
fat_headlines = true,
|
||||||
|
},
|
||||||
|
rmd = {
|
||||||
|
query = vim.treesitter.parse_query(
|
||||||
|
"markdown",
|
||||||
|
[[
|
||||||
|
(atx_heading [
|
||||||
|
(atx_h1_marker)
|
||||||
|
(atx_h2_marker)
|
||||||
|
(atx_h3_marker)
|
||||||
|
(atx_h4_marker)
|
||||||
|
(atx_h5_marker)
|
||||||
|
(atx_h6_marker)
|
||||||
|
] @headline)
|
||||||
|
|
||||||
|
(thematic_break) @dash
|
||||||
|
|
||||||
|
(fenced_code_block) @codeblock
|
||||||
|
|
||||||
|
(block_quote_marker) @quote
|
||||||
|
(block_quote (paragraph (inline (block_continuation) @quote)))
|
||||||
|
]]
|
||||||
|
),
|
||||||
|
treesitter_language = "markdown",
|
||||||
|
headline_highlights = { "Headline" },
|
||||||
|
codeblock_highlight = "CodeBlock",
|
||||||
|
dash_highlight = "Dash",
|
||||||
|
dash_string = "-",
|
||||||
|
quote_highlight = "Quote",
|
||||||
|
quote_string = "┃",
|
||||||
|
fat_headlines = true,
|
||||||
|
},
|
||||||
|
norg = {
|
||||||
|
query = vim.treesitter.parse_query(
|
||||||
|
"norg",
|
||||||
|
[[
|
||||||
|
[
|
||||||
|
(heading1_prefix)
|
||||||
|
(heading2_prefix)
|
||||||
|
(heading3_prefix)
|
||||||
|
(heading4_prefix)
|
||||||
|
(heading5_prefix)
|
||||||
|
(heading6_prefix)
|
||||||
|
] @headline
|
||||||
|
|
||||||
|
(weak_paragraph_delimiter) @dash
|
||||||
|
(strong_paragraph_delimiter) @doubledash
|
||||||
|
|
||||||
|
((ranged_tag
|
||||||
|
name: (tag_name) @_name
|
||||||
|
(#eq? @_name "code")
|
||||||
|
) @codeblock (#offset! @codeblock 0 0 1 0))
|
||||||
|
|
||||||
|
(quote1_prefix) @quote
|
||||||
|
]]
|
||||||
|
),
|
||||||
|
headline_highlights = { "Headline" },
|
||||||
|
codeblock_highlight = "CodeBlock",
|
||||||
|
dash_highlight = "Dash",
|
||||||
|
dash_string = "-",
|
||||||
|
doubledash_highlight = "DoubleDash",
|
||||||
|
doubledash_string = "=",
|
||||||
|
quote_highlight = "Quote",
|
||||||
|
quote_string = "┃",
|
||||||
|
fat_headlines = true,
|
||||||
|
},
|
||||||
|
org = {
|
||||||
|
query = vim.treesitter.parse_query(
|
||||||
|
"org",
|
||||||
|
[[
|
||||||
|
(headline (stars) @headline)
|
||||||
|
|
||||||
|
(
|
||||||
|
(expr) @dash
|
||||||
|
(#match? @dash "^-----+$")
|
||||||
|
)
|
||||||
|
|
||||||
|
(block
|
||||||
|
name: (expr) @_name
|
||||||
|
(#eq? @_name "SRC")
|
||||||
|
) @codeblock
|
||||||
|
|
||||||
|
(paragraph . (expr) @quote
|
||||||
|
(#eq? @quote ">")
|
||||||
|
)
|
||||||
|
]]
|
||||||
|
),
|
||||||
|
headline_highlights = { "Headline" },
|
||||||
|
codeblock_highlight = "CodeBlock",
|
||||||
|
dash_highlight = "Dash",
|
||||||
|
dash_string = "-",
|
||||||
|
quote_highlight = "Quote",
|
||||||
|
quote_string = "┃",
|
||||||
|
fat_headlines = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -1,6 +1,5 @@
|
|||||||
local lsp_installer = require("nvim-lsp-installer")
|
local lsp_installer = require("nvim-lsp-installer").setup({
|
||||||
|
automatic_installation = true,
|
||||||
lsp_installer.settings({
|
|
||||||
ui = {
|
ui = {
|
||||||
icons = {
|
icons = {
|
||||||
server_installed = "✓",
|
server_installed = "✓",
|
||||||
|
|||||||
@ -11,9 +11,20 @@ return require'packer'.startup(function()
|
|||||||
-- Nvim Tree File Manager on the Left
|
-- Nvim Tree File Manager on the Left
|
||||||
use 'kyazdani42/nvim-tree.lua'
|
use 'kyazdani42/nvim-tree.lua'
|
||||||
|
|
||||||
|
-- Markdown Extension for Customizable Keymappings
|
||||||
|
use 'SidOfc/mkdx'
|
||||||
|
|
||||||
|
-- Headlines Extension
|
||||||
|
use 'lukas-reineke/headlines.nvim'
|
||||||
|
|
||||||
|
-- Follow MD Links
|
||||||
|
use 'jghauser/follow-md-links.nvim'
|
||||||
|
|
||||||
|
-- Treesitter Language Stuff
|
||||||
use 'nvim-treesitter/nvim-treesitter'
|
use 'nvim-treesitter/nvim-treesitter'
|
||||||
|
|
||||||
use 'sheerun/vim-polyglot'
|
-- I don't know what polygot does or if I need it.
|
||||||
|
-- use 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
use 'tjdevries/colorbuddy.nvim'
|
use 'tjdevries/colorbuddy.nvim'
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ function _G.set_terminal_keymaps()
|
|||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
|
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
|
||||||
--vim.cmd('set shell=fish')
|
vim.cmd('set shell=zsh')
|
||||||
|
|
||||||
|
|
||||||
local Terminal = require("toggleterm.terminal").Terminal
|
local Terminal = require("toggleterm.terminal").Terminal
|
||||||
|
|||||||
@ -154,6 +154,11 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/feline.nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/feline.nvim",
|
||||||
url = "https://github.com/feline-nvim/feline.nvim"
|
url = "https://github.com/feline-nvim/feline.nvim"
|
||||||
},
|
},
|
||||||
|
["follow-md-links.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/follow-md-links.nvim",
|
||||||
|
url = "https://github.com/jghauser/follow-md-links.nvim"
|
||||||
|
},
|
||||||
["gitsigns.nvim"] = {
|
["gitsigns.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
||||||
@ -164,6 +169,11 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/gloombuddy",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/gloombuddy",
|
||||||
url = "https://github.com/bkegley/gloombuddy"
|
url = "https://github.com/bkegley/gloombuddy"
|
||||||
},
|
},
|
||||||
|
["headlines.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/headlines.nvim",
|
||||||
|
url = "https://github.com/lukas-reineke/headlines.nvim"
|
||||||
|
},
|
||||||
["indent-blankline.nvim"] = {
|
["indent-blankline.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim",
|
||||||
@ -174,6 +184,11 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/marks.nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/marks.nvim",
|
||||||
url = "https://github.com/chentoast/marks.nvim"
|
url = "https://github.com/chentoast/marks.nvim"
|
||||||
},
|
},
|
||||||
|
mkdx = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/mkdx",
|
||||||
|
url = "https://github.com/SidOfc/mkdx"
|
||||||
|
},
|
||||||
["monokai.nvim"] = {
|
["monokai.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/monokai.nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/monokai.nvim",
|
||||||
@ -262,11 +277,6 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
|
||||||
url = "https://github.com/folke/tokyonight.nvim"
|
url = "https://github.com/folke/tokyonight.nvim"
|
||||||
},
|
},
|
||||||
["vim-polyglot"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/vim-polyglot",
|
|
||||||
url = "https://github.com/sheerun/vim-polyglot"
|
|
||||||
},
|
|
||||||
["vim-prettier"] = {
|
["vim-prettier"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/vim-prettier",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/vim-prettier",
|
||||||
@ -294,14 +304,14 @@ time([[Defining packer_plugins]], false)
|
|||||||
time([[Config for nvim-autopairs]], true)
|
time([[Config for nvim-autopairs]], true)
|
||||||
try_loadstring("\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
try_loadstring("\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||||
time([[Config for nvim-autopairs]], false)
|
time([[Config for nvim-autopairs]], false)
|
||||||
-- Config for: telescope.nvim
|
|
||||||
time([[Config for telescope.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/telescope\frequire\0", "config", "telescope.nvim")
|
|
||||||
time([[Config for telescope.nvim]], false)
|
|
||||||
-- Config for: toggleterm.nvim
|
-- Config for: toggleterm.nvim
|
||||||
time([[Config for toggleterm.nvim]], true)
|
time([[Config for toggleterm.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\nY\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\nshell\24/usr/bin/local/fish\nsetup\15toggleterm\frequire\0", "config", "toggleterm.nvim")
|
try_loadstring("\27LJ\2\nY\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\nshell\24/usr/bin/local/fish\nsetup\15toggleterm\frequire\0", "config", "toggleterm.nvim")
|
||||||
time([[Config for toggleterm.nvim]], false)
|
time([[Config for toggleterm.nvim]], false)
|
||||||
|
-- Config for: telescope.nvim
|
||||||
|
time([[Config for telescope.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/telescope\frequire\0", "config", "telescope.nvim")
|
||||||
|
time([[Config for telescope.nvim]], false)
|
||||||
if should_profile then save_profiles() end
|
if should_profile then save_profiles() end
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user