R
R
Rafael Agishev2022-02-03 06:49:13
vim
Rafael Agishev, 2022-02-03 06:49:13

No automatic launch of config in neovim?

Hello, I recently downloaded neovim to my computer (windows 10) and this error occurs - the init.vim configuration is not set automatically when opening neovim . Those. in order for me to run my config on the command line, I need to write so % , and by default it is turned off. The config is on the path , and the neovimC:\tools\neovim\Neovim\.config\nvim root folder is on the path . I tried to reinstall the program 2 times (through chocolatey) and completely deleted the root folders associated with vim and vimplug, but it did not help. What is the problem? I will also attach the config.C:\tools\neovim

" enable mouse
set encoding=utf-8
set number
set noswapfile
set scrolloff=7

set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set fileformat=unix
filetype indent on      " load filetype-specific indent files

inoremap jk <esc>


call plug#begin('~/.vim/plugged')

Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'saadparwaiz1/cmp_luasnip'
Plug 'L3MON4D3/LuaSnip'
Plug 'preservim/nerdtree'

" color schemas
Plug 'morhetz/gruvbox'  " colorscheme gruvbox
Plug 'mhartington/oceanic-next'  " colorscheme OceanicNext
Plug 'kaicataldo/material.vim', { 'branch': 'main' }
Plug 'ayu-theme/ayu-vim'

" For JS/JSX
Plug 'yuezk/vim-js'
Plug 'maxmellon/vim-jsx-pretty'

call plug#end()


colorscheme gruvbox
" colorscheme OceanicNext
"let g:material_terminal_italics = 1
" variants: default, palenight, ocean, lighter, darker, default-community,
"           palenight-community, ocean-community, lighter-community,
"           darker-community
"let g:material_theme_style = 'darker'
"colorscheme material
if (has('termguicolors'))
  set termguicolors
endif

" variants: mirage, dark, dark
"let ayucolor="mirage"
"colorscheme ayu

nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-z> :NERDTree<CR>
nnoremap <C-x> :NERDTreeToggle<CR>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Василий Дёмин, 2022-02-03
@kematin

init.vim нужно положить в %appdata%/Local/nvim/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question