nvim: Add support for neovide
This commit is contained in:
parent
6f271c5425
commit
f17a8a5a63
|
@ -13,4 +13,7 @@ M = {
|
||||||
-- ["@comment"] = { italic = true },
|
-- ["@comment"] = { italic = true },
|
||||||
-- },
|
-- },
|
||||||
}
|
}
|
||||||
|
if vim.g.neovide then
|
||||||
|
M.base46.transparency = false
|
||||||
|
end
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
require "nvchad.options"
|
require "nvchad.options"
|
||||||
|
|
||||||
local o = vim.o
|
local o = vim.o
|
||||||
|
local g = vim.g
|
||||||
o.tabstop = 4 -- A TAB character looks like 4 spaces
|
o.tabstop = 4 -- A TAB character looks like 4 spaces
|
||||||
o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character
|
o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character
|
||||||
o.softtabstop = 4 -- Number of spaces inserted instead of a TAB character
|
o.softtabstop = 4 -- Number of spaces inserted instead of a TAB character
|
||||||
o.shiftwidth = 4 -- Number of spaces inserted when indenting
|
o.shiftwidth = 4 -- Number of spaces inserted when indenting
|
||||||
o.cursorlineopt ='both' -- to enable cursor line!
|
o.cursorlineopt ='both' -- to enable cursor line!
|
||||||
|
|
||||||
|
if g.neovide then
|
||||||
|
o.guifont = "JetBrainsMono Nerd Font Mono:h14"
|
||||||
|
g.neovide_cursor_trail_size = 0.3
|
||||||
|
end
|
||||||
|
|
||||||
vim.filetype.add({
|
vim.filetype.add({
|
||||||
extension = {
|
extension = {
|
||||||
lnibuild = "bash"
|
lnibuild = "bash"
|
||||||
|
|
Loading…
Reference in a new issue