wsl -> linux
This commit is contained in:
parent
2941112f9d
commit
0a17c0ca16
10 changed files with 121 additions and 156 deletions
|
|
@ -1,13 +1,3 @@
|
||||||
vim.opt.clipboard = "unnamedplus"
|
|
||||||
if vim.fn.has('wsl') == 1 then
|
|
||||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
|
||||||
group = vim.api.nvim_create_augroup('Yank', { clear = true }),
|
|
||||||
callback = function()
|
|
||||||
vim.fn.system('clip.exe', vim.fn.getreg('"'))
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
require("bumpsoo.remap")
|
require("bumpsoo.remap")
|
||||||
require("bumpsoo.lazy")
|
require("bumpsoo.lazy")
|
||||||
require("bumpsoo.set")
|
require("bumpsoo.set")
|
||||||
|
|
|
||||||
|
|
@ -12,17 +12,6 @@ local config = function()
|
||||||
buf_set_keymap('n', 'gd', '<cmd>tab split | lua vim.lsp.buf.definition()<CR>', opts)
|
buf_set_keymap('n', 'gd', '<cmd>tab split | lua vim.lsp.buf.definition()<CR>', opts)
|
||||||
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||||
buf_set_keymap('n', 'gR', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
buf_set_keymap('n', 'gR', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Enable some language servers with the additional
|
-- Enable some language servers with the additional
|
||||||
|
|
@ -34,11 +23,8 @@ local config = function()
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
local cmp = require 'cmp'
|
local cmp = require 'cmp'
|
||||||
|
|
||||||
cmp.setup {
|
cmp.setup {
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
|
|
@ -48,7 +34,6 @@ local config = function()
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<C-u>'] = cmp.mapping.scroll_docs(-4), -- Up
|
['<C-u>'] = cmp.mapping.scroll_docs(-4), -- Up
|
||||||
['<C-d>'] = cmp.mapping.scroll_docs(4), -- Down
|
['<C-d>'] = cmp.mapping.scroll_docs(4), -- Down
|
||||||
-- C-b (back) C-f (forward) for snippet placeholder navigation.
|
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
['<C-Space>'] = cmp.mapping.complete(),
|
||||||
['<CR>'] = cmp.mapping.confirm {
|
['<CR>'] = cmp.mapping.confirm {
|
||||||
behavior = cmp.ConfirmBehavior.Replace,
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
|
|
|
||||||
10
.config/nvim/lua/bumpsoo/plugins/solarized.lua
Normal file
10
.config/nvim/lua/bumpsoo/plugins/solarized.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
'maxmx03/solarized.nvim',
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
vim.o.background = 'light'
|
||||||
|
|
||||||
|
vim.cmd.colorscheme 'solarized'
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
return {
|
|
||||||
"folke/tokyonight.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
opts = {},
|
|
||||||
config = function()
|
|
||||||
vim.cmd[[colorscheme tokyonight-day]]
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,5 @@ vim.opt.tabstop = 2
|
||||||
vim.opt.softtabstop = 2
|
vim.opt.softtabstop = 2
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 2
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,6 @@
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
|
|
||||||
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||||
|
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
|
||||||
|
|
||||||
|
|
|
||||||
18
README.md
18
README.md
|
|
@ -1,20 +1,4 @@
|
||||||
### from wsl - alpine
|
### dev configuration for linux
|
||||||
|
|
||||||
running [mini root fs](https://www.alpinelinux.org/downloads/)
|
|
||||||
|
|
||||||
```
|
|
||||||
wsl --import Alpine 'E:\alpine\' E:\alpine-minirootfs-3.18.4-x86_64.tar
|
|
||||||
```
|
|
||||||
|
|
||||||
dependencies
|
|
||||||
|
|
||||||
```
|
|
||||||
apk add neovim tmux git openssh ripgrep curl gcc go
|
|
||||||
|
|
||||||
go install golang.org/x/tools/gopls@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
### dev configuration for alpine linux
|
|
||||||
|
|
||||||
- neovim (.config/nvim/\*)
|
- neovim (.config/nvim/\*)
|
||||||
- git (.gitconfig ~/personal/.gitconfig)
|
- git (.gitconfig ~/personal/.gitconfig)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue