Skip to content

Commit

Permalink
Merge pull request #14 from solidsnakedev/mac
Browse files Browse the repository at this point in the history
Mac
  • Loading branch information
solidsnakedev authored Sep 17, 2023
2 parents 053a082 + 2404b0f commit 1316991
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: "**"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion home-manager/mac/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "22.11";
home.stateVersion = "23.05";

# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
Expand Down Expand Up @@ -58,6 +58,8 @@
};
interactiveShellInit = ''
neofetch --disable packages
export PATH="$PATH:/Users/jonathan/.aiken/bin"
eval "$(/opt/homebrew/bin/brew shellenv)"
'';
plugins = [{
name = "foreign-env";
Expand Down
17 changes: 14 additions & 3 deletions home-manager/mac/local-modules/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ in
coc-json
coc-snippets
coc-eslint
coc-prettier
jsonc-vim

#Markdown
Expand Down Expand Up @@ -127,9 +128,12 @@ in
plugin = comment-nvim;
type = "lua";
config = ''
require('Comment').setup()
require('Comment').setup {
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(),
}
'';
}
nvim-ts-context-commentstring

{
plugin = todo-comments-nvim;
Expand Down Expand Up @@ -160,6 +164,9 @@ in
disable = {"haskell"},
additional_vim_regex_highlighting = false,
},
context_commentstring = {
enable = true,
},
})
'';
}
Expand All @@ -173,7 +180,7 @@ in
options = {
mode = 'buffers',
themable = false,
numbers = 'buffer_id',
numbers = 'ordinal',
offsets = {
{filetype = 'NvimTree'}
},
Expand Down Expand Up @@ -286,7 +293,9 @@ in
custom_highlights = {
CocMenuSel = { fg = '#000000', bg = '#89DDFF' },
Structure = { fg = '#89DDFF'},
Identifier = {fg = '#F78C6C'}
Identifier = { fg = '#F78C6C' },
CurSearch = { fg = '#000000', bg = '#89DDFF' },
Search = { fg = '#000000',bg = '#F78C6C' }
}
})
vim.cmd("colorscheme material ")
Expand Down Expand Up @@ -355,6 +364,8 @@ in
];

extraLuaConfig = ''
-- https://github.com/JoosepAlviste/nvim-ts-context-commentstring
vim.opt.updatetime = 100
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
Expand Down

0 comments on commit 1316991

Please sign in to comment.