Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UserConfig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
UserConfig
Commits
0e15cd5f
Commit
0e15cd5f
authored
3 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
NVIM
parent
60b4b06b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vim/nvim.vim
+8
-4
8 additions, 4 deletions
vim/nvim.vim
with
8 additions
and
4 deletions
vim/nvim.vim
+
8
−
4
View file @
0e15cd5f
...
...
@@ -11,17 +11,20 @@ function! ExecHere()
let
g:toExec
=
""
endfunction
packadd
plug
call
plug#begin
(
"~/.config/nvim/plugged"
)
Plug
'glacambre/firenvim'
,
{
'do'
:
{
_
->
firenvim#install
(
0
)
}
}
Plug
'neovim/nvim-lspconfig'
call
plug#end
()
" Exceptions for Firenvim
if
exists
(
'g:started_by_firenvim'
)
set
laststatus
=
0
endif
" Language server
lua
<<
AMEN
require
'lspconfig'
.
pylsp
.
setup
{
log_file
=
"/tmp/lsplog"
,
log_level
=
vim
.
lsp
.
protocol
.
MessageType
.
Log
,
--
message_level
=
vim
.
lsp
.
protocol
.
MessageType
.
Error
,
settings
=
{
...
...
@@ -58,7 +61,8 @@ nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR>
nnoremap
<
silent
>
gR
<
cmd
>
lua
vim
.
lsp
.
buf
.
rename
()<
CR
>
nnoremap
<
silent
>
g0
<
cmd
>
lua
vim
.
lsp
.
buf
.
document_symbol
()<
CR
>
nnoremap
<
silent
>
gW
<
cmd
>
lua
vim
.
lsp
.
buf
.
workspace_symbol
()<
CR
>
nnoremap
<
silent
>
<
Bslash
>
d
<
cmd
>
lua
vim
.
lsp
.
diagnostic
.
show_line_diagnostics
()<
CR
>
nnoremap
<
silent
>
<
Bslash
>
d
<
cmd
>
lua
vim
.
diagnostic
.
open_float
()<
CR
>
function
!
s:termclose
()
abort
q
...
...
@@ -67,7 +71,7 @@ endfunction
autocmd TermClose *
:
$SHELL
,
*
:
\$SHELL
call
s:termclose
()
tnoremap
<
silent
>
<
C
-[><
C
-[>
<
C
-
\
><
C
-
n
>
autocmd TermOpen *
setlocal
nonumber
norelativenumber
autocmd TermOpen *
setlocal
nonumber
norelativenumber
nospell
"au TermOpen * au <buffer> BufEnter,WinEnter redraw!
"augroup terminal_settings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment