aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-02-09 19:29:27 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-02-09 19:29:27 +0000
commit938e3fc26f7cddf3c2173f326be2a6b8bf1326f3 (patch)
tree1351693639b91221c08bebe87e8a8f8e7c1f51f2
parent0a56dfa33a6c00df4ab06eca6eefba8cd80820f5 (diff)
downloaddotfiles-938e3fc26f7cddf3c2173f326be2a6b8bf1326f3.tar
dotfiles-938e3fc26f7cddf3c2173f326be2a6b8bf1326f3.tar.gz
dotfiles-938e3fc26f7cddf3c2173f326be2a6b8bf1326f3.tar.bz2
dotfiles-938e3fc26f7cddf3c2173f326be2a6b8bf1326f3.tar.lz
dotfiles-938e3fc26f7cddf3c2173f326be2a6b8bf1326f3.tar.xz
dotfiles-938e3fc26f7cddf3c2173f326be2a6b8bf1326f3.tar.zst
dotfiles-938e3fc26f7cddf3c2173f326be2a6b8bf1326f3.zip
Set scrolloff in neovim and add tcsh support
-rwxr-xr-x[-rw-r--r--].bashrc5
-rw-r--r--.config/nvim/lua/general.lua3
-rw-r--r--.config/nvim/lua/plugins.lua4
-rwxr-xr-x[-rw-r--r--].profile0
-rw-r--r--.tcshrc20
-rw-r--r--README.md6
6 files changed, 35 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index dbebf75..7ba29d2 100644..100755
--- a/.bashrc
+++ b/.bashrc
@@ -41,5 +41,8 @@ done
GPG_TTY="$(tty)"
export GPG_TTY
-eval "$(starship init bash)"
+if [ -n "$(which starship)" ]
+then
+ eval "$(starship init bash)"
+fi
diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua
index 28b4980..8864a2e 100644
--- a/.config/nvim/lua/general.lua
+++ b/.config/nvim/lua/general.lua
@@ -8,7 +8,8 @@ vim.opt.undofile = true
vim.opt.backupcopy = "yes"
vim.opt.undolevels = 1000
vim.opt.wrap = false
-vim.opt.colorcolumn = "80,120"
+vim.opt.colorcolumn = "80"
+vim.opt.scrolloff = 5
-- vim.opt.tabstop = 4
-- vim.opt.softtabstop = -1
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index a6a411b..de3025e 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -42,6 +42,7 @@ local PKGS = {
{ url = "https://github.com/editorconfig/editorconfig-vim.git" };
{ url = "https://github.com/nathom/filetype.nvim.git" };
{ url = "https://github.com/wfxr/minimap.vim.git" };
+ { url = "https://github.com/edluffy/hologram.nvim.git" };
-- LSP
{ url = "https://github.com/neovim/nvim-lspconfig.git" };
@@ -180,7 +181,8 @@ local function init_plugins()
-- or leave it empty to use the default settings
-- refer to the configuration section below
})
- vim.fn["mkdp#util#install"]()
+
+ require('hologram').setup({})
require("nvim-treesitter.configs").setup({
ensure_installed = { "javascript"; "typescript"; "lua"; "c_sharp"; "jsonc" };
diff --git a/.profile b/.profile
index 7fbe93d..7fbe93d 100644..100755
--- a/.profile
+++ b/.profile
diff --git a/.tcshrc b/.tcshrc
new file mode 100644
index 0000000..481bbc6
--- /dev/null
+++ b/.tcshrc
@@ -0,0 +1,20 @@
+#!/usr/bin/env tcsh
+
+"$HOME/.profile"
+
+set BAT=`which bat || which batcat`
+
+if ( "$BAT" != "" ) then
+ alias cat "$BAT -p"
+endif
+
+alias cls clear
+alias ls `which lsd || echo "ls -h -F --color=auto"`
+alias sudo `which doas || which sudo || echo "su -c"`
+
+set STARSHIP=`which starship`
+
+if ( "$STARSHIP" != "" ) then
+ eval `starship init tcsh`
+endif
+
diff --git a/README.md b/README.md
index 4b89451..65ce008 100644
--- a/README.md
+++ b/README.md
@@ -38,3 +38,9 @@ Here is an incomplete list of the required dependencies for each configuration.
- [deno](https://deno.land)
- [git](https://git-scm.com/)
+Also need to run this to get :MarkdownPreview to work
+
+```sh
+:lua vim.fn["mkdp#util#install"]()
+```
+