diff options
| author | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
| commit | ef76de9cd2829069b78e438bf788a76b0b85c583 (patch) | |
| tree | 47845e9c24c3ab7301786137933c1f4fe04e6825 /.config | |
hello, world
Diffstat (limited to '.config')
| -rw-r--r-- | .config/alacritty/alacritty.yml | 48 | ||||
| -rw-r--r-- | .config/nvim/init.lua | 54 | ||||
| -rw-r--r-- | .config/nvim/lua/lsp.lua | 23 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin_conf.lua | 62 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins.lua | 31 |
5 files changed, 218 insertions, 0 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..8c40e3a --- /dev/null +++ b/.config/alacritty/alacritty.yml @@ -0,0 +1,48 @@ + +window: + padding: + x: 10 + y: 10 + opacity: 1.0 + +colors: + primary: + background: "0x000000" + normal: + black: "0x111111" + white: "0xAAAAAA" + red: "0xAA0033" + green: "0x009955" + yellow: "0x997000" + blue: "0x335599" + magenta: "0x993999" + cyan: "0x008899" + bright: + black: "0x444444" + white: "0xFFFFFF" + red: "0xFF0033" + green: "0x00FF77" + yellow: "0xFFFF00" + blue: "0x00AAFF" + magenta: "0xFF77FF" + cyan: "0x00DDFF" + +font: + normal: + family: "Less Perfect DOS VGA" + style: Regular + bold: + family: "Less Perfect DOS VGA" + style: Bold + italic: + family: "JetBrainsMono Nerd Font" + style: "Italic" + size: 12.0 + +mouse_bindings: + - { mouse: Middle, action: PasteSelection } + +cursor: + style: Block + +draw_bold_text_with_bright_colors: true diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..505c687 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,54 @@ + +local packer_path = vim.fn.stdpath('config') .. '/site' +vim.o.packpath = vim.o.packpath .. ',' .. packer_path + +require("plugins") +require("plugin_conf") +require("lsp") + +-- OPTIONS + +local opt = vim.opt + +opt.number = true +opt.relativenumber = false +opt.cursorline = true +opt.scrolloff = 4 +opt.signcolumn = "yes" + +opt.encoding = 'utf8' +opt.fileencoding = 'utf8' +opt.syntax = "ON" +opt.termguicolors = true +vim.api.nvim_command('colorscheme dracula') + +opt.ignorecase = true +opt.smartcase = true +opt.incsearch = true +opt.hlsearch = false + +opt.expandtab = true +opt.shiftwidth = 2 +opt.softtabstop = 2 +opt.tabstop = 2 + +opt.splitright = true +opt.splitbelow = true + +-- KEYS + +local map = vim.api.nvim_set_keymap + +local key = '<space>' +map('i', key .. 'jk', '<escape>', {}) +map('n', key .. 'n', [[:NvimTreeToggle<cr>]], {}) +map('n', key .. 'f', [[:Telescope find_files<cr>]], {}) +map('n', key .. 'g', [[:Git<cr>]], {}) +map('n', key .. 'to', [[:TermOpen<cr><cr>]], {}) + +-- Move panes +map('n', '<C-h>', '<C-w>h', {}) +map('n', '<C-j>', '<C-w>j', {}) +map('n', '<C-k>', '<C-w>k', {}) +map('n', '<C-l>', '<C-w>l', {}) + diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua new file mode 100644 index 0000000..66574b1 --- /dev/null +++ b/.config/nvim/lua/lsp.lua @@ -0,0 +1,23 @@ +local lsp = require('lspconfig') +lsp.lua_ls.setup { + Lua = { + runtime = { + version = "LuaJIT", + }, + telementry = { + enable = false, + } + } +} + +lsp.ccls.setup { + init_options = { + compilationDatabaseDirectory = "build", + index = { + threads = 0, + }, + clang = { + excludeArgs = { "-frounding-math" }, + }, + } +} diff --git a/.config/nvim/lua/plugin_conf.lua b/.config/nvim/lua/plugin_conf.lua new file mode 100644 index 0000000..9b90a80 --- /dev/null +++ b/.config/nvim/lua/plugin_conf.lua @@ -0,0 +1,62 @@ +require('nvim-tree').setup{} + +require('lualine').setup { + options = { + icons_enabled = false, + theme = 'dracula-nvim', + component_separators = { left = ' ', right = ' '}, + section_separators = { left = ' ', right = ' '}, + disabled_filetypes = { + statusline = {}, + winbar = {}, + }, + ignore_focus = {}, + always_divide_middle = true, + globalstatus = false, + refresh = { + statusline = 1000, + tabline = 1000, + winbar = 1000, + } + }, + sections = { + lualine_a = {'mode'}, + lualine_b = {'branch', 'diff', 'diagnostics'}, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'} + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {'filename'}, + lualine_x = {'location'}, + lualine_y = {}, + lualine_z = {} + }, + tabline = {}, + winbar = {}, + inactive_winbar = {}, + extensions = {} +} + +require('nvim-autopairs').setup{ + fast_wrap = { + map = '<M-e>', + chars = { '{', '[', '(', '"', "'" }, + pattern = [=[[%'%"%>%]%)%}%,]]=], + end_key = '$', + keys = 'qwertyuiopzxcvbnmasdfghjkl', + check_comma = true, + highlight = 'Search', + highlight_grey='Comment' + } +} + +require('terminal').setup{ + layout = { open_cmd = "botright new" }, + cmd = { vim.o.shell }, + autoclose = false, +} + diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua new file mode 100644 index 0000000..ab8d0ff --- /dev/null +++ b/.config/nvim/lua/plugins.lua @@ -0,0 +1,31 @@ +return require('packer').startup(function(use) + use { + 'kyazdani42/nvim-tree.lua', + requires = 'kyazdani42/nvim-web-devicons' + } + + use { + 'nvim-telescope/telescope.nvim', + requires = { { 'nvim-lua/plenary.nvim' } } + } + + use { + 'rebelot/terminal.nvim', + } + + use { 'neovim/nvim-lspconfig' } + + use { 'majutsushi/tagbar' } + use { 'Yggdroot/indentLine' } + use { 'tpope/vim-fugitive' } + use { 'junegunn/gv.vim' } + use { 'windwp/nvim-autopairs' } + + use { 'mhinz/vim-startify' } + use { 'DanilaMihailov/beacon.nvim' } + use { + 'nvim-lualine/lualine.nvim', + requires = { 'kyazdani42/nvim-web-devicons', opt = true } + } + use { 'Mofiqul/dracula.nvim' } +end) |
