Compare commits
2 commits
1b881c1559
...
5e0ff0dbc5
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e0ff0dbc5 | |||
| bdc337b3cb |
2 changed files with 15 additions and 3 deletions
14
files/nvim.lua
Normal file
14
files/nvim.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
-- example of a project specific nvim configuration file using :exrc
|
||||||
|
|
||||||
|
local conform = require 'conform';
|
||||||
|
|
||||||
|
conform.setup {
|
||||||
|
formatters_by_ft = {
|
||||||
|
python = { 'isort', 'black' },
|
||||||
|
javascript = { 'prettier', },
|
||||||
|
},
|
||||||
|
|
||||||
|
format_on_save = {
|
||||||
|
lsp_format = 'never',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
session_name=${PWD##*/}
|
session_name=${PWD##*/}
|
||||||
project_directory="$HOME/development/$session_name"
|
project_directory="$HOME/development/$session_name"
|
||||||
enable_formatting="false"
|
|
||||||
|
|
||||||
tmux has-session -t $session_name
|
tmux has-session -t $session_name
|
||||||
|
|
||||||
|
|
@ -11,8 +10,7 @@ then
|
||||||
tmux new-session \
|
tmux new-session \
|
||||||
-c $project_directory \
|
-c $project_directory \
|
||||||
-ds $session_name \
|
-ds $session_name \
|
||||||
-e "project_dir=$project_directory" \
|
-e "project_dir=$project_directory"
|
||||||
-e "enable_formatting=$enable_formatting"
|
|
||||||
|
|
||||||
# FIRST WINDOW
|
# FIRST WINDOW
|
||||||
tmux send-keys -t $session_name:0 'source ./env/bin/activate' C-m
|
tmux send-keys -t $session_name:0 'source ./env/bin/activate' C-m
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue