Skip to content

Commit

Permalink
nvim, replaced vim-exilir with nvim-treesitter
Browse files Browse the repository at this point in the history
it because vim-elixir doesnt' have support for heex,
read more about it here

elixir-editors/vim-elixir#562
  • Loading branch information
juanpabloaj committed Jul 14, 2023
1 parent 532cc42 commit 627d9bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ Plug 'stevearc/oil.nvim'
"Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'nvim-tree/nvim-tree.lua'

Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}

" elixir
Plug 'elixir-editors/vim-elixir'
"Plug 'elixir-editors/vim-elixir'
Plug 'mhinz/vim-mix-format'
"Plug 'slashmili/alchemist.vim'

Expand Down
9 changes: 9 additions & 0 deletions .config/nvim/lua/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ vim.keymap.set("n", "-", require("oil").open, { desc = "Open parent directory" }
require("nvim-tree").setup()

vim.keymap.set("n", "<leader>n", ':NvimTreeToggle<cr>', { desc = "open nvim tree" })

require'nvim-treesitter.configs'.setup{
-- to install another one manually :TSInstall supported_language
ensure_installed = { "vim", "lua", "elixir", "heex" },

highlight={
enable=true
},
}

0 comments on commit 627d9bb

Please sign in to comment.