Disable lsp-snippet in python-mode
This commit is contained in:
parent
14ef54096e
commit
22e6d1283d
@ -84,8 +84,13 @@
|
||||
(use-package python
|
||||
:init
|
||||
(setq python-shell-interpreter "python3")
|
||||
(defun x-lsp-disable-snippet ()
|
||||
"Set `lsp-enable-snippet' to nil in local buffer only."
|
||||
(make-local-variable 'lsp-enable-snippet)
|
||||
(setq lsp-enable-snippet nil))
|
||||
:hook
|
||||
(python-mode . lsp))
|
||||
(python-mode . lsp)
|
||||
(python-mode . x-lsp-disable-snippet))
|
||||
|
||||
(use-package py-autopep8
|
||||
;; Note that this package require autopep8 to be installed.
|
||||
|
Reference in New Issue
Block a user