mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nvim: tty setup
This commit is contained in:
parent
3d12a52b47
commit
c9ce831415
4 changed files with 21 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
scripts
|
scripts
|
||||||
|
.chezmoiscripts/*
|
||||||
|
|
||||||
|
|
||||||
{{ if ne .chezmoi.os "linux" }}
|
{{ if ne .chezmoi.os "linux" }}
|
||||||
|
|
@ -34,7 +35,6 @@ scripts
|
||||||
.config/lsd
|
.config/lsd
|
||||||
.config/keyd
|
.config/keyd
|
||||||
.config/readline
|
.config/readline
|
||||||
.chezmoiscripts/*
|
|
||||||
.bashrc
|
.bashrc
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,12 @@
|
||||||
|
|
||||||
-- Entry point of neovim configuration
|
-- Entry point of neovim configuration
|
||||||
require("config.options")
|
require("config.options")
|
||||||
|
local term = os.getenv("TERM") or ""
|
||||||
if vim.g.vscode then -- TODO: VSCode Neovim Integration
|
if vim.g.vscode then -- TODO: VSCode Neovim Integration
|
||||||
require("config.vscode")
|
require("config.vscode")
|
||||||
|
elseif term == "linux" then -- Under tty
|
||||||
|
require("config.tty")
|
||||||
|
vim.cmd("colorscheme vim") -- Use minimal colorscheme
|
||||||
else
|
else
|
||||||
require("config.plugins")
|
require("config.plugins")
|
||||||
require("config.colorscheme")
|
require("config.colorscheme")
|
||||||
|
|
|
||||||
15
home/dot_config/nvim/lua/config/tty.lua
Normal file
15
home/dot_config/nvim/lua/config/tty.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
require("plugins.lazy-nvim")
|
||||||
|
|
||||||
|
-- Setup lazy.nvim
|
||||||
|
require("lazy").setup({
|
||||||
|
spec = {
|
||||||
|
-- { import = "plugins.appearance" },
|
||||||
|
{ import = "plugins.completion" },
|
||||||
|
{ import = "plugins.fileutils" },
|
||||||
|
{ import = "plugins.lang" },
|
||||||
|
{ import = "plugins.dap" },
|
||||||
|
{ import = "plugins.edit" },
|
||||||
|
{ import = "plugins.misc" },
|
||||||
|
},
|
||||||
|
checker = { enabled = false },
|
||||||
|
})
|
||||||
|
|
@ -37,4 +37,4 @@ return {
|
||||||
lspconfig[server].setup(config)
|
lspconfig[server].setup(config)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue