Compare commits
2 Commits
4c18fd8c8e
...
572d0bfe9e
| Author | SHA1 | Date | |
|---|---|---|---|
|
572d0bfe9e
|
|||
|
385ca27f8c
|
@ -1836,9 +1836,7 @@ in {
|
|||||||
# _treesitter-context # Ugly
|
# _treesitter-context # Ugly
|
||||||
# _treesitter-refactor # Ugly
|
# _treesitter-refactor # Ugly
|
||||||
];
|
];
|
||||||
lazy = true;
|
lazy = false;
|
||||||
cmd = ["TSModuleInfo"];
|
|
||||||
event = ["BufReadPost" "BufNewFile"];
|
|
||||||
init = ''
|
init = ''
|
||||||
function()
|
function()
|
||||||
-- Fix treesitter grammars/parsers on nix
|
-- Fix treesitter grammars/parsers on nix
|
||||||
@ -1848,7 +1846,10 @@ in {
|
|||||||
'';
|
'';
|
||||||
config = ''
|
config = ''
|
||||||
function(_, opts)
|
function(_, opts)
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
-- require("nvim-treesitter.configs").setup(opts)
|
||||||
|
require("nvim-treesitter").setup(opts)
|
||||||
|
|
||||||
|
-- TODO: Why is GLSL filetype in the treesitter setup???
|
||||||
|
|
||||||
-- GLSL filetypes
|
-- GLSL filetypes
|
||||||
vim.filetype.add {
|
vim.filetype.add {
|
||||||
@ -1866,7 +1867,8 @@ in {
|
|||||||
opts = {
|
opts = {
|
||||||
auto_install = false;
|
auto_install = false;
|
||||||
ensure_installed = [];
|
ensure_installed = [];
|
||||||
parser_install_dir = "${treesitter-parsers}";
|
# parser_install_dir = "${treesitter-parsers}";
|
||||||
|
install_dir = "${treesitter-parsers}";
|
||||||
|
|
||||||
indent = {
|
indent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@ -71,7 +71,7 @@ in {
|
|||||||
input = {
|
input = {
|
||||||
focus-follows-mouse = {
|
focus-follows-mouse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# max-scroll-amount = "0%"; # Skip partial windows that would scroll the viewport on focus
|
max-scroll-amount = "0%"; # Skip partial windows that would scroll the viewport on focus
|
||||||
};
|
};
|
||||||
|
|
||||||
keyboard = {
|
keyboard = {
|
||||||
|
|||||||
Reference in New Issue
Block a user