aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-01-22 23:59:49 +0200
committersrdusr <trevorgray@srdusr.com>2023-01-22 23:59:49 +0200
commitdac9bf1c1349e36b1505ec76cc9a27483260c6be (patch)
treef45f52400fbdaf88ecc41072e8d70fb9e53d0020 /lua
parent7d9fff34ac445f6c34711c5b62732ff8a9163237 (diff)
downloaddotfiles-dac9bf1c1349e36b1505ec76cc9a27483260c6be.tar.gz
dotfiles-dac9bf1c1349e36b1505ec76cc9a27483260c6be.zip
Squashed '.config/nvim/' changes from 52469dc..e18107b
e18107b Changed colorscheme cb3bbf6 Add zsh own icon b94e51d Add wezterm to config find function e564f7b Comment out text width setting 9c8462c Add how to find mappings/default mappings 486b7f9 Allowed searching of gitignore private notes git-subtree-dir: .config/nvim git-subtree-split: e18107bd533a17c8a3b37fe3fc6b0b5d17d4bd30
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/colorscheme.lua2
-rw-r--r--lua/plugins/nvim-tree.lua3
-rw-r--r--lua/plugins/telescope.lua5
-rw-r--r--lua/plugins/web-devicons.lua19
-rw-r--r--lua/user/opts.lua2
5 files changed, 21 insertions, 10 deletions
diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua
index 6b4e6f9..1f76a40 100644
--- a/lua/plugins/colorscheme.lua
+++ b/lua/plugins/colorscheme.lua
@@ -1,6 +1,6 @@
-- Colorscheme
-- ayu gruvbox molokai onedark srcery everblush vscode edge nightfly doom-one
-local colorscheme = "doom-one"
+local colorscheme = "onedark"
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
vim.notify("colorscheme " .. colorscheme .. " not found!")
diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua
index df4e282..c950357 100644
--- a/lua/plugins/nvim-tree.lua
+++ b/lua/plugins/nvim-tree.lua
@@ -10,6 +10,9 @@ end
local tree_cb = nvim_tree_config.nvim_tree_callback
+-- To see mappings `g?` on nvim-tree
+-- To see default mappings `:nvim-tree-default-mappings`
+
nvim_tree.setup({
update_focused_file = {
enable = true,
diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua
index d4a54fa..c4aca35 100644
--- a/lua/plugins/telescope.lua
+++ b/lua/plugins/telescope.lua
@@ -294,6 +294,7 @@ function M.find_configs()
"~/.config/tmux",
"~/.config/X11",
"~/.config/alacritty",
+ "~/.config/wezterm",
"~/.config/bspwm",
"~/.config/sxhkd",
"~/.config/picom",
@@ -315,7 +316,7 @@ end
function M.grep_notes()
local opts = {}
- opts.hidden = true
+ opts.hidden = false
opts.search_dirs = {
"~/documents/notes/",
}
@@ -327,9 +328,11 @@ end
function M.find_notes()
require("telescope.builtin").find_files {
+ hidden = false,
prompt_title = " Find Notes",
path_display = { "smart" },
search_dirs = {
+ "~/documents/notes/private/",
"~/documents/notes",
},
--cwd = "~documents/notes",
diff --git a/lua/plugins/web-devicons.lua b/lua/plugins/web-devicons.lua
index b8396bc..2f68275 100644
--- a/lua/plugins/web-devicons.lua
+++ b/lua/plugins/web-devicons.lua
@@ -1,12 +1,17 @@
-local status, icons = pcall(require, "nvim-web-devicons")
-if (not status) then return end
-
-icons.setup {
- -- your personnal icons can go here (to override)
- -- DevIcon will be appended to `name`
+--local status, icons = pcall(require, "nvim-web-devicons")
+--if (not status) then return end
+--icons.setup {
+require'nvim-web-devicons'.setup {
override = {
+ zsh = {
+ icon = "",
+ color = "#428850",
+ cterm_color = "65",
+ name = "Zsh"
+ };
+ color_icons = true;
},
-- globally enable default icons (default to false)
-- will get overriden by `get_icons` option
- default = true
+ --default = true
}
diff --git a/lua/user/opts.lua b/lua/user/opts.lua
index 57b2949..ce12c8c 100644
--- a/lua/user/opts.lua
+++ b/lua/user/opts.lua
@@ -118,7 +118,7 @@ vim.opt.backup = false --
vim.opt.backupskip = { "/tmp/*", "/private/tmp/*" } --
-- Format
-vim.opt.textwidth = 80 --
+--vim.opt.textwidth = 80 --
vim.cmd([[let &t_Cs = "\e[4:3m"]]) -- Undercurl
vim.cmd([[let &t_Ce = "\e[4:0m"]]) --
vim.opt.path:append({ "**" }) -- Finding files - Search down into subfolder