Compare commits
16 Commits
df2a4bebf3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1214c4f3c8 | |||
| cbbf1ca0f9 | |||
| d6925ab9cc | |||
| 3f1a1c1375 | |||
| 7140f9cf70 | |||
| 80ba7347e1 | |||
| 622f5f3338 | |||
| 02f3624b6f | |||
| 566ccc8489 | |||
| 6ffe89a826 | |||
| 06d71e8b38 | |||
| 2557e11e17 | |||
| cefef8a655 | |||
| a9ec41dfa9 | |||
| dda9ace55c | |||
| f4fb8fe907 |
52
nvim/dot-config/nvim/lua/plugins/completions.lua
Normal file
52
nvim/dot-config/nvim/lua/plugins/completions.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
@@ -1,39 +1,48 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
config = function ()
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
config = function ()
|
||||
config = function()
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"clangd",
|
||||
"cmake",
|
||||
"lua_ls",
|
||||
"pyright",
|
||||
"rust_analyzer",
|
||||
"taplo",
|
||||
}
|
||||
},
|
||||
})
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
local lspconfig = require("lspconfig")
|
||||
lspconfig.clangd.setup({})
|
||||
lspconfig.cmake.setup({})
|
||||
lspconfig.lua_ls.setup({})
|
||||
lspconfig.pyright.setup({})
|
||||
lspconfig.rust_analyzer.setup({})
|
||||
lspconfig.taplo.setup({})
|
||||
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
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
||||
11
nvim/dot-config/nvim/lua/plugins/markdown.lua
Normal file
11
nvim/dot-config/nvim/lua/plugins/markdown.lua
Normal 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
|
||||
}
|
||||
19
nvim/dot-config/nvim/lua/plugins/none-ls.lua
Normal file
19
nvim/dot-config/nvim/lua/plugins/none-ls.lua
Normal 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,
|
||||
}
|
||||
@@ -4,7 +4,8 @@ return{
|
||||
config = function()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
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 },
|
||||
indent = { enable = true },
|
||||
})
|
||||
|
||||
@@ -13,11 +13,11 @@ $python\
|
||||
[](fg:#3d59a1 bg:#414868)\
|
||||
$cmd_duration\
|
||||
[ ](fg:#414868)\
|
||||
\n$character"""
|
||||
\n$sudo\
|
||||
$character"""
|
||||
|
||||
right_format = """
|
||||
$status\
|
||||
$sudo\
|
||||
$status
|
||||
"""
|
||||
|
||||
[character]
|
||||
|
||||
@@ -4,7 +4,7 @@ set -g @plugin 'fabioluciano/tmux-tokyo-night'
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
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_plugin_datetime_format '%a %d %b %Y'
|
||||
|
||||
|
||||
14
wezterm/dot-wezterm.lua
Normal file
14
wezterm/dot-wezterm.lua
Normal 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
|
||||
@@ -3,11 +3,14 @@
|
||||
############### ALIASES ####################
|
||||
|
||||
# Load bottom with the proper color scheme
|
||||
alias btm="btm --color=gruvbox"
|
||||
alias btm="btm --theme=gruvbox"
|
||||
|
||||
# Remap ls to use lsd
|
||||
alias ls="lsd"
|
||||
|
||||
# Add alias for la to call lsd -lah
|
||||
alias la="lsd -lah"
|
||||
|
||||
# Replace cat with bat
|
||||
alias cat="bat"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user