summaryrefslogtreecommitdiff
path: root/lua/tjk
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tjk')
-rw-r--r--lua/tjk/options.lua5
-rw-r--r--lua/tjk/plugins/colorizer.lua1
-rw-r--r--lua/tjk/plugins/indentblankline.lua8
-rw-r--r--lua/tjk/plugins/snacks.lua15
-rw-r--r--lua/tjk/plugins/treesitter.lua2
5 files changed, 20 insertions, 11 deletions
diff --git a/lua/tjk/options.lua b/lua/tjk/options.lua
index 945536a..210c45f 100644
--- a/lua/tjk/options.lua
+++ b/lua/tjk/options.lua
@@ -9,6 +9,7 @@ opt.termguicolors = true -- truecolor in terminal emulator, will be disa
opt.wrap = false -- disable word wrapping
opt.cursorline = true -- highlight current line
opt.title = true -- set window title of the terminal emulator to current nvim buffer
+vim.cmd.aunmenu "PopUp" -- disable right click menu
-- line numbers
opt.number = true -- enable line numbers
@@ -16,7 +17,7 @@ opt.relativenumber = true -- enable relative line numbers
-- show whitespace characters
opt.list = true -- show whitespace characters defined in listchars
-opt.listchars = "tab:▏ ,space:·" -- highlight tabs and spaces
+opt.listchars = "tab:│ ,space:·" -- highlight tabs and spaces
-- tabbing
opt.tabstop = 4 -- set tabwidth to 4 instead of 8
@@ -28,7 +29,7 @@ opt.smartcase = true -- ...unless the search term is capital
-- experimental
opt.smartindent = true
---opt.wildmode = "longest:list:full" -- Better auto-complete
+opt.wildmode = "list:longest,list:full" -- Better auto-complete
-- dont continue comments on to new lines (:help fo-table)
api.nvim_create_autocmd("FileType", { pattern = "*", callback = function()
diff --git a/lua/tjk/plugins/colorizer.lua b/lua/tjk/plugins/colorizer.lua
index 964b6f4..1bdb94d 100644
--- a/lua/tjk/plugins/colorizer.lua
+++ b/lua/tjk/plugins/colorizer.lua
@@ -3,6 +3,7 @@ return {
enabled = vim.opt.termguicolors._value,
opts = {
"css",
+ "scss",
"sass",
"javascript",
"html",
diff --git a/lua/tjk/plugins/indentblankline.lua b/lua/tjk/plugins/indentblankline.lua
deleted file mode 100644
index 826f1ae..0000000
--- a/lua/tjk/plugins/indentblankline.lua
+++ /dev/null
@@ -1,8 +0,0 @@
-return {
- "lukas-reineke/indent-blankline.nvim",
- enabled = vim.opt.termguicolors._value,
- main = "ibl",
- opts = {
- scope = { enabled = false };
- }
-}
diff --git a/lua/tjk/plugins/snacks.lua b/lua/tjk/plugins/snacks.lua
new file mode 100644
index 0000000..434cd68
--- /dev/null
+++ b/lua/tjk/plugins/snacks.lua
@@ -0,0 +1,15 @@
+return {
+ "folke/snacks.nvim",
+ priority = 1000,
+ lazy = false,
+ opts = {
+ indent = {
+ enabled = true,
+ only_scope = true,
+ char = "▏", -- TODO doesn't work
+ animate = { enabled = false },
+ scope = { enabled = false },
+ },
+ quickfile = { enabled = true },
+ },
+}
diff --git a/lua/tjk/plugins/treesitter.lua b/lua/tjk/plugins/treesitter.lua
index 835e1af..54a042f 100644
--- a/lua/tjk/plugins/treesitter.lua
+++ b/lua/tjk/plugins/treesitter.lua
@@ -22,7 +22,7 @@ return {
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "comment",
"javascript", "html", "css", "scss", "python", "php" },
auto_install = true, -- install available parsers when entering new buffers
- highlight = { enable = true, disable = { "yaml" } },
+ highlight = { enable = true, disable = { "yaml", "dockerfile" } },
indent = { enable = true, disable = { "yaml" } },
--playground = { enable = true }, -- treesitter debug
})