commit d8469f7d86bc0e479d5a21416350eea575d183b5
parent 70c3052581d71ee78920c02f4ac025d2e7ba1e7c
Author: Andrew <andrewlaack1@gmail.com>
Date: Wed, 10 Apr 2024 09:59:04 -0500
Updated readme
Diffstat:
4 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
@@ -9,6 +9,10 @@ To install you should just need to clone the repo to ~/.config/nvim. You might a
## Fonts
-To set up fonts, you need to install set the correct font and assign it to the terminal. I am using lxterminal right now with a cattpuccin theme. I downloaded and extracted the jetbrains mono font from nerd fonts so it has icons built in. I then moved it to /usr/local/share/fonts/jetbrains (best practice to make folder for each installed font) and then ran a command to re-sync the installed fonts. From here I right clicked the terminal and set the terminal font correctly. I was running into an issue earlier where icons would not load so I installed the nerd font instead of the official jetbrains one.
+To set up fonts, you need to install set the correct font and assign it to the terminal. I am using xfce4-terminal right now with a cattpuccin theme. I downloaded and extracted the jetbrains mono font from nerd fonts so it has icons built in. I then moved it to /usr/local/share/fonts/jetbrains (best practice to make folder for each installed font) and then ran a command to re-sync the installed fonts. From here I right clicked the terminal and set the terminal font correctly. I was running into an issue earlier where icons would not load so I installed the nerd font instead of the official jetbrains one.
-I prefer the extralight font with a font size of 15.
+I prefer the extralight font (standard not nl) with a font size of 15.
+
+## Terminal
+
+I had trouble with alacritty and their stupid toml file for colors so I ditched them. I tried gnome-terminal, but they didn't support the font I wanted. I used lxterminal for a while, but that one is weird because each terminal window is the same process which made swape files and vim annoying AF. I then tried kitty which is too slow and I also tried terminator which was as well.
diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua
@@ -17,10 +17,10 @@ vim.api.nvim_set_keymap('n', '<leader>p', ':FzfLua live_grep<CR>', { silent = tr
vim.api.nvim_set_keymap('n', '<leader>v', ':split<CR>', { silent = true })
vim.api.nvim_set_keymap('n', '<leader>h', ':vsplit<CR>', { silent = true })
-vim.api.nvim_set_keymap('n', '<leader>n', '<C-w>h', { silent = true })
-vim.api.nvim_set_keymap('n', '<leader>u', '<C-w>k', { silent = true })
-vim.api.nvim_set_keymap('n', '<leader>e', '<C-w>j', { silent = true })
-vim.api.nvim_set_keymap('n', '<leader>i', '<C-w>l', { silent = true })
+vim.api.nvim_set_keymap('n', '<leader><left>', '<C-w>h', { silent = true })
+vim.api.nvim_set_keymap('n', '<leader><up>', '<C-w>k', { silent = true })
+vim.api.nvim_set_keymap('n', '<leader><down>', '<C-w>j', { silent = true })
+vim.api.nvim_set_keymap('n', '<leader><right>', '<C-w>l', { silent = true })
vim.api.nvim_set_keymap('n', '<leader>t', ':let $VIM_DIR=expand(\'%:p:h\')<CR>:terminal<CR>cd $VIM_DIR<CR>', { silent = true })
vim.cmd('autocmd TermOpen * startinsert')
vim.api.nvim_set_keymap('i', '<expr> <TAB>', 'pumvisible() ? "<C-y>" : "<TAB>"', { silent = true })
@@ -30,7 +30,7 @@ vim.opt.tabstop = 4
vim.api.nvim_set_keymap('n', '<leader>d', ':e /home/andrew/gitRepos/toDoList/ToDoList.md<CR>', {noremap = true, silent = true})
-vim.api.nvim_set_keymap('n', '<leader>i', ':cd /home/andrew/gitRepos/notes <CR>:e /home/andrew/gitRepos/notes/Index.md<CR>', {noremap = true, silent = true})
+vim.api.nvim_set_keymap('n', '<leader>i', ':cd /home/andrew/gitRepos/notes <CR>:e /home/andrew/gitRepos/notes/index.md<CR>', {noremap = true, silent = true})
-- Normal mode and visual mode mappings
@@ -79,5 +79,10 @@ vim.api.nvim_set_keymap('i', '<C-l>', '$<left>$', { noremap = true })
vim.api.nvim_set_keymap('i', '<C-b>', '**<left><left>**', { noremap = true })
+vim.cmd("let g:wiki_root = '~/gitRepos/notes'")
+
+
+vim.api.nvim_set_keymap('n', '<leader>b', ':WikiGraphFindBacklinks<CR>', {noremap = true, silent = true})
+vim.api.nvim_set_keymap('n', '<leader>g', ':WikiGraphRelated<CR>', {noremap = true, silent = true})
diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua
@@ -14,7 +14,7 @@ local packer_bootstrap = ensure_packer()
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
-
+use 'lervag/wiki.vim'
use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
use { "catppuccin/nvim", as = "catppuccin" }
@@ -40,6 +40,7 @@ use { "ibhagwan/fzf-lua",
}
+
use = { "junegunn/fzf", run = "./install --bin" }
diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua
@@ -135,6 +135,11 @@ _G.packer_plugins = {
loaded = true,
path = "/home/andrew/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
+ },
+ ["wiki.vim"] = {
+ loaded = true,
+ path = "/home/andrew/.local/share/nvim/site/pack/packer/start/wiki.vim",
+ url = "https://github.com/lervag/wiki.vim"
}
}