Merge branch 'master' of https://git.cscherr.de/PlexSheep/neovim-confs
This commit is contained in:
commit
b3d2cc179c
|
@ -11,6 +11,9 @@ local options = {
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
toml = { "taplo" },
|
toml = { "taplo" },
|
||||||
rust = { "rustfmt" },
|
rust = { "rustfmt" },
|
||||||
|
|
||||||
|
tex = { "latexindent" },
|
||||||
|
latex = { "latexindent" },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- adding same formatter for multiple filetypes can look too much work for some
|
-- adding same formatter for multiple filetypes can look too much work for some
|
||||||
|
|
|
@ -13,6 +13,9 @@ local servers = {
|
||||||
-- "rust_analyzer", -- rustaceanvim wants to do that, but the builtin thing has better integration!
|
-- "rust_analyzer", -- rustaceanvim wants to do that, but the builtin thing has better integration!
|
||||||
"bashls",
|
"bashls",
|
||||||
"cmake",
|
"cmake",
|
||||||
|
"yamlls",
|
||||||
|
"textlsp",
|
||||||
|
"texlab",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
|
@ -46,3 +49,67 @@ lspconfig.rust_analyzer.setup {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local ltex_table = {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
ltex = {
|
||||||
|
-- specific language (such as en-GB or de-DE is recommended, but I
|
||||||
|
-- want multilingual)
|
||||||
|
language = "en-GB",
|
||||||
|
enabled = {
|
||||||
|
-- I'm writing in german but the commands are in english,
|
||||||
|
-- does not really work
|
||||||
|
"bibtex",
|
||||||
|
"tex",
|
||||||
|
"latex",
|
||||||
|
"gitcommit",
|
||||||
|
"markdown",
|
||||||
|
"org",
|
||||||
|
"restructuredtext",
|
||||||
|
"rsweave",
|
||||||
|
"quarto",
|
||||||
|
"rmd",
|
||||||
|
"context",
|
||||||
|
"html",
|
||||||
|
"xhtml",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
-- lspconfig.ltex.setup(ltex_table)
|
||||||
|
|
||||||
|
lspconfig.textlsp.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
|
filetypes = {
|
||||||
|
"bibtex",
|
||||||
|
"tex",
|
||||||
|
"latex",
|
||||||
|
"gitcommit",
|
||||||
|
"markdown",
|
||||||
|
"org",
|
||||||
|
"restructuredtext",
|
||||||
|
"rsweave",
|
||||||
|
"quarto",
|
||||||
|
"rmd",
|
||||||
|
"context",
|
||||||
|
"html",
|
||||||
|
"xhtml",
|
||||||
|
},
|
||||||
|
settings = {
|
||||||
|
textLSP = {
|
||||||
|
analysers = {
|
||||||
|
languagetool = {
|
||||||
|
check_text = {
|
||||||
|
on_change = false,
|
||||||
|
on_open = true,
|
||||||
|
on_save = true,
|
||||||
|
},
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ opt.startofline = false -- Cursor in same column for few commands
|
||||||
opt.splitbelow = true -- Splits open bottom right
|
opt.splitbelow = true -- Splits open bottom right
|
||||||
opt.splitright = true
|
opt.splitright = true
|
||||||
opt.breakindentopt = { shift = 2, min = 20 }
|
opt.breakindentopt = { shift = 2, min = 20 }
|
||||||
opt.formatoptions = "qnlmBjp" -- see :h fo-table & :h formatoptions
|
opt.formatoptions = "qnlmBjpt" -- see :h fo-table & :h formatoptions
|
||||||
|
|
||||||
-- Diff
|
-- Diff
|
||||||
-- ===
|
-- ===
|
||||||
|
|
|
@ -41,7 +41,6 @@ M.disabled = {
|
||||||
["<leader>td"] = "",
|
["<leader>td"] = "",
|
||||||
["<leader>wk"] = "",
|
["<leader>wk"] = "",
|
||||||
["#"] = "",
|
["#"] = "",
|
||||||
["J"] = "",
|
|
||||||
},
|
},
|
||||||
t = {
|
t = {
|
||||||
["<C-t>"] = "",
|
["<C-t>"] = "",
|
||||||
|
@ -50,7 +49,6 @@ M.disabled = {
|
||||||
["#"] = "",
|
["#"] = "",
|
||||||
["?"] = "",
|
["?"] = "",
|
||||||
["<leader>/"] = "",
|
["<leader>/"] = "",
|
||||||
["J"] = "",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
-- this function will split a string into a table of tokens, like it would
|
--- this function will split a string into a table of tokens, like it would
|
||||||
-- be passed into the `argv` of a program that was executed from the commandline
|
--- be passed into the `argv` of a program that was executed from the commandline
|
||||||
--
|
---
|
||||||
-- @param string raw string of cli args that should be split
|
--- @param raw string string of cli args that should be split
|
||||||
-- @return table tokens args as a table
|
--- @return table tokens args as a table
|
||||||
M.tokenize_args = function(raw)
|
M.tokenize_args = function(raw)
|
||||||
-- NOTE: string.gmatch is does not use regex, but a smaller pattern matcher!
|
-- NOTE: string.gmatch is does not use regex, but a smaller pattern matcher!
|
||||||
-- A complete regex parser would be larger than lua itself. See
|
-- A complete regex parser would be larger than lua itself. See
|
||||||
|
@ -47,7 +47,7 @@ end
|
||||||
|
|
||||||
--- dumps a variable into a string, so it can be printed. This is meant for
|
--- dumps a variable into a string, so it can be printed. This is meant for
|
||||||
--- debug prints
|
--- debug prints
|
||||||
--- @param any t any variable
|
--- @param t any variable
|
||||||
--- @return string t_dumped t dumped to string
|
--- @return string t_dumped t dumped to string
|
||||||
M.dump = function(t)
|
M.dump = function(t)
|
||||||
if type(t) == 'table' then
|
if type(t) == 'table' then
|
||||||
|
|
|
@ -300,3 +300,5 @@ traceback
|
||||||
timestamp
|
timestamp
|
||||||
LoggerBuilder
|
LoggerBuilder
|
||||||
libpt
|
libpt
|
||||||
|
T2000
|
||||||
|
TINF22CS
|
||||||
|
|
Loading…
Reference in New Issue