autoformatting javascript code, should I be use deno instead of typescript-language-server-bin ?
Generally deno is not intended to run on node projects and vice versa. Many people are using null-ls
, I personally would recommend formatter.nvim if you just want formatting (or using formatprg)
color schemes incapable of showing my tabs nicely, dracula and tab list char not legible · Issue #14 · tanvirtin/monokai.nvim · GitHub fails for me
Why not just override the particular highlight group applied to tab list char?
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
require('packer').startup {
{
'wbthomason/packer.nvim',
'joshdick/onedark.vim' -- Theme inspired by Atom
},
config = {
package_root = package_root,
compile_path = install_path .. '/plugin/packer_compiled.lua',
},
}
end
_G.load_config = function()
vim.o.termguicolors = true
vim.cmd [[ autocmd ColorScheme * highlight Whitespace ctermfg=red guifg=#FF0000 ]]
vim.cmd [[ colorscheme onedark ]]
vim.cmd [[ set list ]]
vim.cmd [[ set listchars=tab:>- ]]
end
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system { 'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path }
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once lua load_config()]]
else
load_plugins()
require('packer').sync()
_G.load_config()
end
I don’t see the benefit of nvim-treesitter, esp since it does things on load
I’m not sure what you mean. nvim-treesitter
gives you access to the syntax tree. This lets you do a ton of cool things like more intelligent code navigation/text motions (you can yank functions/classes), incremental selection up the AST, more intelligent code highlighting, within-class rename, selective spellchecking in comments, etc.
I’m assuming telescope uses rg/fd but I’m not sure or how to check
It should “just work” if both are on your path
Ideally want a way of quickly looking through a file’s git history, whole file, not just diffs
You can use 0Gclog
from fugitive, I think Neogit also has an equivalent.