Add python310 pip and virtualenv

This commit is contained in:
Jeremy Wall 2023-10-28 09:18:46 -04:00
parent f7f17259de
commit a50b10c05a
3 changed files with 20 additions and 4 deletions

View File

@ -136,6 +136,7 @@ EOF";
}; };
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
terraform # TODO(jeremy): Replace with opentofu when that is an option. terraform # TODO(jeremy): Replace with opentofu when that is an option.
terraform-ls
postgresql postgresql
oha oha
nodejs nodejs
@ -144,7 +145,9 @@ EOF";
gnumake gnumake
# TODO find a version of the julia package that will install # TODO find a version of the julia package that will install
# on darwin and add it as an overlay # on darwin and add it as an overlay
python3 python310
python310Packages.pip
python310Packages.vritualenv
emacs emacs
git git
mercurial mercurial
@ -168,6 +171,7 @@ EOF";
rlwrap rlwrap
docker-client docker-client
google-cloud-sdk google-cloud-sdk
awscli2
nil-pkg nil-pkg
alloy6 alloy6
omnisharp-roslyn omnisharp-roslyn

View File

@ -11,7 +11,11 @@ vim.opt.paste = false
vim.opt.autoindent = true vim.opt.autoindent = true
vim.opt.linebreak = true vim.opt.linebreak = true
vim.opt.mouse = "" vim.opt.mouse = ""
-- neovim tabstop and shift behavior got more complicated.
-- This should cover all the cases though
vim.opt.tabstop = 4 vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
--vim.opt.smarttab = false
vim.g.BASH_AuthorName = 'Jeremy Wall' vim.g.BASH_AuthorName = 'Jeremy Wall'
vim.g.BASH_AuthorRef = 'jw' vim.g.BASH_AuthorRef = 'jw'
@ -36,6 +40,10 @@ vim.cmd([[
au BufNewFile,BufRead *.app set filetype=erlang au BufNewFile,BufRead *.app set filetype=erlang
]]) ]])
vim.cmd([[
au BufNewFile,BufRead *.tf set filetype=terraform
]])
vim.cmd([[ vim.cmd([[
au BufNewFile,BufRead .bash_* set filetype=sh au BufNewFile,BufRead .bash_* set filetype=sh
]]) ]])
@ -110,6 +118,9 @@ local caps = vim.tbl_deep_extend(
); );
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
-- Terraform lsp setup
lspconfig.terraformls.setup{}
-- Nix language server support -- Nix language server support
lspconfig.nil_ls.setup{ lspconfig.nil_ls.setup{
--single_file_support = true, --single_file_support = true,
@ -281,6 +292,7 @@ autocmd CursorHold * lua vim.diagnostic.open_float(nil, { focusable = false })
]]) ]])
-- Treesitter Plugin Setup -- Treesitter Plugin Setup
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
highlight = { highlight = {
enable = true, enable = true,

6
nix/darwin/flake.lock generated
View File

@ -36,12 +36,12 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-zVAgh0D4HCh+dWzci0xqqYpQsXgahZ08vsV8xaXERyk=", "narHash": "sha256-V6nZiN2UUJuPkB+sGCGoLTV3vSlKJpYM72WUOF+wBu4=",
"path": "/nix/store/gm1v6s4s2qaps6sc9nbj4lz92495djin-source/nix/base-system", "path": "/nix/store/xbfbv6krjgwi56whcdydwpbcxf4czscs-source/nix/base-system",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/gm1v6s4s2qaps6sc9nbj4lz92495djin-source/nix/base-system", "path": "/nix/store/xbfbv6krjgwi56whcdydwpbcxf4czscs-source/nix/base-system",
"type": "path" "type": "path"
} }
}, },