allow setting `vim.o` objects in nvim/lua

This commit is contained in:
eleith 2023-02-10 22:23:02 +00:00
parent d3bf682fb5
commit 46f4ec6e31
5 changed files with 34 additions and 5 deletions

View File

@ -5,18 +5,18 @@ set -x EDITOR nvim
set -x VISUAL nvim
# add local binaries to path
if test -f "$HOME/.local/bin"
if test -d ~/.local/bin
set PATH "$HOME/.local/bin" $PATH
end
# add go binaries to path
if test -f "$HOME/.go"
if test -d ~/.go
set -gx GOPATH "$HOME/.go"
set PATH "$HOME/.go/bin" $PATH
end
# add rust binaries to path
if test -f "$HOME/.cargo/bin"
if test -d ~/.cargo/bin
set PATH "$HOME/.cargo/bin" $PATH
end

View File

@ -1 +1,3 @@
read_globals = { "vim" }
global = { "vim.o" }

View File

@ -0,0 +1,19 @@
return {
"NvChad/nvim-colorizer.lua",
opts = {
filetypes = {
"css",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"scss",
"html",
},
user_default_options = {
css = true,
names = false,
css_fn = true,
}
}
}

View File

@ -0,0 +1,8 @@
return {
"folke/which-key.nvim",
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
require("which-key").setup { }
end,
}

View File

@ -33,7 +33,7 @@ set -g default-terminal 'tmux-256color'
set -as terminal-overrides ',xterm-256color:Tc'
#remember last 1000 commands
set -g history-limit 2000
set -g history-limit 1000
# Automatically set window title
set -g status-interval 5
@ -47,7 +47,7 @@ setw -g monitor-activity on
set -g visual-activity on
# basic settings, make work like vi
setw -g mode-keys vi # vi key
setw -g mode-keys vi
set -g status-keys vi
set -g status-position bottom