This commit is contained in:
Henrik Bakken
2022-03-08 19:01:27 +01:00
parent ea2e2af642
commit 80cf33642c
3 changed files with 10 additions and 19 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
function ll --description 'List contents of directory using long format' function ll --description 'List contents of directory using long format'
ls -lha $argv exa --icons -l $argv
end end
+1 -1
View File
@@ -1,3 +1,3 @@
function ll --description 'List contents of directory using long format' function ll --description 'List contents of directory using long format'
ls -lha $argv exa --icons -l -g $argv
end end
+8 -17
View File
@@ -154,8 +154,8 @@ map("n", "<C-j>", "5<C-w>-", {noremap = true})
map("n", "<C-k>", "5<C-w>+", {noremap = true}) map("n", "<C-k>", "5<C-w>+", {noremap = true})
map("n", "<C-l>", "5<C-w>>", {noremap = true}) map("n", "<C-l>", "5<C-w>>", {noremap = true})
-- quickfix window -- quickfix window
map("n", "<C-n>", ":cp<cr>", {noremap = true}) map("n", "<C-p>", ":cp<cr>", {noremap = true})
map("n", "<C-p>", ":cn<cr>", {noremap = true}) map("n", "<C-n>", ":cn<cr>", {noremap = true})
-- remove buffer -- remove buffer
map("n", "<M-d>", ":bprev<bar>:bd#<cr>", {noremap = true}) map("n", "<M-d>", ":bprev<bar>:bd#<cr>", {noremap = true})
map("n", "<M-D>", ":bprev<bar>:bd!#<cr>", {noremap = true}) map("n", "<M-D>", ":bprev<bar>:bd!#<cr>", {noremap = true})
@@ -302,7 +302,7 @@ require("packer").startup {
"junegunn/seoul256.vim", "junegunn/seoul256.vim",
config = function() vim.g.seoul256_background = 235 end config = function() vim.g.seoul256_background = 235 end
} }
vim.cmd "colorscheme nord" vim.cmd "colorscheme one"
-- coloring of colornames -- coloring of colornames
use { use {
@@ -362,15 +362,6 @@ require("packer").startup {
end end
} }
use {
"mbbill/undotree",
config = function()
local map = vim.api.nvim_set_keymap
map("", "<F11>", ":UndotreeToggle<cr>:UndotreeFocus<cr>",
{noremap = true})
end
}
use { use {
"iamcco/markdown-preview.nvim", -- requires yarn "iamcco/markdown-preview.nvim", -- requires yarn
run = "cd /home/hjalmarlucius/.local/share/nvim/site/pack/packer/start/markdown-preview && yarn install", run = "cd /home/hjalmarlucius/.local/share/nvim/site/pack/packer/start/markdown-preview && yarn install",
@@ -419,9 +410,9 @@ require("packer").startup {
{noremap = true, silent = true}) {noremap = true, silent = true})
map("n", "<M-K>", ":BufferLineCycleNext<cr>", map("n", "<M-K>", ":BufferLineCycleNext<cr>",
{noremap = true, silent = true}) {noremap = true, silent = true})
map("n", "<M-N>", ":BufferLineMovePrev<cr>", map("n", "<M-P>", ":BufferLineMovePrev<cr>",
{noremap = true, silent = true}) {noremap = true, silent = true})
map("n", "<M-M>", ":BufferLineMoveNext<cr>", map("n", "<M-N>", ":BufferLineMoveNext<cr>",
{noremap = true, silent = true}) {noremap = true, silent = true})
end end
} }
@@ -624,7 +615,7 @@ require("packer").startup {
MAYBE = {icon = "", color = "default"}, MAYBE = {icon = "", color = "default"},
IDEA = {icon = "", color = "hint"} IDEA = {icon = "", color = "hint"}
}, },
merge_keywords = true, -- when true, custom keywords will be merged with the defaults merge_keywords = false, -- when true, custom keywords will be merged with the defaults
highlight = {keyword = "bg", pattern = [[<(KEYWORDS)\s*]]}, highlight = {keyword = "bg", pattern = [[<(KEYWORDS)\s*]]},
search = {pattern = [[\b(KEYWORDS)\b]]}, search = {pattern = [[\b(KEYWORDS)\b]]},
colors = { colors = {
@@ -668,10 +659,10 @@ require("packer").startup {
bmap(bufnr, "n", "<M-i>", bmap(bufnr, "n", "<M-i>",
"<cmd>lua vim.diagnostic.show_line_diagnostics({show_header=false})<cr>", "<cmd>lua vim.diagnostic.show_line_diagnostics({show_header=false})<cr>",
opts) opts)
bmap(bufnr, "n", "<M-p>", bmap(bufnr, "n", "<M-n>",
"<cmd>lua vim.diagnostic.goto_next({severity_limit='Warning', popup_opts={show_header=false}})<cr>", "<cmd>lua vim.diagnostic.goto_next({severity_limit='Warning', popup_opts={show_header=false}})<cr>",
opts) opts)
bmap(bufnr, "n", "<M-n>", bmap(bufnr, "n", "<M-p>",
"<cmd>lua vim.diagnostic.goto_prev({severity_limit='Warning', popup_opts={show_header=false}})<cr>", "<cmd>lua vim.diagnostic.goto_prev({severity_limit='Warning', popup_opts={show_header=false}})<cr>",
opts) opts)
-- popups -- popups