Leslie Kerman
2 years ago
6 changed files with 40 additions and 107 deletions
@ -1,26 +1,27 @@ |
|||||
local M = {} |
local M = {} |
||||
function M.config() |
function M.config() |
||||
vim.cmd([[ |
-- TODO: merge these into keymaps.lua |
||||
let g:grammarous#languagetool_cmd = 'languagetool' |
-- vim.cmd([[ |
||||
nmap <leader>ec :GrammarousCheck<cr> |
-- let g:grammarous#languagetool_cmd = 'languagetool' |
||||
nmap <leader>eR :GrammarousReset<cr> |
-- nmap <leader>ec :GrammarousCheck<cr> |
||||
nmap <leader>er <Plug>(grammarous-reset) |
-- nmap <leader>eR :GrammarousReset<cr> |
||||
nmap <leader>eo <Plug>(grammarous-open-info-window) |
-- nmap <leader>er <Plug>(grammarous-reset) |
||||
nmap <leader>ex <Plug>(grammarous-close-info-window) |
-- nmap <leader>eo <Plug>(grammarous-open-info-window) |
||||
nmap <leader>ef <Plug>(grammarous-fixit) |
-- nmap <leader>ex <Plug>(grammarous-close-info-window) |
||||
nmap <leader>en <Plug>(grammarous-move-to-next-error) |
-- nmap <leader>ef <Plug>(grammarous-fixit) |
||||
nmap <leader>ep <Plug>(grammarous-move-to-previous-error) |
-- nmap <leader>en <Plug>(grammarous-move-to-next-error) |
||||
let g:grammarous#disabled_rules = { |
-- nmap <leader>ep <Plug>(grammarous-move-to-previous-error) |
||||
\ '*' : ['WHITESPACE_RULE', 'EN_QUOTES', 'ARROWS', 'SENTENCE_WHITESPACE', |
-- let g:grammarous#disabled_rules = { |
||||
\ 'WORD_CONTAINS_UNDERSCORE', 'COMMA_PARENTHESIS_WHITESPACE', |
-- \ '*' : ['WHITESPACE_RULE', 'EN_QUOTES', 'ARROWS', 'SENTENCE_WHITESPACE', |
||||
\ 'EN_UNPAIRED_BRACKETS', 'UPPERCASE_SENTENCE_START', |
-- \ 'WORD_CONTAINS_UNDERSCORE', 'COMMA_PARENTHESIS_WHITESPACE', |
||||
\ 'ENGLISH_WORD_REPEAT_BEGINNING_RULE', 'DASH_RULE', 'PLUS_MINUS', |
-- \ 'EN_UNPAIRED_BRACKETS', 'UPPERCASE_SENTENCE_START', |
||||
\ 'PUNCTUATION_PARAGRAPH_END', 'MULTIPLICATION_SIGN', 'PRP_CHECKOUT', |
-- \ 'ENGLISH_WORD_REPEAT_BEGINNING_RULE', 'DASH_RULE', 'PLUS_MINUS', |
||||
\ 'CAN_CHECKOUT', 'SOME_OF_THE', 'DOUBLE_PUNCTUATION', 'HELL', |
-- \ 'PUNCTUATION_PARAGRAPH_END', 'MULTIPLICATION_SIGN', 'PRP_CHECKOUT', |
||||
\ 'CURRENCY', 'POSSESSIVE_APOSTROPHE', 'ENGLISH_WORD_REPEAT_RULE', |
-- \ 'CAN_CHECKOUT', 'SOME_OF_THE', 'DOUBLE_PUNCTUATION', 'HELL', |
||||
\ 'NON_STANDARD_WORD'], |
-- \ 'CURRENCY', 'POSSESSIVE_APOSTROPHE', 'ENGLISH_WORD_REPEAT_RULE', |
||||
\ } |
-- \ 'NON_STANDARD_WORD'], |
||||
]]); |
-- \ } |
||||
|
-- ]]); |
||||
end |
end |
||||
|
|
||||
return M |
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