update
This commit is contained in:
parent
5fa2d42d0d
commit
09c625cb61
@ -5,7 +5,7 @@ require("some.lazy")
|
|||||||
|
|
||||||
require("some.lsp.lsp")
|
require("some.lsp.lsp")
|
||||||
require("some.lsp.linter")
|
require("some.lsp.linter")
|
||||||
require("some.lsp.mason")
|
-- require("some.lsp.mason")
|
||||||
|
|
||||||
require("some.theme")
|
require("some.theme")
|
||||||
|
|
||||||
|
@ -5,13 +5,13 @@ require('lint').linters.your_linter_name = {
|
|||||||
ignore_exitcode = true, -- set this to true if the linter exits with a code != 0 and that's considered normal.
|
ignore_exitcode = true, -- set this to true if the linter exits with a code != 0 and that's considered normal.
|
||||||
}
|
}
|
||||||
|
|
||||||
lint.linters_by_ft = {
|
-- lint.linters_by_ft = {
|
||||||
python = {
|
-- python = {
|
||||||
"pylint",
|
-- "pylint",
|
||||||
"flake8",
|
-- "flake8",
|
||||||
"ruff",
|
-- "ruff",
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||||
group = lint_augroup,
|
group = lint_augroup,
|
||||||
|
@ -40,7 +40,9 @@ cmp.setup({
|
|||||||
sources = {
|
sources = {
|
||||||
{name = 'nvim_lsp'},
|
{name = 'nvim_lsp'},
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({}),
|
mapping = cmp.mapping.preset.insert({
|
||||||
|
['<cr>'] = cmp.mapping.confirm({select = true}),
|
||||||
|
}),
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
vim.snippet.expand(args.body)
|
vim.snippet.expand(args.body)
|
||||||
|
@ -6,14 +6,14 @@ telescope.setup({
|
|||||||
prompt_prefix = "> ",
|
prompt_prefix = "> ",
|
||||||
selection_caret = "> ",
|
selection_caret = "> ",
|
||||||
},
|
},
|
||||||
-- pickers = {
|
pickers = {
|
||||||
-- find_files = {
|
find_files = {
|
||||||
-- theme = "dropdown",
|
theme = "dropdown",
|
||||||
-- },
|
},
|
||||||
-- live_grep = {
|
live_grep = {
|
||||||
-- theme = "dropdown",
|
theme = "dropdown",
|
||||||
-- },
|
},
|
||||||
-- },
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
vim.o.background = 'dark' -- 'dark' or 'light'
|
vim.o.background = 'dark' -- 'dark' or 'light'
|
||||||
-- vim.cmd[[colorscheme onedark]]
|
vim.cmd[[colorscheme onedark]]
|
||||||
vim.cmd[[colorscheme gruvbox]]
|
-- vim.cmd[[colorscheme gruvbox]]
|
||||||
|
|
||||||
-- цвет номеров строк
|
-- цвет номеров строк
|
||||||
vim.cmd('hi linenr guifg=white')
|
vim.cmd('hi linenr guifg=white')
|
||||||
@ -8,3 +8,4 @@ vim.cmd('hi linenr guifg=white')
|
|||||||
-- vim.cmd('highlight Normal guibg=#000000 ctermbg=black')
|
-- vim.cmd('highlight Normal guibg=#000000 ctermbg=black')
|
||||||
-- vim.api.nvim_set_hl(0, 'CursorLine', { underline = true })
|
-- vim.api.nvim_set_hl(0, 'CursorLine', { underline = true })
|
||||||
-- vim.cmd('highlight Normal guibg=none ctermbg=none')
|
-- vim.cmd('highlight Normal guibg=none ctermbg=none')
|
||||||
|
|
||||||
|
@ -132,6 +132,13 @@
|
|||||||
;; web-mode
|
;; web-mode
|
||||||
;; ))
|
;; ))
|
||||||
|
|
||||||
|
;; sudo-edit
|
||||||
|
;; dired-subtree
|
||||||
|
;; magit
|
||||||
|
;; org-bullets
|
||||||
|
;; hl-todo
|
||||||
|
;; rainbow-mode
|
||||||
|
|
||||||
;; Список пакетов для установки.
|
;; Список пакетов для установки.
|
||||||
(defvar my-required-packages
|
(defvar my-required-packages
|
||||||
'(org-download
|
'(org-download
|
||||||
@ -780,7 +787,9 @@ hot keys
|
|||||||
|
|
||||||
*** KeyBind
|
*** KeyBind
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(require 'sudo-edit)
|
(use-package sudo-edit
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
(spc-leader
|
(spc-leader
|
||||||
"c" '(:ignore t :wk "code")
|
"c" '(:ignore t :wk "code")
|
||||||
"c s" '(sudo-edit :wk "sudo-edit")
|
"c s" '(sudo-edit :wk "sudo-edit")
|
||||||
@ -876,16 +885,17 @@ hot keys
|
|||||||
(add-hook 'org-mode-hook 'org-indent-mode)
|
(add-hook 'org-mode-hook 'org-indent-mode)
|
||||||
; (setq toc-org-max-depth 2)
|
; (setq toc-org-max-depth 2)
|
||||||
|
|
||||||
(require 'org-bullets)
|
(use-package org-bullets
|
||||||
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
|
:ensure t
|
||||||
|
:hook (org-mode . org-bullets-mode))
|
||||||
|
|
||||||
(require 'org-bullets)
|
(use-package which-key
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
(which-key-mode 1)
|
(which-key-mode 1)
|
||||||
|
(setq which-key-min-display-lines 13))
|
||||||
(setq which-key-min-display-lines 13)
|
|
||||||
|
|
||||||
(require 'org-tempo)
|
(require 'org-tempo)
|
||||||
|
|
||||||
;;(electric-indent-mode -1)
|
;;(electric-indent-mode -1)
|
||||||
(setq org-edit-src-content-indentation 0)
|
(setq org-edit-src-content-indentation 0)
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -981,12 +991,15 @@ hot keys
|
|||||||
* decorations
|
* decorations
|
||||||
** colorthemes
|
** colorthemes
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
(use-package doom-themes
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; '(line-number ((t (:foreground "white")))) ; Цвет отображения номера строки
|
'(line-number ((t (:foreground "white")))) ; Цвет отображения номера строки
|
||||||
;; '(line-number-current-line ((t (:foreground "white"))))) ; Цвет текущей строки
|
'(line-number-current-line ((t (:foreground "white"))))) ; Цвет текущей строки
|
||||||
;; '(org-block-background ((t (:background "#1b1b1b"))))
|
;; '(org-block-background ((t (:background "#1b1b1b"))))
|
||||||
'(line-number ((t (:foreground "black")))) ; Цвет отображения номера строки
|
;; '(line-number ((t (:foreground "black")))) ; Цвет отображения номера строки
|
||||||
'(line-number-current-line ((t (:foreground "black"))))) ; Цвет текущей строки
|
;; '(line-number-current-line ((t (:foreground "black"))))) ; Цвет текущей строки
|
||||||
;; (load-theme 'doom-1337 t)
|
;; (load-theme 'doom-1337 t)
|
||||||
;; (load-theme 'doom-nord t)
|
;; (load-theme 'doom-nord t)
|
||||||
;; (load-theme 'doom-nord-aurora t)
|
;; (load-theme 'doom-nord-aurora t)
|
||||||
@ -1078,8 +1091,8 @@ hot keys
|
|||||||
:height 200
|
:height 200
|
||||||
:weight 'medium))
|
:weight 'medium))
|
||||||
;; (set-small-font-wayland)
|
;; (set-small-font-wayland)
|
||||||
;; (set-small-font)
|
(set-small-font)
|
||||||
(set-big-font)
|
;; (set-big-font)
|
||||||
(spc-leader
|
(spc-leader
|
||||||
"c f" '(:ignore t :wk "font")
|
"c f" '(:ignore t :wk "font")
|
||||||
"c f s" '(set-small-font :wk "small font")
|
"c f s" '(set-small-font :wk "small font")
|
||||||
@ -1154,10 +1167,14 @@ names, e.g. #0000ff is displayed in white with a blue background.
|
|||||||
|
|
||||||
** evil-snipe
|
** evil-snipe
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(require 'evil-snipe)
|
(use-package evil-snipe
|
||||||
(evil-snipe-mode +1)
|
:ensure t
|
||||||
(evil-snipe-override-mode +1)
|
:after evil
|
||||||
(setq evil-snipe-smart-case +1)
|
:config
|
||||||
|
(evil-snipe-mode +1)
|
||||||
|
(evil-snipe-override-mode +1)
|
||||||
|
(setq evil-snipe-smart-case t)) ; логическое значение, не число
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** org chckbox hl
|
** org chckbox hl
|
||||||
@ -1501,8 +1518,9 @@ left=2cm, right=2cm, top=2.5cm, bottom=2.5cm — отступы от левой,
|
|||||||
(goto-char (point-max)))
|
(goto-char (point-max)))
|
||||||
(message command)))
|
(message command)))
|
||||||
|
|
||||||
(require 'restclient)
|
(use-package restclient
|
||||||
(add-to-list 'auto-mode-alist '("\\.http\\'" . restclient-mode))
|
:ensure t
|
||||||
|
:mode ("\\.http\\'" . restclient-mode))
|
||||||
|
|
||||||
(spc-leader
|
(spc-leader
|
||||||
"r" '(:ignore t :wk "rest")
|
"r" '(:ignore t :wk "rest")
|
||||||
|
@ -25,8 +25,20 @@
|
|||||||
(flycheck-mode)
|
(flycheck-mode)
|
||||||
)))
|
)))
|
||||||
|
|
||||||
(use-package elpy
|
;; (use-package elpy
|
||||||
|
;; :ensure t
|
||||||
|
;; :init
|
||||||
|
;; (elpy-enable))
|
||||||
|
;; (add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))
|
||||||
|
|
||||||
|
(use-package lsp-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:hook (python-mode . lsp)
|
||||||
(elpy-enable))
|
:commands lsp)
|
||||||
(add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))
|
|
||||||
|
(use-package lsp-pyright
|
||||||
|
:ensure t
|
||||||
|
:after lsp-mode
|
||||||
|
:hook (python-mode . (lambda ()
|
||||||
|
(require 'lsp-pyright)
|
||||||
|
)))
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
(require 'use-package)
|
(require 'use-package)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
** tree-sitter
|
** tree-sitter
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'python-mode-hook #'tree-sitter-mode +1)
|
(add-hook 'python-mode-hook #'tree-sitter-mode +1)
|
||||||
@ -42,13 +41,27 @@
|
|||||||
)))
|
)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** elpy
|
** lsp elpy
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package elpy
|
;; (use-package elpy
|
||||||
|
;; :ensure t
|
||||||
|
;; :init
|
||||||
|
;; (elpy-enable))
|
||||||
|
;; (add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))
|
||||||
|
|
||||||
|
(use-package lsp-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:hook (python-mode . lsp)
|
||||||
(elpy-enable))
|
:commands lsp)
|
||||||
(add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))
|
|
||||||
|
(use-package lsp-pyright
|
||||||
|
:ensure t
|
||||||
|
:after lsp-mode
|
||||||
|
:hook (python-mode . (lambda ()
|
||||||
|
(require 'lsp-pyright)
|
||||||
|
)))
|
||||||
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Cheat sheet
|
* Cheat sheet
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
name:
|
name:
|
||||||
- go
|
- go
|
||||||
- vim
|
- vim
|
||||||
|
- neovim
|
||||||
- alacritty
|
- alacritty
|
||||||
- kitty
|
- kitty
|
||||||
- tmux
|
- tmux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user