Compare commits

...

20 Commits

Author SHA1 Message Date
1214c4f3c8 Merge pull request 'Changed tmux theme to tokyonight storm' (#28) from tmux-theme-storm into main
Reviewed-on: #28
2024-11-17 15:29:47 +00:00
cbbf1ca0f9 Changed tmux theme to tokyonight storm
Changed the tmux theme to the storm variant of tokyonight
2024-11-17 10:28:56 -05:00
d6925ab9cc Merge pull request 'Addition of alias for la' (#27) from la-additon into main
Reviewed-on: #27
2024-11-17 15:27:45 +00:00
3f1a1c1375 Addition of alias for la
Added an alias for `la` to make sure it is available on all systems.
2024-11-17 10:26:52 -05:00
7140f9cf70 Merge pull request 'CMake Removal' (#26) from cmake-removal into main
Reviewed-on: #26
2024-11-17 15:24:14 +00:00
80ba7347e1 CMake Removal
Removed cmake from `ensure_installed` so that we dont lok to make
sure cmake is installd when starting or updating nvim. It makes
more sense to have the user install this with Mason instead.
2024-11-17 10:22:10 -05:00
622f5f3338 Merge pull request 'Wezterm' (#25) from wezterm into main
Reviewed-on: #25
2024-10-23 16:17:37 +00:00
02f3624b6f Wezterm
Added in a configuration for wezterm that is close to the configuration
that we have for kitty.
2024-10-23 12:15:47 -04:00
566ccc8489 Merge pull request 'Better Markdown' (#24) from better-markdown into main
Reviewed-on: #24
2024-10-20 19:43:41 +00:00
6ffe89a826 Better Markdown
Added in the plugin 'MeanderingProgrammer/render-markdown.nvim' to
supplement the markdown rendering to make it better and add more
features.
2024-10-20 15:39:48 -04:00
06d71e8b38 Merge pull request 'Move sudo notification' (#23) from move-admin into main
Reviewed-on: #23
2024-09-27 15:53:45 +00:00
2557e11e17 Move sudo notification
Moved sudo notification (the wizard) over to the left hand side of the
status bar before the prompt character. It makes it easier to see you
have escalated privileges and it plays nicer with kitty formatting.
2024-09-27 11:48:57 -04:00
cefef8a655 Merge pull request 'Btm Fix' (#22) from btm-fix into main
Reviewed-on: #22
2024-08-09 14:01:21 +00:00
a9ec41dfa9 Btm Fix
Bottom (btm) now uses `--theme` instead of `--color` to set the theme.
Changed the zsh configuration to reflect this in the new version of
bottom.
2024-08-09 09:58:24 -04:00
dda9ace55c Merge pull request 'Code Completions' (#21) from code-completions into main
Reviewed-on: #21
2024-08-05 15:29:18 +00:00
f4fb8fe907 Code Completions
Added in all the required plugins to get code completions, snippets,
linting, and formatting working. Also configured to auto install
a LSP for any language that isn't currently installed.
2024-08-05 11:26:38 -04:00
df2a4bebf3 Merge pull request 'Tmux Plugin Ignore' (#20) from tmux-plugin-ignore into main
Reviewed-on: #20
2024-08-05 12:39:04 +00:00
fbc69aed2c Tmux Plugin Ignore
Ignore the tmux plugins directory created by tmux plugin manager.
2024-08-05 08:36:22 -04:00
4c76f37d45 Merge pull request 'LSP Integration' (#19) from lsp-integration into main
Reviewed-on: #19
2024-08-05 01:07:38 +00:00
72fef12c29 LSP Integration
Integrated LSP functionality into neovim configurations. Installed
Mason to manage the installation of language servers. Used
mason-lspconfig for the bridge between Mason and nvim-lspconfig.
Also installed telescope-ui-select plugin to telescope to allow it
to use telescope and it's windows for code actions.
2024-08-04 21:03:03 -04:00
11 changed files with 197 additions and 14 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
nvim/dot-config/nvim/lazy-lock.json nvim/dot-config/nvim/lazy-lock.json
nvim/dot-config/nvim/.luarc.json
tmux/dot-config/tmux/plugins/

View File

@@ -0,0 +1,52 @@
return {
{
"hrsh7th/cmp-nvim-lsp",
},
{
"L3MON4D3/LuaSnip",
dependencies = {
"saadparwaiz1/cmp_luasnip",
"rafamadriz/friendly-snippets",
},
},
{
"hrsh7th/nvim-cmp",
config = function()
local cmp = require("cmp")
require("luasnip.loaders.from_vscode").lazy_load()
cmp.setup({
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
-- vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
require("luasnip").lsp_expand(args.body) -- For `luasnip` users.
-- require('snippy').expand_snippet(args.body) -- For `snippy` users.
-- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
-- vim.snippet.expand(args.body) -- For native neovim snippets (Neovim v0.10+)
end,
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
-- { name = 'vsnip' }, -- For vsnip users.
{ name = "luasnip" }, -- For luasnip users.
-- { name = 'ultisnips' }, -- For ultisnips users.
-- { name = 'snippy' }, -- For snippy users.
}, {
{ name = "buffer" },
}),
})
end,
},
}

View File

@@ -0,0 +1,48 @@
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end,
},
{
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = {
"clangd",
"lua_ls",
"pyright",
"rust_analyzer",
"taplo",
},
})
end,
},
{
"neovim/nvim-lspconfig",
config = function()
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local lspconfig = require("lspconfig")
lspconfig.clangd.setup({
capabilities = capabilities
})
lspconfig.lua_ls.setup({
capabilities = capabilities
})
lspconfig.pyright.setup({
capabilities = capabilities
})
lspconfig.rust_analyzer.setup({
capabilities = capabilities
})
lspconfig.taplo.setup({
capabilities = capabilities
})
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, {})
end,
},
}

View File

@@ -0,0 +1,11 @@
return {
"MeanderingProgrammer/render-markdown.nvim",
config = function ()
require("render-markdown").setup({
dependencies = {
'nvim-treesitter/nvim-treesitter',
'nvim-tree/nvim-web-devicons',
},
})
end
}

View File

@@ -0,0 +1,19 @@
return {
"nvimtools/none-ls.nvim",
config = function()
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.gersemi,
null_ls.builtins.formatting.stylua,
null_ls.builtins.diagnostics.cpplint,
null_ls.builtins.diagnostics.pylint,
},
})
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})
end,
}

