Cleans up parsers and linters
This commit is contained in:
@ -1,124 +0,0 @@
|
||||
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,31 +0,0 @@
|
||||
require'marks'.setup {
|
||||
-- whether to map keybinds or not. default true
|
||||
default_mappings = true,
|
||||
-- which builtin marks to show. default {}
|
||||
builtin_marks = { ".", "<", ">", "^" },
|
||||
-- whether movements cycle back to the beginning/end of buffer. default true
|
||||
cyclic = true,
|
||||
-- whether the shada file is updated after modifying uppercase marks. default false
|
||||
force_write_shada = false,
|
||||
-- how often (in ms) to redraw signs/recompute mark positions.
|
||||
-- higher values will have better performance but may cause visual lag,
|
||||
-- while lower values may cause performance penalties. default 150.
|
||||
refresh_interval = 250,
|
||||
-- sign priorities for each type of mark - builtin marks, uppercase marks, lowercase
|
||||
-- marks, and bookmarks.
|
||||
-- can be either a table with all/none of the keys, or a single number, in which case
|
||||
-- the priority applies to all marks.
|
||||
-- default 10.
|
||||
sign_priority = { lower=10, upper=15, builtin=8, bookmark=20 },
|
||||
-- disables mark tracking for specific filetypes. default {}
|
||||
excluded_filetypes = {},
|
||||
-- marks.nvim allows you to configure up to 10 bookmark groups, each with its own
|
||||
-- sign/virttext. Bookmarks can be used to group together positions and quickly move
|
||||
-- across multiple buffers. default sign is '!@#$%^&*()' (from 0 to 9), and
|
||||
-- default virt_text is "".
|
||||
bookmark_0 = {
|
||||
sign = "⚑",
|
||||
virt_text = "hello world"
|
||||
},
|
||||
mappings = {}
|
||||
}
|
||||
@ -127,7 +127,7 @@ end
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches.
|
||||
-- Add your language server below:
|
||||
local servers = { 'bashls', 'pyright', 'clangd', 'html', 'cssls', 'tsserver', 'jedi-language-server' }
|
||||
local servers = { 'bashls', 'pyright', 'yamlls', 'sumneko_lua' }
|
||||
|
||||
-- Call setup
|
||||
for _, lsp in ipairs(servers) do
|
||||
|
||||
@ -1,30 +0,0 @@
|
||||
-----------------------------------------------------------
|
||||
-- File manager configuration file
|
||||
-----------------------------------------------------------
|
||||
|
||||
-- Plugin: nvim-tree
|
||||
-- url: https://github.com/kyazdani42/nvim-tree.lua
|
||||
|
||||
--- Keybindings are defined in `keymapping.lua`:
|
||||
--- https://github.com/kyazdani42/nvim-tree.lua#keybindings
|
||||
|
||||
--- Note: options under the g: command should be set BEFORE running the
|
||||
--- setup function: https://github.com/kyazdani42/nvim-tree.lua#setup
|
||||
--- See: `help NvimTree`
|
||||
local g = vim.g
|
||||
|
||||
require('nvim-tree').setup {
|
||||
open_on_setup = true,
|
||||
update_cwd = true,
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
custom = { '.git', 'node_modules', '.cache', '.bin' },
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = true,
|
||||
},
|
||||
view = {
|
||||
width = 37,
|
||||
},
|
||||
}
|
||||
@ -15,8 +15,7 @@ end
|
||||
nvim_treesitter.setup {
|
||||
-- A list of parser names, or "all"
|
||||
ensure_installed = {
|
||||
'bash', 'css', 'html', 'javascript', 'json', 'lua', 'python',
|
||||
'vim', 'yaml', 'typescript',
|
||||
'bash', 'json', 'lua', 'python', 'vim', 'yaml', 'typescript', 'gitcommit', 'dockerfile', 'regex',
|
||||
},
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
@ -36,7 +36,7 @@ return require'packer'.startup(function()
|
||||
}
|
||||
|
||||
use ({
|
||||
'L3MON4D3/LuaSnip', tag = "v<CurrentMajor>.*",
|
||||
'L3MON4D3/LuaSnip', tag = "v1.1.0",
|
||||
requires = {
|
||||
'saadparwaiz1/cmp_luasnip'
|
||||
}
|
||||
@ -69,9 +69,6 @@ return require'packer'.startup(function()
|
||||
-- Rename and Work with Buffer & Tabs
|
||||
use 'pacha/vem-tabline'
|
||||
|
||||
-- Nvim Tree File Manager on the Left
|
||||
use 'kyazdani42/nvim-tree.lua'
|
||||
|
||||
-- Trouble Shows Errors with Files.
|
||||
use {
|
||||
"folke/trouble.nvim",
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
local prettier = require("prettier")
|
||||
|
||||
prettier.setup({
|
||||
bin = 'prettier', -- or `prettierd`
|
||||
filetypes = {
|
||||
"css",
|
||||
"graphql",
|
||||
"html",
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"json",
|
||||
"less",
|
||||
"markdown",
|
||||
"scss",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"yaml",
|
||||
"python",
|
||||
},
|
||||
|
||||
-- prettier format options (you can use config files too. ex: `.prettierrc`)
|
||||
arrow_parens = "always",
|
||||
bracket_spacing = true,
|
||||
embedded_language_formatting = "auto",
|
||||
end_of_line = "lf",
|
||||
html_whitespace_sensitivity = "css",
|
||||
jsx_bracket_same_line = false,
|
||||
jsx_single_quote = false,
|
||||
print_width = 80,
|
||||
prose_wrap = "preserve",
|
||||
quote_props = "as-needed",
|
||||
semi = true,
|
||||
single_quote = false,
|
||||
tab_width = 2,
|
||||
trailing_comma = "es5",
|
||||
use_tabs = false,
|
||||
vue_indent_script_and_style = false,
|
||||
})
|
||||
Reference in New Issue
Block a user