feat(neovim): switch to nvim-ts-autotag
This commit is contained in:
parent
7fbaa7b875
commit
1209436201
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
neovim-unwrapped = pkgs.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
|
neovim-unwrapped = pkgs.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
|
||||||
version = "2021-03-04";
|
version = "2021-03-12";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "neovim";
|
owner = "neovim";
|
||||||
repo = "neovim";
|
repo = "neovim";
|
||||||
rev = "df4440024bb1f1ce368f5e5844d8af925e264b63";
|
rev = "dc8273f2f1e615cac5cee86709ca4ae6dbd70edf";
|
||||||
sha256 = "12mm9js8pry2hzv0znznqwkn1favzxclygwr24lhzdwfc7wd7p92";
|
sha256 = "0xqvgdp7qvzd8jfy7s6kkr6n6bs7khg8n65vh7r1pp7xqawx4aiz";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = oldAttrs.nativeBuildInputs
|
nativeBuildInputs = oldAttrs.nativeBuildInputs
|
||||||
++ [ pkgs.utf8proc pkgs.tree-sitter ];
|
++ [ pkgs.utf8proc pkgs.tree-sitter ];
|
||||||
|
@ -15,6 +15,18 @@ let
|
||||||
|
|
||||||
buildVimPluginFrom2Nix = pkgs.vimUtils.buildVimPluginFrom2Nix;
|
buildVimPluginFrom2Nix = pkgs.vimUtils.buildVimPluginFrom2Nix;
|
||||||
|
|
||||||
|
# TODO doesn't seem to work in tsx atm
|
||||||
|
nvim-ts-autotag = buildVimPluginFrom2Nix {
|
||||||
|
pname = "nvim-ts-autotag";
|
||||||
|
version = "2021-03-11";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "windwp";
|
||||||
|
repo = "nvim-ts-autotag";
|
||||||
|
rev = "50410bf1d3f7519ac433b4027486a9fe3273049b";
|
||||||
|
sha256 = "0i7q31fn8llrxcbb5y79wanb03cj7fv02d0n8f7fa4y3cydxiiyl";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
vimLua = lua: ''
|
vimLua = lua: ''
|
||||||
lua << EOF
|
lua << EOF
|
||||||
${lua}
|
${lua}
|
||||||
|
@ -48,7 +60,6 @@ in {
|
||||||
vim-gitgutter
|
vim-gitgutter
|
||||||
vim-fugitive
|
vim-fugitive
|
||||||
vim-test
|
vim-test
|
||||||
vim-closetag
|
|
||||||
auto-pairs
|
auto-pairs
|
||||||
camelcasemotion
|
camelcasemotion
|
||||||
wmgraphviz-vim
|
wmgraphviz-vim
|
||||||
|
@ -58,6 +69,7 @@ in {
|
||||||
nvim-treesitter-context
|
nvim-treesitter-context
|
||||||
nvim-treesitter-refactor
|
nvim-treesitter-refactor
|
||||||
nvim-treesitter-textobjects
|
nvim-treesitter-textobjects
|
||||||
|
nvim-ts-autotag
|
||||||
|
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
# nvim-dap
|
# nvim-dap
|
||||||
|
|
|
@ -10,6 +10,9 @@ require'nvim-treesitter.configs'.setup {
|
||||||
-- TODO seems to be broken atm
|
-- TODO seems to be broken atm
|
||||||
disable = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
|
disable = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
|
||||||
},
|
},
|
||||||
|
autotag = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
refactor = {
|
refactor = {
|
||||||
highlight_definitions = { enable = true },
|
highlight_definitions = { enable = true },
|
||||||
highlight_current_scope = { enable = true },
|
highlight_current_scope = { enable = true },
|
||||||
|
|
Loading…
Reference in a new issue