mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-28 19:22:24 +00:00
Compare commits
No commits in common. "a46321202347a2e19da30a66f1d40e2ea2a83c78" and "02fc29c48212140c6ef7066139f700f1bc41d9c3" have entirely different histories.
a463212023
...
02fc29c482
@ -144,7 +144,6 @@
|
|||||||
(import ./overlays/neovim-plugins.nix inputs)
|
(import ./overlays/neovim-plugins.nix inputs)
|
||||||
(import ./overlays/calibre-web.nix)
|
(import ./overlays/calibre-web.nix)
|
||||||
(import ./overlays/disko.nix inputs)
|
(import ./overlays/disko.nix inputs)
|
||||||
(import ./overlays/tree-sitter-bash.nix)
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# System types to support.
|
# System types to support.
|
||||||
|
@ -29,9 +29,6 @@
|
|||||||
lua = ''
|
lua = ''
|
||||||
${builtins.readFile ./lsp.lua}
|
${builtins.readFile ./lsp.lua}
|
||||||
|
|
||||||
-- Prevent infinite log size (change this when debugging)
|
|
||||||
vim.lsp.set_log_level("off")
|
|
||||||
|
|
||||||
require("null-ls").setup({
|
require("null-ls").setup({
|
||||||
sources = {
|
sources = {
|
||||||
require("null-ls").builtins.formatting.stylua.with({ command = "${pkgs.stylua}/bin/stylua" }),
|
require("null-ls").builtins.formatting.stylua.with({ command = "${pkgs.stylua}/bin/stylua" }),
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
setup.Comment = { };
|
setup.Comment = { };
|
||||||
setup.colorizer = { };
|
setup.colorizer = { };
|
||||||
setup.glow = { };
|
|
||||||
|
|
||||||
vim.o = {
|
vim.o = {
|
||||||
termguicolors = true; # Set to truecolor
|
termguicolors = true; # Set to truecolor
|
||||||
|
@ -3,28 +3,19 @@
|
|||||||
plugins = [
|
plugins = [
|
||||||
(pkgs.vimPlugins.nvim-treesitter.withPlugins (_plugins:
|
(pkgs.vimPlugins.nvim-treesitter.withPlugins (_plugins:
|
||||||
with pkgs.tree-sitter-grammars; [
|
with pkgs.tree-sitter-grammars; [
|
||||||
tree-sitter-bash
|
|
||||||
tree-sitter-fish
|
|
||||||
tree-sitter-hcl
|
tree-sitter-hcl
|
||||||
tree-sitter-json
|
|
||||||
tree-sitter-lua
|
|
||||||
tree-sitter-markdown
|
|
||||||
tree-sitter-markdown-inline
|
|
||||||
tree-sitter-nix
|
|
||||||
tree-sitter-python
|
tree-sitter-python
|
||||||
|
tree-sitter-lua
|
||||||
|
tree-sitter-nix
|
||||||
|
tree-sitter-fish
|
||||||
tree-sitter-toml
|
tree-sitter-toml
|
||||||
tree-sitter-yaml
|
tree-sitter-yaml
|
||||||
|
tree-sitter-json
|
||||||
]))
|
]))
|
||||||
pkgs.vimPlugins.vim-matchup # Better % jumping in languages
|
pkgs.vimPlugins.vim-matchup # Better % jumping in languages
|
||||||
pkgs.vimPlugins.playground # Tree-sitter experimenting
|
|
||||||
pkgs.vimPlugins.nginx-vim
|
pkgs.vimPlugins.nginx-vim
|
||||||
pkgs.vimPlugins.vim-helm
|
pkgs.vimPlugins.vim-helm
|
||||||
pkgs.vimPlugins.vim-puppet
|
pkgs.vimPlugins.vim-puppet
|
||||||
(pkgs.vimUtils.buildVimPluginFrom2Nix {
|
|
||||||
pname = "nmasur";
|
|
||||||
version = "0.1";
|
|
||||||
src = ../plugin;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
setup."nvim-treesitter.configs" = {
|
setup."nvim-treesitter.configs" = {
|
||||||
|
@ -28,8 +28,6 @@
|
|||||||
|
|
||||||
{ pkgs, colors, ... }:
|
{ pkgs, colors, ... }:
|
||||||
|
|
||||||
# Comes from nix2vim overlay:
|
|
||||||
# https://github.com/gytis-ivaskevicius/nix2vim/blob/master/lib/neovim-builder.nix
|
|
||||||
pkgs.neovimBuilder {
|
pkgs.neovimBuilder {
|
||||||
package = pkgs.neovim-unwrapped;
|
package = pkgs.neovim-unwrapped;
|
||||||
inherit colors;
|
inherit colors;
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
expression: (apply_expression
|
|
||||||
function: (apply_expression
|
|
||||||
function: (select_expression
|
|
||||||
attrpath: (attrpath) @writeshell (#match? @writeshell "^writeShell.*$")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(indented_string_expression) @bash
|
|
||||||
)
|
|
@ -1,16 +0,0 @@
|
|||||||
# Fix: bash highlighting doesn't work as of this commit:
|
|
||||||
# https://github.com/NixOS/nixpkgs/commit/49cce41b7c5f6b88570a482355d9655ca19c1029
|
|
||||||
|
|
||||||
_final: prev: {
|
|
||||||
tree-sitter-grammars = prev.tree-sitter-grammars // {
|
|
||||||
tree-sitter-bash = prev.tree-sitter-grammars.tree-sitter-bash.overrideAttrs
|
|
||||||
(old: {
|
|
||||||
src = prev.fetchFromGitHub {
|
|
||||||
owner = "tree-sitter";
|
|
||||||
repo = "tree-sitter-bash";
|
|
||||||
rev = "493646764e7ad61ce63ce3b8c59ebeb37f71b841";
|
|
||||||
sha256 = "sha256-gl5F3IeZa2VqyH/qFj8ey2pRbGq4X8DL5wiyvRrH56U=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user