Dotfiles V.1.1.5
Updated Neovim Plugins as well as cleaned up aerospace config and sketbar config and added fastfetch config
This commit is contained in:
@@ -9,7 +9,7 @@ return {
|
||||
-- Set menu
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
|
||||
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>NvimTreeToggle<CR>"),
|
||||
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>Oil<CR>"),
|
||||
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>"),
|
||||
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
|
||||
dashboard.button("SPC sr", " > Resore Session", "<cmd>SessionRestore<CR>"),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
return {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "tpope/vim-surround" },
|
||||
{ "christoomey/vim-tmux-navigator" },
|
||||
{ "tpope/vim-fugitive" },
|
||||
{ "jghauser/follow-md-links.nvim" },
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ return {
|
||||
|
||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
||||
|
||||
mason_lspconfig.setup_handlers({
|
||||
mason_lspconfig.setup({
|
||||
function(server_name)
|
||||
lspconfig[server_name].setup({
|
||||
capabilities = capabilities,
|
||||
@@ -22,7 +22,7 @@ return {
|
||||
end,
|
||||
})
|
||||
|
||||
lspconfig["lua_ls"].setup({
|
||||
vim.lsp.config("lua_ls", {
|
||||
capabilities = capabilities,
|
||||
settings = { -- custom settings for lua
|
||||
Lua = {
|
||||
@@ -40,7 +40,7 @@ return {
|
||||
},
|
||||
},
|
||||
})
|
||||
lspconfig["pyright"].setup({
|
||||
vim.lsp.config("pyright", {
|
||||
capabilities = capabilities,
|
||||
filetypes = { "python" },
|
||||
settings = {
|
||||
@@ -49,14 +49,20 @@ return {
|
||||
},
|
||||
},
|
||||
})
|
||||
lspconfig["ltex"].setup({
|
||||
vim.lsp.config("ltex", {
|
||||
settings = {
|
||||
ltex = {
|
||||
language = "de-CH",
|
||||
checkFrequency = "save",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_text = true,
|
||||
signs = true,
|
||||
})
|
||||
|
||||
wk.add({
|
||||
{ "<leader>l", group = "lsp", icon = "" },
|
||||
{ "<leader>lr", "<cmd>Telescope lsp_references<CR>", desc = "Show references", icon = "" },
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
return {
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
ft = { "markdown" },
|
||||
build = function()
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end,
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
return {
|
||||
"hedyhli/markdown-toc.nvim",
|
||||
ft = "markdown",
|
||||
opts = {
|
||||
fences = {
|
||||
enabled = true,
|
||||
start_text = "toc-start",
|
||||
end_text = "toc-end",
|
||||
},
|
||||
|
||||
auto_update = true,
|
||||
|
||||
toc_list = {
|
||||
markers = "1.",
|
||||
cycle_markers = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local nvimtree = require("nvim-tree")
|
||||
local wk = require("which-key")
|
||||
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
nvimtree.setup({
|
||||
view = {
|
||||
width = 35,
|
||||
relativenumber = true,
|
||||
},
|
||||
renderer = {
|
||||
indent_markers = {
|
||||
enable = true,
|
||||
},
|
||||
icons = {
|
||||
glyphs = {
|
||||
folder = {
|
||||
arrow_closed = "", -- arrow when folder is closed
|
||||
arrow_open = "", -- arrow when folder is open
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
actions = {
|
||||
open_file = {
|
||||
window_picker = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
filters = {
|
||||
custom = { ".DS_Store" },
|
||||
},
|
||||
git = {
|
||||
ignore = false,
|
||||
},
|
||||
})
|
||||
wk.add({
|
||||
{ "<leader>e", group = "explorer", icon = "" },
|
||||
{ "<leader>ee", "<cmd>NvimTreeToggle<CR>", desc = "Toggle File Explorer", icon = "" },
|
||||
{ "<leader>er", "<cmd>NvimTreeRefresh<CR>", desc = "Refresh File Explorer", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
19
.config/nvim/lua/jirr02/plugins/oil.lua
Normal file
19
.config/nvim/lua/jirr02/plugins/oil.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
lazy = false,
|
||||
config = function()
|
||||
local oil = require("oil")
|
||||
local wk = require("which-key")
|
||||
|
||||
oil.setup({
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
})
|
||||
|
||||
wk.add({
|
||||
{ "<leader>ee", "<cmd>Oil<CR>", desc = "File Explorer", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
8
.config/nvim/lua/jirr02/plugins/orgmode.lua
Normal file
8
.config/nvim/lua/jirr02/plugins/orgmode.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"nvim-orgmode/orgmode",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
-- Setup orgmode
|
||||
require("orgmode").setup()
|
||||
end,
|
||||
}
|
||||
18
.config/nvim/lua/jirr02/plugins/smart_splits.lua
Normal file
18
.config/nvim/lua/jirr02/plugins/smart_splits.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"mrjones2014/smart-splits.nvim",
|
||||
config = function()
|
||||
local smart_splits = require("smart-splits")
|
||||
|
||||
smart_splits.setup({})
|
||||
|
||||
vim.keymap.set("n", "<C-S-h>", smart_splits.resize_left)
|
||||
vim.keymap.set("n", "<C-S-j>", smart_splits.resize_down)
|
||||
vim.keymap.set("n", "<C-S-k>", smart_splits.resize_up)
|
||||
vim.keymap.set("n", "<C-S-l>", smart_splits.resize_right)
|
||||
-- moving between splits
|
||||
vim.keymap.set("n", "<C-h>", smart_splits.move_cursor_left)
|
||||
vim.keymap.set("n", "<C-j>", smart_splits.move_cursor_down)
|
||||
vim.keymap.set("n", "<C-k>", smart_splits.move_cursor_up)
|
||||
vim.keymap.set("n", "<C-l>", smart_splits.move_cursor_right)
|
||||
end,
|
||||
}
|
||||
@@ -27,6 +27,7 @@ return {
|
||||
{ "<leader>fc", "<cmd>Telescope grep_string<CR>", desc = "Find String in File", icon = "" },
|
||||
{ "<leader>fg", "<cmd>Telescope git_files<CR>", desc = "Find git files", icon = "" },
|
||||
{ "<leader>ft", "<cmd>TodoTelescope<CR>", desc = "Find todos", icon = "" },
|
||||
{ "<leader>fn", "<cmd>Telescope neorg switch_workspace<CR>", desc = "Neorg Workspaces", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -11,17 +11,13 @@ return {
|
||||
"-pdf",
|
||||
},
|
||||
}
|
||||
vim.g.vimtex_fold_enabled = true
|
||||
vim.g.vimtex_format_enabled = true
|
||||
vim.g.vimtex_fold_enabled = true
|
||||
vim.g.vimtex_format_enabled = true
|
||||
|
||||
wk.add({
|
||||
{ "<leader>v", group = "vimtex", icon = "" },
|
||||
{ "<leader>vc", "<cmd>VimtexCompile>CR>", desc = "Compile LaTex File", icon = "" },
|
||||
{ "<leader>vo", "<cmd>VimtexView<CR>", desc = "Open compiled PDF in Zathura", icon = "" },
|
||||
{ "<leader>vd", group = "delete", icon = "" },
|
||||
{ "<leader>vde", "<Plug>(vimtex-env-delete)", desc = "Delete surrounding environment" },
|
||||
{ "<leader>vc", group = "change", icon = "" },
|
||||
{ "<leader>vt", group = "toggle", icon = "" },
|
||||
{ "<leader>vc", "<cmd>VimtexCompile>CR>", desc = "Compile LaTeX File", icon = "" },
|
||||
{ "<leader>vc", "<cmd>VimtexClean>CR>", desc = "Clean LaTeX directory", icon = "" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user