Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dotfiles
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tim van Deurzen
dotfiles
Commits
6944de80
Commit
6944de80
authored
Oct 05, 2021
by
Tim van Deurzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doom and neovim configs.
parent
e1fc3d3a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
5 deletions
+124
-5
doom-emacs/config.el
doom-emacs/config.el
+8
-0
doom-emacs/init.el
doom-emacs/init.el
+1
-1
doom-emacs/packages.el
doom-emacs/packages.el
+2
-0
neovim/lua/keybindings/which_key.lua
neovim/lua/keybindings/which_key.lua
+4
-2
neovim/lua/lsp/init.lua
neovim/lua/lsp/init.lua
+100
-2
neovim/lua/plugins/init.lua
neovim/lua/plugins/init.lua
+9
-0
No files found.
doom-emacs/config.el
View file @
6944de80
...
...
@@ -52,3 +52,11 @@
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
(
use-package!
evil-colemak-basics
:after
evil
:hook
(
after-init
.
global-evil-colemak-basics-mode
)
:config
(
setq
evil-colemak-basics-rotate-t-f-j
t
))
(
after!
evil
(
global-evil-colemak-basics-mode
t
))
doom-emacs/init.el
View file @
6944de80
...
...
@@ -69,7 +69,7 @@
dired
; making dired pretty [functional]
electric
; smarter, keyword-based electric-indent
;;ibuffer ; interactive buffer management
undo
; persistent, smarter undo for your inevitable mistakes
(
undo
+tree
)
; persistent, smarter undo for your inevitable mistakes
vc
; version-control and Emacs, sitting in a tree
:term
...
...
doom-emacs/packages.el
View file @
6944de80
...
...
@@ -9,6 +9,8 @@
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;(package! some-package)
(
package!
evil-colemak-basics
)
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/raxod502/straight.el#the-recipe-format
...
...
neovim/lua/keybindings/which_key.lua
View file @
6944de80
...
...
@@ -21,8 +21,10 @@ local keymap = {
l
=
{
name
=
'+lsp'
,
a
=
{
'<Cmd>Lspsaga code_action<CR>'
,
'code action'
},
r
=
{
'<Cmd>Lspsaga rename<CR>'
,
'rename'
},
-- a = {'<Cmd>Lspsaga code_action<CR>', 'code action'},
a
=
{
'<Cmd>lua vim.lsp.buf.code_action()<CR>'
,
'code action'
},
--r = {'<Cmd>Lspsaga rename<CR>', 'rename'},
r
=
{
'<Cmd>lua vim.lsp.buf.rename()<CR>'
,
'rename'
},
s
=
{
'<Cmd>Lspsaga lsp_finder<CR>'
,
'find'
},
p
=
{
'<Cmd>Lspsaga preview_definition<CR>'
,
'preview definition'
},
f
=
{
'<Cmd>lua vim.lsp.buf.formatting()<CR>'
,
'format'
},
...
...
neovim/lua/lsp/init.lua
View file @
6944de80
...
...
@@ -15,10 +15,108 @@ lsp_config.gopls.setup{
},
}
lsp_config
.
rust_analyzer
.
setup
{
capabilities
=
capabilities
,
-- lsp_config.rust_analyzer.setup{
-- capabilities = capabilities,
-- settings = {
-- ["rust-analyzer"] = {
-- assist = {
-- importGranularity = "module",
-- importPrefix = "by_self",
-- },
-- cargo = {
-- loadOutDirsFromCheck = true
-- },
-- procMacro = {
-- enable = true
-- },
-- }
-- }
-- }
local
opts
=
{
tools
=
{
-- rust-tools options
-- Automatically set inlay hints (type hints)
autoSetHints
=
true
,
-- Whether to show hover actions inside the hover window
-- This overrides the default hover handler
hover_with_actions
=
true
,
runnables
=
{
-- whether to use telescope for selection menu or not
use_telescope
=
true
-- rest of the opts are forwarded to telescope
},
debuggables
=
{
-- whether to use telescope for selection menu or not
use_telescope
=
true
-- rest of the opts are forwarded to telescope
},
-- These apply to the default RustSetInlayHints command
inlay_hints
=
{
-- Only show inlay hints for the current line
only_current_line
=
false
,
-- Event which triggers a refersh of the inlay hints.
-- You can make this "CursorMoved" or "CursorMoved,CursorMovedI" but
-- not that this may cause higher CPU usage.
-- This option is only respected when only_current_line and
-- autoSetHints both are true.
only_current_line_autocmd
=
"CursorHold"
,
-- wheter to show parameter hints with the inlay hints or not
show_parameter_hints
=
true
,
-- prefix for parameter hints
parameter_hints_prefix
=
"<- "
,
-- prefix for all the other hints (type, chaining)
other_hints_prefix
=
"=> "
,
-- whether to align to the length of the longest line in the file
max_len_align
=
false
,
-- padding from the left if max_len_align is true
max_len_align_padding
=
1
,
-- whether to align to the extreme right or not
right_align
=
false
,
-- padding from the right if right_align is true
right_align_padding
=
7
,
-- The color of the hints
highlight
=
"Comment"
,
},
hover_actions
=
{
-- the border that is used for the hover window
-- see vim.api.nvim_open_win()
border
=
{
{
"╭"
,
"FloatBorder"
},
{
"─"
,
"FloatBorder"
},
{
"╮"
,
"FloatBorder"
},
{
"│"
,
"FloatBorder"
},
{
"╯"
,
"FloatBorder"
},
{
"─"
,
"FloatBorder"
},
{
"╰"
,
"FloatBorder"
},
{
"│"
,
"FloatBorder"
}
},
-- whether the hover action window gets automatically focused
auto_focus
=
false
}
},
-- all the opts to send to nvim-lspconfig
-- these override the defaults set by rust-tools.nvim
-- see https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#rust_analyzer
server
=
{}
-- rust-analyer options
}
require
(
'rust-tools'
).
setup
(
opts
)
lsp_config
.
angularls
.
setup
{
capabilities
=
capabilities
,
}
...
...
neovim/lua/plugins/init.lua
View file @
6944de80
...
...
@@ -226,6 +226,15 @@ return require('packer').startup(function()
end
}
use
{
'simrat39/rust-tools.nvim'
,
requires
=
{
'nvim-lua/popup.nvim'
}
}
use
{
'lewis6991/gitsigns.nvim'
,
requires
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment