Initial commit
This commit is contained in:
commit
efb531383d
14 changed files with 525 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/nvim/plugin/*
|
||||
/nvim/lua/plugin/*
|
6
README.md
Normal file
6
README.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# dotfiles
|
||||
|
||||
Some dotfiles of mine that I use. Feel free to critique my font choice, though don't be too harsh. :P
|
||||
With the exception of fonts, keeping it simple stupid is the name of the game here. Too large of a deviation
|
||||
from defaults is undesirable, usually making things more needlessly complex in both workflow and configuration;
|
||||
which is undesirable at large. This also ensures a lesser overall maintenance burden.
|
84
alacritty/alacritty.toml
Normal file
84
alacritty/alacritty.toml
Normal file
|
@ -0,0 +1,84 @@
|
|||
live_config_reload = true
|
||||
|
||||
[bell.command]
|
||||
args = ["/usr/share/sounds/freedesktop/stereo/dialog-warning.oga"]
|
||||
program = "paplay"
|
||||
|
||||
[colors]
|
||||
draw_bold_text_with_bright_colors = true
|
||||
|
||||
[colors.bright]
|
||||
black = "0x5b5858"
|
||||
blue = "0x3fc4de"
|
||||
cyan = "0x6be4e6"
|
||||
green = "0x3fdaa4"
|
||||
magenta = "0xf075b5"
|
||||
red = "0xec6a88"
|
||||
white = "0xd5d8da"
|
||||
yellow = "0xfbc3a7"
|
||||
|
||||
[colors.normal]
|
||||
black = "0x16161c"
|
||||
blue = "0x26bbd9"
|
||||
cyan = "0x59e1e3"
|
||||
green = "0x29d398"
|
||||
magenta = "0xee64ac"
|
||||
red = "0xe95678"
|
||||
white = "0xd5d8da"
|
||||
yellow = "0xfab795"
|
||||
|
||||
[colors.primary]
|
||||
background = "#000000"
|
||||
foreground = "#FFFFFF"
|
||||
|
||||
[cursor]
|
||||
blink_interval = 300
|
||||
thickness = 0.25
|
||||
unfocused_hollow = false
|
||||
vi_mode_style = "Beam"
|
||||
|
||||
[cursor.style]
|
||||
blinking = "Always"
|
||||
shape = "Underline"
|
||||
|
||||
[env]
|
||||
LANG = "en_CA.UTF-8"
|
||||
LC_ALL = "en_CA.UTF-8"
|
||||
TERM = "alacritty"
|
||||
|
||||
[font]
|
||||
size = 8.5
|
||||
|
||||
[font.bold]
|
||||
family = "Dina"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "Dina"
|
||||
|
||||
[font.italic]
|
||||
family = "Dina"
|
||||
|
||||
[font.normal]
|
||||
family = "Dina"
|
||||
|
||||
[font.offset]
|
||||
x = 0
|
||||
y = 0
|
||||
|
||||
[scrolling]
|
||||
history = 0
|
||||
multiplier = 3
|
||||
|
||||
[selection]
|
||||
save_to_clipboard = true
|
||||
|
||||
[window]
|
||||
dynamic_padding = true
|
||||
dynamic_title = true
|
||||
opacity = 0.7
|
||||
startup_mode = "Windowed"
|
||||
title = "Terminal"
|
||||
|
||||
[window.dimensions]
|
||||
columns = 130
|
||||
lines = 25
|
100
alacritty/alacritty.yml
Normal file
100
alacritty/alacritty.yml
Normal file
|
@ -0,0 +1,100 @@
|
|||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
# sapphirus@sapphirus.org - 2021-2023
|
||||
|
||||
env:
|
||||
TERM: alacritty
|
||||
LC_ALL: "en_CA.UTF-8"
|
||||
LANG: "en_CA.UTF-8"
|
||||
|
||||
window:
|
||||
dimensions:
|
||||
columns: 130
|
||||
lines: 25
|
||||
|
||||
dynamic_padding: true
|
||||
startup_mode: Windowed
|
||||
title: Terminal
|
||||
dynamic_title: true
|
||||
#gtk_theme_variant: None
|
||||
opacity: 0.7
|
||||
|
||||
scrolling:
|
||||
history: 0
|
||||
multiplier: 3
|
||||
|
||||
font:
|
||||
normal:
|
||||
family: Dina
|
||||
bold:
|
||||
family: Dina
|
||||
italic:
|
||||
family: Dina
|
||||
bold_italic:
|
||||
family: Dina
|
||||
|
||||
size: 9
|
||||
offset:
|
||||
x: 0
|
||||
y: 0
|
||||
|
||||
draw_bold_text_with_bright_colors: true
|
||||
|
||||
|
||||
# Colors (Horizon Dark)
|
||||
colors:
|
||||
# Primary colors
|
||||
primary:
|
||||
background: '#000000'
|
||||
foreground: '#FFFFFF'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x16161c'
|
||||
red: '0xe95678'
|
||||
green: '0x29d398'
|
||||
yellow: '0xfab795'
|
||||
blue: '0x26bbd9'
|
||||
magenta: '0xee64ac'
|
||||
cyan: '0x59e1e3'
|
||||
white: '0xd5d8da'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x5b5858'
|
||||
red: '0xec6a88'
|
||||
green: '0x3fdaa4'
|
||||
yellow: '0xfbc3a7'
|
||||
blue: '0x3fc4de'
|
||||
magenta: '0xf075b5'
|
||||
cyan: '0x6be4e6'
|
||||
white: '0xd5d8da'
|
||||
|
||||
transparent_background_colors: true
|
||||
|
||||
|
||||
# Bell
|
||||
bell:
|
||||
#animation: EaseOutSine
|
||||
#duration: 400
|
||||
#color: '#093d9e'
|
||||
command:
|
||||
program: paplay
|
||||
args: ["/usr/share/sounds/freedesktop/stereo/dialog-warning.oga"]
|
||||
|
||||
selection:
|
||||
save_to_clipboard: true
|
||||
|
||||
cursor:
|
||||
style:
|
||||
shape: Underline
|
||||
blinking: Always
|
||||
vi_mode_style: Beam
|
||||
blink_interval: 300
|
||||
unfocused_hollow: false
|
||||
thickness: 0.25
|
||||
live_config_reload: true
|
||||
|
||||
#shell:
|
||||
# program: /bin/bash
|
||||
# args:
|
||||
# - --login
|
48
fontconfig/fonts.conf
Normal file
48
fontconfig/fonts.conf
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>Dina</family>
|
||||
<accept>
|
||||
<family>Dina</family>
|
||||
<family>Monospace</family>
|
||||
<family>Inconsolata</family>
|
||||
<family>twemoji</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<match target="pattern">
|
||||
<edit name="rgba" mode="assign">
|
||||
<const>none</const>
|
||||
</edit>
|
||||
<edit name="hinting" mode="assign">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit name="autohint" mode="assign">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit name="antialias" mode="assign">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit name="hintstyle" mode="assign">
|
||||
<const>hintslight</const>
|
||||
</edit>
|
||||
<edit name="lcdfilter" mode="assign">
|
||||
<const>lcdlight</const>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="family" qual="any">
|
||||
<string>Dina</string>
|
||||
</test>
|
||||
<edit name="hinting" mode="assign">
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
<edit name="autohint" mode="assign">
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
<edit name="antialias" mode="assign">
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
28
nvim/init.vim
Normal file
28
nvim/init.vim
Normal file
|
@ -0,0 +1,28 @@
|
|||
lua require('plugins')
|
||||
lua require('telescope')
|
||||
lua require('config.bindings')
|
||||
lua require('config.telescope')
|
||||
lua require('config.treesitter')
|
||||
lua require('config.lsp')
|
||||
lua require('config.editor')
|
||||
lua require('config.theme')
|
||||
|
||||
set guicursor=
|
||||
set autoindent
|
||||
set wildmode=longest,list
|
||||
set laststatus=0
|
||||
set clipboard+=unnamedplus
|
||||
set background=dark
|
||||
set number
|
||||
set hidden
|
||||
set title
|
||||
set signcolumn=yes:1
|
||||
|
||||
filetype plugin on
|
||||
filetype indent on
|
||||
|
||||
colorscheme carbonfox
|
||||
|
||||
hi Normal ctermbg=NONE guibg=NONE
|
||||
hi SignColumn ctermbg=NONE guibg=NONE
|
||||
hi LineNr ctermbg=NONE guibg=none guifg=Grey
|
13
nvim/lua/config/bindings.lua
Normal file
13
nvim/lua/config/bindings.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
vim.g.mapleader = " "
|
||||
|
||||
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
vim.keymap.set("n", "<leader>sy", vim.cmd.PackerSync)
|
||||
vim.keymap.set("n", "<leader>ty", vim.cmd.TSUpdate)
|
||||
vim.keymap.set("n", "<leader>o", "<Cmd>Neotree<CR>")
|
||||
vim.keymap.set("n", "<leader>t", "<Cmd>Neotree toggle<CR>")
|
||||
vim.keymap.set("n", "<leader>p", "<Cmd>bp<CR>")
|
||||
vim.keymap.set("n", "<leader>q", "<Cmd>bd<CR>")
|
||||
vim.keymap.set("n", "<leader>l", "<Cmd>bl<CR>")
|
||||
vim.keymap.set("n", "<leader>lb", "<Cmd>VGit toggle_live_blame<CR>")
|
||||
vim.keymap.set("n", "<leader>bp", "<Cmd>VGit buffer_blame_preview<CR>")
|
21
nvim/lua/config/editor.lua
Normal file
21
nvim/lua/config/editor.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.nu = false
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.wrap = false
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.undofile = true
|
||||
|
||||
vim.g.moonflyNormalFloat = true
|
||||
vim.g.moonflyTransparent = true
|
||||
vim.g.moonflyUndercurls = false
|
||||
|
||||
vim.o.updatetime = 300
|
||||
vim.o.incsearch = false
|
||||
|
||||
vim.lsp.buf.signature_help = true
|
72
nvim/lua/config/lsp.lua
Normal file
72
nvim/lua/config/lsp.lua
Normal file
|
@ -0,0 +1,72 @@
|
|||
local lsp = require("lsp-zero")
|
||||
local git = require("vgit")
|
||||
local sig = require("lsp_signature")
|
||||
local cmp = require("cmp")
|
||||
local cmp_action = require("lsp-zero").cmp_action()
|
||||
|
||||
lsp.preset("recommended")
|
||||
|
||||
require('mason').setup({})
|
||||
require('mason-lspconfig').setup({
|
||||
ensure_installed = {'rust_analyzer'},
|
||||
handlers = {
|
||||
lsp.default_setup,
|
||||
},
|
||||
})
|
||||
|
||||
cmp.setup({
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-p>'] = cmp_action.luasnip_jump_backward(),
|
||||
['<C-n>'] = cmp_action.luasnip_jump_forward(),
|
||||
['<tab>'] = cmp.mapping.confirm({ select = true }),
|
||||
['<C-space>'] = cmp.mapping.complete(),
|
||||
})
|
||||
})
|
||||
|
||||
lsp.set_preferences({
|
||||
sign_icons = { }
|
||||
})
|
||||
|
||||
lsp.set_sign_icons({
|
||||
error = '',
|
||||
warn = '',
|
||||
hint = '',
|
||||
info = '',
|
||||
})
|
||||
|
||||
lsp.on_attach(function(client, bufnr)
|
||||
local opts = {buffer = bufnr, remap = false}
|
||||
|
||||
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
|
||||
vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts)
|
||||
vim.keymap.set("n", "<leader>vws", function() vim.lps.buf.workspace_symbol() end, opts)
|
||||
vim.keymap.set("n", "<leader>vd", function() vim.diagnostic.open_float() end, opts)
|
||||
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts)
|
||||
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts)
|
||||
vim.keymap.set("n", "<leader>vca", function() vim.diagnostic.code_action() end, opts)
|
||||
vim.keymap.set("n", "<leader>vrr", function() vim.diagnostic.references() end, opts)
|
||||
vim.keymap.set("n", "<leader>vrn", function() vim.diagnostic.rename() end, opts)
|
||||
vim.keymap.set("n", "<C-h>", function() vim.diagnostic.signature_help() end, opts)
|
||||
end)
|
||||
|
||||
|
||||
lsp.setup()
|
||||
-- sig.setup({
|
||||
-- hint_enable = false,
|
||||
-- fix_pos = ,
|
||||
-- always_trigger = true,
|
||||
-- handler_opts = {
|
||||
-- border = "rounded" -- double, rounded, single, shadow, none, or a table of borders
|
||||
-- },
|
||||
--})
|
||||
git.setup({
|
||||
settings = {
|
||||
signs = {
|
||||
priority = 0,
|
||||
},
|
||||
}
|
||||
})
|
15
nvim/lua/config/telescope.lua
Normal file
15
nvim/lua/config/telescope.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
local builtin = require('telescope.builtin')
|
||||
|
||||
vim.keymap.set('n', '<leader>f', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>g', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>b', builtin.buffers, {})
|
||||
|
||||
require('telescope').setup{
|
||||
defaults = {
|
||||
file_ignore_patterns = {
|
||||
"target",
|
||||
"dist/runtime",
|
||||
"dist/filesystem",
|
||||
}
|
||||
}
|
||||
}
|
29
nvim/lua/config/theme.lua
Normal file
29
nvim/lua/config/theme.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
require('nightfox').setup({
|
||||
options = {
|
||||
transparent = true, -- Disable setting background
|
||||
terminal_colors = true, -- Set terminal colors (vim.g.terminal_color_*) used in `:terminal`
|
||||
dim_inactive = false, -- Non focused panes set to alternative background
|
||||
module_default = true, -- Default enable value for modules
|
||||
},
|
||||
palettes = {
|
||||
all = { -- Normal terminal colour scheme
|
||||
black = "#16161c",
|
||||
blue = "#26bbd9",
|
||||
cyan = "#59e1e3",
|
||||
green = "#29d398",
|
||||
magenta = "#ee64ac",
|
||||
red = "#e95678",
|
||||
white = "#d5d8da",
|
||||
orange = "#fab795",
|
||||
yellow = "#fbc3a7",
|
||||
},
|
||||
},
|
||||
specs = {
|
||||
all = {
|
||||
syntax = {
|
||||
builtin0 = "blue.bright",
|
||||
comment = "white.dim",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
24
nvim/lua/config/treesitter.lua
Normal file
24
nvim/lua/config/treesitter.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "query" , "rust" },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
|
||||
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
-- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
|
||||
-- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
|
||||
-- the name of the parser)
|
||||
-- list of language that will be disabled
|
||||
additional_vim_regex_highlighting = true,
|
||||
},
|
||||
}
|
67
nvim/lua/plugins.lua
Normal file
67
nvim/lua/plugins.lua
Normal file
|
@ -0,0 +1,67 @@
|
|||
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
|
||||
|
||||
-- Only required if you have packer configured as `opt`
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
|
||||
return require('packer').startup(function(use)
|
||||
-- Packer can manage itself
|
||||
use('wbthomason/packer.nvim')
|
||||
|
||||
|
||||
use('olimorris/onedarkpro.nvim')
|
||||
use('EdenEast/nightfox.nvim')
|
||||
use('nvim-tree/nvim-web-devicons')
|
||||
|
||||
use('nvim-treesitter/playground');
|
||||
use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
|
||||
|
||||
use('mbbill/undotree')
|
||||
|
||||
use('williamboman/mason.nvim')
|
||||
use('williamboman/mason-lspconfig.nvim')
|
||||
|
||||
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.5',
|
||||
requires = { {'nvim-lua/plenary.nvim'} }
|
||||
}
|
||||
|
||||
use {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
}
|
||||
}
|
||||
|
||||
use {
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = 'v3.x',
|
||||
requires = {
|
||||
--- Uncomment the two plugins below if you want to manage the language servers from neovim
|
||||
-- {'williamboman/mason.nvim'},
|
||||
-- {'williamboman/mason-lspconfig.nvim'},
|
||||
|
||||
-- LSP Support
|
||||
{'neovim/nvim-lspconfig'},
|
||||
-- Autocompletion
|
||||
{'hrsh7th/nvim-cmp'},
|
||||
{'hrsh7th/cmp-nvim-lsp'},
|
||||
{'L3MON4D3/LuaSnip'},
|
||||
}
|
||||
}
|
||||
|
||||
use {
|
||||
"ray-x/lsp_signature.nvim",
|
||||
}
|
||||
|
||||
use {
|
||||
'tanvirtin/vgit.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
}
|
||||
}
|
||||
end)
|
16
tmux/tmux.conf
Normal file
16
tmux/tmux.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
unbind C-b
|
||||
bind-key k clear-history
|
||||
|
||||
set -g prefix C-s
|
||||
set -g status off
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ag terminal-overrides ",alacritty:RGB"
|
||||
|
||||
set-environment -g "LC_ALL" "en_CA.UTF-8"
|
||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.local/share/tmux/plugins/'
|
||||
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
|
||||
run '~/.local/share/tmux/plugins/tpm/tpm'
|
Loading…
Reference in a new issue