View File

@@ -1,4 +1,5 @@
return { return {
{
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
branch = '0.1.x', branch = '0.1.x',
dependencies = { 'nvim-lua/plenary.nvim' }, dependencies = { 'nvim-lua/plenary.nvim' },
@@ -7,4 +8,36 @@ return {
vim.keymap.set('n', '<C-p>', builtin.find_files, {}) vim.keymap.set('n', '<C-p>', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {}) vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
end end
},
{
'nvim-telescope/telescope-ui-select.nvim',
config = function ()
-- This is your opts table
require("telescope").setup {
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown {
-- even more opts
}
-- pseudo code / specification for writing custom displays, like the one
-- for "codeactions"
-- specific_opts = {
-- [kind] = {
-- make_indexed = function(items) -> indexed_items, width,
-- make_displayer = function(widths) -> displayer
-- make_display = function(displayer) -> function(e)
-- make_ordinal = function(e) -> string
-- },
-- -- for example to disable the custom builtin "codeactions" display
-- do the following
-- codeactions = false,
-- }
}
}
}
-- To get ui-select loaded and working with telescope, you need to call
-- load_extension, somewhere after setup function:
require("telescope").load_extension("ui-select")
end
}
} }

View File

@@ -4,7 +4,8 @@ return{
config = function() config = function()
local configs = require("nvim-treesitter.configs") local configs = require("nvim-treesitter.configs")
configs.setup({ configs.setup({
ensure_installed = { "c", "cmake", "cpp", "lua", "python", "rust", "toml" }, ensure_installed = { "c", "cmake", "cpp", "lua", "markdown", "markdown_inline", "python", "rust", "toml" },
auto_install = true,
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },
}) })

View File

@@ -13,11 +13,11 @@ $python\
[](fg:#3d59a1 bg:#414868)\ [](fg:#3d59a1 bg:#414868)\
$cmd_duration\ $cmd_duration\
[ ](fg:#414868)\ [ ](fg:#414868)\
\n$character""" \n$sudo\
$character"""
right_format = """ right_format = """
$status\ $status
$sudo\
""" """
[character] [character]

View File

@@ -4,7 +4,7 @@ set -g @plugin 'fabioluciano/tmux-tokyo-night'
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @theme_variation 'moon' set -g @theme_variation 'storm'
set -g @theme_disable_plugins 1 set -g @theme_disable_plugins 1
#set -g @theme_plugin_datetime_format '%a %d %b %Y' #set -g @theme_plugin_datetime_format '%a %d %b %Y'

14
wezterm/dot-wezterm.lua Normal file
View File

@@ -0,0 +1,14 @@
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration
local config = wezterm.config_builder()
config.color_scheme = 'tokyonight_storm'
config.window_background_opacity = 0.95
config.enable_tab_bar = false
config.initial_cols = 205
config.initial_rows = 45
config.font_size = 10
return config

View File

@@ -3,11 +3,14 @@
############### ALIASES #################### ############### ALIASES ####################
# Load bottom with the proper color scheme # Load bottom with the proper color scheme
alias btm="btm --color=gruvbox" alias btm="btm --theme=gruvbox"
# Remap ls to use lsd # Remap ls to use lsd
alias ls="lsd" alias ls="lsd"
# Add alias for la to call lsd -lah
alias la="lsd -lah"
# Replace cat with bat # Replace cat with bat
alias cat="bat" alias cat="bat"