diff --git a/content/posts/barbenheimer.md b/content/posts/barbenheimer.md index ad9b076..d032456 100644 --- a/content/posts/barbenheimer.md +++ b/content/posts/barbenheimer.md @@ -1,98 +1,98 @@ --- title: "Barbenheimer" date: 2023-08-03T10:03:12+09:30 -lastmod: 2023-08-07 -draft: true +lastmod: 2024-04-16 +draft: false --- -Over the last two weeks my partner and I have seen both Oppenheimer and Barbie -at the movies. I have to admit that initially I was only intending to see -Oppenheimer at the movies and then watch Barbie at home, as by my estimation, -Christopher Nolan movies are almost always better seen at the cinema. Both movies -were fantastic in my opinion however they have framed an interesting set of +Over the last two weeks my partner and I have seen both Oppenheimer and Barbie +at the movies. I have to admit that initially I was only intending to see +Oppenheimer at the movies and then watch Barbie at home, as by my estimation, +Christopher Nolan movies are almost always better seen at the cinema. Both movies +were fantastic, and they framed an interesting set of thoughts for me that I would like to delve into a bit here. ## Oppenheimer -The first of the two that we went to see was Oppenheimer. I have been familiar -with Oppenheimer (the man) and the Manhattan Project for some time, but only -in a very surface level manner. That is to say, I had a good idea of what the -broad strokes of the story would probably be, and I wasn't far off. Obviously, -with the director, cast, and subject involved, it was going to be a -fantastic movie. It is, in my approximation, a fantastic display of the art of -cinema and movie making. The projection, acting, story, etc, are world-class, -and it was a wonderful movie to watch. +The first of the two that we went to see was Oppenheimer. I have been familiar +with Oppenheimer (the man) and the Manhattan Project for some time, but only +in a very surface level way. That is to say, I had a good idea of what the +broad strokes of the story would probably be - I wasn't far off. -On a personal note the only real complaint I had with the whole thing was the -depiction of the Trinity test which I felt, through the focus on a practical -reproduction of the explosion, fell short of really managing to communicate the -incredible destructive force of a nuclear bomb. Secondarily to that was, again -this is very much my personal opinion here, the trivialisation of the line -Oppenheimer is famous for from the Bhagavad Gita. Perhaps it was wrong for me to -do so but I expected this line to be somewhat more important in the movie than +The only real complaints I had with the whole thing were first, the +depiction of the Trinity test which I felt, through the focus on a practical +reproduction of the explosion, fell short of really managing to communicate the +incredible destructive force of a nuclear bomb. Secondly was, again +this is very much my personal opinion here, the trivialisation of the line +Oppenheimer is famous for from the Bhagavad Gita. Perhaps it was wrong for me to +do so but I expected this line to be somewhat more important in the movie than it was. -The primary public criticism that I have seen of the movie is either that it -turns Oppenheimer into a hero, and honestly I couldn't disagree more, it far -from mythologises him in my eyes, or that it whitewashes, or at least ignores, -the ways in which the Manhattan Project, particularly Los Alamos and the Trinity -test impacted local peoples at the time. This second point I think is the most -valid criticism, however I think it falls short in justification as the movie -is about the man, not about the bomb, or the Manhattan Project, or even the war. -That being said, have some indication of the impacts, such as the fact that -the site for the Trinity test, or even Los Alamos, were not simple deserted -desert but rather inhabited and appropriated by the government for their use, +The primary public criticism that I have seen of the movie is either that it +turns Oppenheimer into a hero, and honestly I couldn't disagree more, it far +from mythologises him in my eyes, or that it whitewashes, or at least ignores, +the ways in which the Manhattan Project, particularly Los Alamos and the Trinity +test impacted local peoples at the time. This second point, I think, is the more +valid criticism, however I think it falls short, as the movie +is about the man, not about the bomb, or the Manhattan Project, or even the war. +That being said, including some indication of the impacts, such as the fact that +the site for the Trinity test, or even Los Alamos, was not simply an empty +desert but rather inhabited, and appropriated by the government for their use, would not have hurt the story being told. -Although the movie was fantastic, and I left the theatre happy that I had gone to -see it, I found myself somewhat forgetting it and thinking on it very little in +Although the movie was fantastic, and I left the theatre happy that I had gone to +see it, I found myself somewhat forgetting it and thinking on it very little in the week that followed. ## Barbie -As I said earlier, I was initially not intending to see Barbie at the cinema. -My partner and I don't often go to the movies and Barbie seemed like a movie that -could just as easily be enjoyed at home. However, in the two weeks after their -release, there was a great deal of discourse about the two movies, and particularly -Barbie. One thing I noticed about this discourse that was of interest to me was +As I said earlier, I was initially not intending to see Barbie at the cinema. +My partner and I don't often go to the movies and Barbie seemed like a movie that +could just as easily be enjoyed at home. However, in the two weeks after their +release, there was a great deal of discourse about the two movies, and particularly +Barbie. One thing I noticed about this discourse that was of interest to me was how divisive it was, and generally how gendered it was. I had friends commenting -on the movie saying things along the lines of, "It's more a movie for girls" or, -"I didn't really get it", and that's not even mentioning the amount of content -online that pointed to very similar talking points. And I decided that I had to -see the movie so that I could develop my own understanding of it rather than +on the movie saying things along the lines of, "It's more a movie for girls" or, +"I didn't really get it", and that's not even mentioning the amount of content +online that voiced to very similar points. And I decided that I had to +see the movie so that I could develop my own understanding of it rather than relying on second hand information and opinion. -> A side note: I think on of the mistakes being made by people commenting on -> these movies is that they are trying to compare them in some way. Although, -> both being movies they are comparable, their content, style, messaging, etc, -> is, I would argue, incomparable. Any discussion trying to determine which +> A side note: I think on of the mistakes being made by people commenting on +> these movies is that they are trying to compare them in some way. Although, +> both being movies, they are comparable, their content, style, messaging, etc, +> is, I would argue, incomparable. Any discussion trying to determine which > movie was better is going to go nowhere. As such, I will avoid doing so. -I loved Barbie. I found it an enlightening movie. After the -movie was over I described it to my partner as viscerally enjoyable. I found -it, funny, educational, moving, and profound. I will certainly see it again in +I loved Barbie. I found it an enlightening movie. After it +was over I described it to my partner as viscerally enjoyable. I found +it funny, educational, moving, and profound. I will certainly see it again in the future. To me, it felt broadly unlike anything I had seen before, and this resulted in it feeling very refreshing. It articulated a great deal of things that resonated with me in a very consumable, entertaining way. Having said all that, I think it is obvious why so many people, primarily men, leave the -theatre saying thing such as I mentioned before. +theatre saying things like I mentioned before. -I don't want to dwell in this issue, or divide, because I honestly feel that it -is not my - a, very comfortable in his gender, male - place to do so but I do +I don't want to dwell in this issue, or divide, because I honestly feel that it +is not my - a, very comfortable in his gender, male - place to do so but I do want to say something. -Anyone criticising this movie for being too feminist or woke needs to -reevaluate their attitude. It is clear that the movie's success speaks for -itself in terms of how much people enjoyed it and how popular it is and as much -as I'm sure there were some people hate-watching it, they will have been/are -among the minority. I think that if you watch a movie like Barbie, particularly -as a man, and don't like it either because of its attitude towards mes, its -portrayal of men and women, or its vocalisation of women's issues, then again, +Anyone criticising this movie for being too feminist or "woke" needs to +re-evaluate their attitude. It is clear that the success of the movie speaks for +itself in terms of how much people enjoyed it and how popular it is, as much +as I'm sure there were some people hate-watching it, they will be/have been/are +among the minority. I think that if you watch a movie like Barbie, particularly +as a man, and don't like it either because of its attitude towards men, its +portrayal of men and women, or its vocalisation of women's issues, then again, I recommend an attitude adjustment. It's hard for me to articulate exactly how disappointing it is that people take -such a negative view of what is really a fantastically entertaining and -educational movie. As much as other peoples perception of the movie does not -affect mine, it does worry me that there are so many people who perceive it +such a negative view of what is really a fantastically entertaining and +educational movie. As much as other peoples perception of the movie does not +affect mine, it does worry me that there are so many people who perceive it badly. +### Editor's Note + +This was written, and left somewhat incomplete, a while ago, I'm publishing it +now as I still feel the way I did then, but I'm not adding to it. diff --git a/content/posts/my-neovim-setup.md b/content/posts/my-neovim-setup.md index 4796686..fd296df 100644 --- a/content/posts/my-neovim-setup.md +++ b/content/posts/my-neovim-setup.md @@ -1,9 +1,13 @@ --- title: "My Neovim Setup" date: 2023-01-17 -draft: true +lastmod: 2024-04-16 +draft: false --- +> This is being published well after the config was finished, I don't care much +> for blogging, so I never properly finished writing this. + So I have, for the last six or so months, been really trying to learn to use Neovim. I started with Vim, as I imagine many people do, and had a simple single file configuration with a couple of plugins and little else interesting @@ -14,8 +18,8 @@ learn about Neovim, and quickly I wanted to switch. I think I got lucky regarding when I learnt about Neovim. It was soon after they integrated Lua into it and people were starting to really explore plugins for Neovim written in Lua. I quickly came across creators like TJ DeVries, - chris@machine, and ThePrimeagen. By this point it was too late to turn - back. +chris@machine, and ThePrimeagen. By this point it was too late to turn +back. ## A Short Timeline @@ -57,7 +61,7 @@ folke and others are creating around lazy. In this post I'm only going to cover setting up lazy.nvim in the manner than I have it configured. I will go further into depth about my config in future posts. I will omit things like my utility functions, keymaps, and indepth -descriptions of my list of plugins. +descriptions of my list of plugins. ## File Structure @@ -91,7 +95,7 @@ what it contains here. ## `init.lua` Following the design of LazyVim my configuration is in its own module so my -`init.lua` contains only a single line requiring said module. I used to +`init.lua` contains only a single line requiring said module. I used to configure each plugin separately and require them all from this file. ## `lazy-lock.json` @@ -99,33 +103,86 @@ configure each plugin separately and require them all from this file. This is a file that is automatically generated by lazy.nvim, it allows you to specifically version the plugins you have installed, down to specific commits. I don't do this. Some people complain about their configurations breaking all -the time due to plugin updates however I have had this happen only once so the -effort required to version everything just isn't worth it. +the time due to plugin updates however I have had this happen only once so the +effort required to version everything just isn't worth it for me. ## `lua/lazyvim/` This is where the magic happens. It is a self contained module which describes and defines my config for Neovim. -## `lua/lazyvim/config` +## `lua/lazyvim/config` -The `config` directory contains all of my non-plugin related configuration. I -will omit `icons.lua`, and `options.lua` because they are fairly personal. If -you are curious feel free to take a peek at the files -[here](https://gitlab.inkletblot.com/inkletblot/config/-/blob/main/.config/nvim/lua/lazyvim/config/icons.lua) -and -[here](https://gitlab.inkletblot.com/inkletblot/config/-/blob/main/.config/nvim/lua/lazyvim/config/options.lua). +The `config` directory contains all of my non-plugin related configuration. +I treat it like it's its own module with an `init.lua` to pull everything together. +Icons, keymaps (those not handled within plugin definitions, etc), autocommands, +and options are all dealt with here. + +Some great keymaps that I value a lot: +``` +-- move lines up and down +map("n", "", ":m .-2==", opts) +map("n", "", ":m .+1==", opts) + +-- center after up and down movements +map("n", "", "zz", opts) +map("n", "", "zz", opts) + +-- move through quickfix list +map("n", "", ":cnext", opts) +map("n", "", ":cprev", opts) +``` +Also, these autocommands: + +``` +-- highlight on yank, thanks stack overflow +vim.api.nvim_create_autocmd('TextYankPost', { + group = vim.api.nvim_create_augroup('highlight_yank', {}), + desc = 'Hightlight selection on yank', + pattern = '*', + callback = function() + vim.highlight.on_yank { higroup = 'IncSearch', timeout = 500 } + end, +}) + +-- go to last loc when opening a buffer +vim.api.nvim_create_autocmd("BufReadPost", { + callback = function() + local mark = vim.api.nvim_buf_get_mark(0, '"') + local lcount = vim.api.nvim_buf_line_count(0) + if mark[1] > 0 and mark[1] <= lcount then + pcall(vim.api.nvim_win_set_cursor, 0, mark) + end + end, +}) +``` ## `lua/lazyvim/utils` The utils folder contains some miscellaneous utilities such as a function to get a projects root for Language Server Protocols (LSPs) or a workspace -switcher function for Neorg (a org mode like plugin for nvim). I won't detail -the specifics here. +switcher function for Neorg (a org mode like plugin for nvim). + +Many of these utils have been pilfered from other Neovim users, thanks everyone. +Other peoples configs are always a good place to start learning, especially in +the context of Neovim. I hope to greatly expand the content of this folder in +the future. ## `lua/lazyvim/init.lua` - +This is the primary initialisation for my config, following the `lazy.nvim` +spec, it ensures that `lazy` is installed and then runs the basic initialisation +for `lazy`, my config, colorscheme, etc. ## `lua/lazyvim/plugins` +This is where all of the specifications for the plugins I use live. I change +these a little from time to time, but now everything is set up, I try to limit +changes in general. I strongly recommend looking through if you're interested, +[here's a link](https://gitlab.inkletblot.com/inkletblot/config/-/tree/main/.config/nvim/lua/lazyvim/plugins?ref_type=heads) + +## Notes + +For now, this is where I'm going to leave it at, I might add more in the future +though. For the interested individual I think that the best way to learn is to +read the code, so I suggest looking at my config on gitlab.