Leslie Kerman
2 years ago
6 changed files with 40 additions and 107 deletions
@ -1,26 +1,27 @@ |
|||
local M = {} |
|||
function M.config() |
|||
vim.cmd([[ |
|||
let g:grammarous#languagetool_cmd = 'languagetool' |
|||
nmap <leader>ec :GrammarousCheck<cr> |
|||
nmap <leader>eR :GrammarousReset<cr> |
|||
nmap <leader>er <Plug>(grammarous-reset) |
|||
nmap <leader>eo <Plug>(grammarous-open-info-window) |
|||
nmap <leader>ex <Plug>(grammarous-close-info-window) |
|||
nmap <leader>ef <Plug>(grammarous-fixit) |
|||
nmap <leader>en <Plug>(grammarous-move-to-next-error) |
|||
nmap <leader>ep <Plug>(grammarous-move-to-previous-error) |
|||
let g:grammarous#disabled_rules = { |
|||
\ '*' : ['WHITESPACE_RULE', 'EN_QUOTES', 'ARROWS', 'SENTENCE_WHITESPACE', |
|||
\ 'WORD_CONTAINS_UNDERSCORE', 'COMMA_PARENTHESIS_WHITESPACE', |
|||
\ 'EN_UNPAIRED_BRACKETS', 'UPPERCASE_SENTENCE_START', |
|||
\ 'ENGLISH_WORD_REPEAT_BEGINNING_RULE', 'DASH_RULE', 'PLUS_MINUS', |
|||
\ 'PUNCTUATION_PARAGRAPH_END', 'MULTIPLICATION_SIGN', 'PRP_CHECKOUT', |
|||
\ 'CAN_CHECKOUT', 'SOME_OF_THE', 'DOUBLE_PUNCTUATION', 'HELL', |
|||
\ 'CURRENCY', 'POSSESSIVE_APOSTROPHE', 'ENGLISH_WORD_REPEAT_RULE', |
|||
\ 'NON_STANDARD_WORD'], |
|||
\ } |
|||
]]); |
|||
-- TODO: merge these into keymaps.lua |
|||
-- vim.cmd([[ |
|||
-- let g:grammarous#languagetool_cmd = 'languagetool' |
|||
-- nmap <leader>ec :GrammarousCheck<cr> |
|||
-- nmap <leader>eR :GrammarousReset<cr> |
|||
-- nmap <leader>er <Plug>(grammarous-reset) |
|||
-- nmap <leader>eo <Plug>(grammarous-open-info-window) |
|||
-- nmap <leader>ex <Plug>(grammarous-close-info-window) |
|||
-- nmap <leader>ef <Plug>(grammarous-fixit) |
|||
-- nmap <leader>en <Plug>(grammarous-move-to-next-error) |
|||
-- nmap <leader>ep <Plug>(grammarous-move-to-previous-error) |
|||
-- let g:grammarous#disabled_rules = { |
|||
-- \ '*' : ['WHITESPACE_RULE', 'EN_QUOTES', 'ARROWS', 'SENTENCE_WHITESPACE', |
|||
-- \ 'WORD_CONTAINS_UNDERSCORE', 'COMMA_PARENTHESIS_WHITESPACE', |
|||
-- \ 'EN_UNPAIRED_BRACKETS', 'UPPERCASE_SENTENCE_START', |
|||
-- \ 'ENGLISH_WORD_REPEAT_BEGINNING_RULE', 'DASH_RULE', 'PLUS_MINUS', |
|||
-- \ 'PUNCTUATION_PARAGRAPH_END', 'MULTIPLICATION_SIGN', 'PRP_CHECKOUT', |
|||
-- \ 'CAN_CHECKOUT', 'SOME_OF_THE', 'DOUBLE_PUNCTUATION', 'HELL', |
|||
-- \ 'CURRENCY', 'POSSESSIVE_APOSTROPHE', 'ENGLISH_WORD_REPEAT_RULE', |
|||
-- \ 'NON_STANDARD_WORD'], |
|||
-- \ } |
|||
-- ]]); |
|||
end |
|||
|
|||
return M |
|||
|
@ -1,58 +0,0 @@ |
|||
local M = {} |
|||
function M.config() |
|||
-- symbols_outline config |
|||
vim.g.symbols_outline = { |
|||
highlight_hovered_item = true, |
|||
show_guides = true, |
|||
auto_preview = true, |
|||
position = 'right', |
|||
relative_width = true, |
|||
width = 15, |
|||
auto_close = false, |
|||
show_numbers = false, |
|||
show_relative_numbers = false, |
|||
show_symbol_details = true, |
|||
preview_bg_highlight = 'Pmenu', |
|||
keymaps = { -- These keymaps can be a string or a table for multiple keys |
|||
close = { "<Esc>", "q" }, |
|||
goto_location = "<Cr>", |
|||
focus_location = "o", |
|||
hover_symbol = "<C-space>", |
|||
toggle_preview = "K", |
|||
rename_symbol = "r", |
|||
code_actions = "a", |
|||
}, |
|||
lsp_blacklist = {}, |
|||
symbol_blacklist = {}, |
|||
symbols = { |
|||
File = { icon = "", hl = "TSURI" }, |
|||
Module = { icon = "", hl = "TSNamespace" }, |
|||
Namespace = { icon = "", hl = "TSNamespace" }, |
|||
Package = { icon = "", hl = "TSNamespace" }, |
|||
Class = { icon = "𝓒", hl = "TSType" }, |
|||
Method = { icon = "ƒ", hl = "TSMethod" }, |
|||
Property = { icon = "", hl = "TSMethod" }, |
|||
Field = { icon = "", hl = "TSField" }, |
|||
Constructor = { icon = "", hl = "TSConstructor" }, |
|||
Enum = { icon = "ℰ", hl = "TSType" }, |
|||
Interface = { icon = "ﰮ", hl = "TSType" }, |
|||
Function = { icon = "", hl = "TSFunction" }, |
|||
Variable = { icon = "", hl = "TSConstant" }, |
|||
Constant = { icon = "", hl = "TSConstant" }, |
|||
String = { icon = "𝓐", hl = "TSString" }, |
|||
Number = { icon = "#", hl = "TSNumber" }, |
|||
Boolean = { icon = "⊨", hl = "TSBoolean" }, |
|||
Array = { icon = "", hl = "TSConstant" }, |
|||
Object = { icon = "⦿", hl = "TSType" }, |
|||
Key = { icon = "", hl = "TSType" }, |
|||
Null = { icon = "NULL", hl = "TSType" }, |
|||
EnumMember = { icon = "", hl = "TSField" }, |
|||
Struct = { icon = "𝓢", hl = "TSType" }, |
|||
Event = { icon = "גּ", hl = "TSType" }, |
|||
Operator = { icon = "+", hl = "TSOperator" }, |
|||
TypeParameter = { icon = "𝙏", hl = "TSParameter" } |
|||
} |
|||
} |
|||
end |
|||
|
|||
return M |
Loading…
Reference in new issue