nvim: line break
This commit is contained in:
parent
335a187ba7
commit
d425d3661b
2 changed files with 7 additions and 2 deletions
|
@ -39,6 +39,11 @@ function M.setup()
|
||||||
vim.o.grepprg = 'rg --vimgrep --no-ignore --smart-case $*'
|
vim.o.grepprg = 'rg --vimgrep --no-ignore --smart-case $*'
|
||||||
vim.o.grepformat = '%f:%l:%c:%m'
|
vim.o.grepformat = '%f:%l:%c:%m'
|
||||||
|
|
||||||
|
vim.o.linebreak = true
|
||||||
|
vim.o.breakindent = true
|
||||||
|
vim.o.breakindentopt = 'shift:4'
|
||||||
|
vim.o.showbreak = '…'
|
||||||
|
|
||||||
|
|
||||||
local function set_winopts()
|
local function set_winopts()
|
||||||
vim.o.cursorline = true
|
vim.o.cursorline = true
|
||||||
|
@ -58,7 +63,7 @@ function M.setup()
|
||||||
.. '%-7.(%3.l:%-3.(%c%V%)%) %P' -- ruler
|
.. '%-7.(%3.l:%-3.(%c%V%)%) %P' -- ruler
|
||||||
|
|
||||||
if vim.fn.has('nvim-0.9') then
|
if vim.fn.has('nvim-0.9') then
|
||||||
vim.o.statuscolumn = '%C%3l %s'
|
vim.o.statuscolumn = '%C%3l %=%s'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
set_winopts()
|
set_winopts()
|
||||||
|
|
|
@ -188,7 +188,7 @@ local function config() -- {{{
|
||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
-- {{{
|
-- {{{
|
||||||
powershell_es = {},
|
-- powershell_es = {},
|
||||||
gopls = {},
|
gopls = {},
|
||||||
clangd = {},
|
clangd = {},
|
||||||
zls = {},
|
zls = {},
|
||||||
|
|
Loading…
Add table
Reference in a new issue