Compare commits

...

2 Commits

Author SHA1 Message Date
Tyrel Souza
ade52e6936 stahp 2023-01-02 15:37:16 -05:00
Tyrel Souza
cfa2de4792 treesitter almost fixed 2023-01-02 15:37:07 -05:00
3 changed files with 36 additions and 19 deletions

View File

@ -6,24 +6,25 @@ return function(use)
-- Prevents reinstall of treesitter plugins every boot
vim.opt.runtimepath:append(parser_install_dir)
-- Treesitter is managed by the package config, we just manage configs/deps here
-- use({ "nvim-treesitter/nvim-treesitter-refactor" })
-- use({ "RRethy/nvim-treesitter-textsubjects" })
-- require("nvim-treesitter.configs").setup({
-- highlight = { enable = true, disable = { "lua" } },
-- indent = { enable = true },
-- refactor = { highlight_definitions = { enable = true } },
-- incremental_selection = { enable = true },
-- matchup = { enable = true },
-- textsubjects = {
-- enable = true,
-- prev_selection = ",",
-- keymaps = {
-- ["."] = "textsubjects-smart",
-- },
-- },
-- parser_install_dir = parser_install_dir,
-- })
-- Treesitter is managed by the package config, we just manage configs/deps here
use({ "nvim-treesitter/nvim-treesitter-refactor" })
use({ "RRethy/nvim-treesitter-textsubjects" })
require("nvim-treesitter.configs").setup({
-- highlight = { enable = true, disable = { "lua" } },
-- indent = { enable = true },
-- refactor = { highlight_definitions = { enable = true } },
-- incremental_selection = { enable = true },
-- matchup = { enable = true },
-- textsubjects = {
-- enable = true,
-- prev_selection = ",",
-- keymaps = {
-- ["."] = "textsubjects-smart",
-- },
-- },
parser_install_dir = parser_install_dir,
})
use({'atelierbram/vim-colors_atelier-schemes'})
use({'robertmeta/nofrils'})

View File

@ -40,7 +40,7 @@ vim.opt.undofile = true
vim.opt.number = true
vim.opt.relativenumber = true
vim.g.colors = "Atelier_SulphurpoolDark"
vim.cmd 'colorscheme Atelier_SulphurpoolDark'
vim.g.floaterm_keymap_toggle = '<F9>'
vim.g.floaterm_width = 0.9
vim.g.floaterm_height = 0.9

View File

@ -0,0 +1,16 @@
local utils = { }
local scopes = {o = vim.o, b = vim.bo, w = vim.wo}
function utils.opt(scope, key, value)
scopes[scope][key] = value
if scope ~= 'o' then scopes['o'][key] = value end
end
function utils.map(mode, lhs, rhs, opts)
local options = {noremap = true}
if opts then options = vim.tbl_extend('force', options, opts) end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
return utils